Reputation: 100
My catalog has a lot of products, so sometimes there are a lot of search results by some queries. Solr have its own field 'score', and our customer wants to limit search results by limiting 'score' value. For example, if we set 'limit score value' to 500, then in search result should be only products which score > 500. (I know this is a bad practice). I tried google a lot on it, tried to edit edismax and etc.
So my question, how can i do this?
Upvotes: 0
Views: 586
Reputation: 9789
This will not work because the scores are not consistent. They only make sense within a single query and do not have good absolute representation. They are not even consistent between different cores that form a single collection in SolrCloud. You will not be able to find the meaningful number to use.
You need to go back to the business and ask what they mean in business terms and then see how the Solr can answer that. In some cases that may even mean different indexing strategy.
Upvotes: 4