Currently working on a project that moving our search functionality from traditional SQL like queries to Solr. Everything is ok except one!
It's a similar e-commerce application that products have multiple categories, not single. Also each product has a value which represents their ordering index for each category. For instance, product-A is in the first place for category-X but third place for category-Y.
So that, when you want to list category-X or category-Y, products should be listed for their own orders.
In short, a bag may be listed in a men category or a leather category. For the man category it should be listed maybe 50th index, but for leather it should be listed maybe 8th index.
I tried different approaches in order to fetch results which depends on query input. I tried multiple cores but It does not work. In SQL it's easy that to do kind of things, just add sorting table join to main table; but solr side, things are not going well as I expected.
- SQL --> MYSQL
- Language --> Java8
- Solr --> 8.5.X