I use Solr to create smooth navigation for an e-commerce site. However, I need to define a custom order for the facets, but I have not found how to do this in Solr.
Any ideas how to do this? I use Solr Net and the latest version of Solr.
Here is an example of what I need to do.
Current facets
operating system
- Android (32)
- Blackberry OS (8)
- Windows (6)
- Apple iOS (6)
- Bada (5)
- Owner (2)
Price
- 10001 - 20,000 (42)
- 20001 - 25000 (12)
- 500 - 5000 (11)
- 5001 - 10,000 (8)
Please note that this is just an example. And there are many other aspects. I want to display βPriceβ as the first facet, so you need to order this facet field, as well as facet options like this.
Price
- 500 - 5000 (11)
- 5001 - 10,000 (8)
- 10001 - 20,000 (42)
- 20001 - 25000 (12)
operating system
- Android (32)
- Apple iOS (6)
- Bada (5)
- Blackberry OS (8)
- Owner (2)
- Windows (6)
So here is how I need to order it:
- Set the Facet field manually in any way so that they appear in a specific order
- The procedure in accordance with a specific order. For the OS, I ordered it in alphabetical order. Or maybe for those faces that do not have a specific order, maybe the default order depending on the number of samples in the result?
Advise Pls.
source share