I have many documents indexed into Solr. I am now facing a requirement where the search results should be returned sorted based on their scores. In the case of non-exact matches, if there is a tie, another level of sorting is to be applied on a field called priority.
I am using solr with django-haystack in django 1.4.
What can/should I do to achieve my requirement?
The boost in edismax can be used for this. It is applied to all scores, but if it is a small value, it will only make a difference for ties or near-ties. Significant differences in the base score will not be reordered.
See: http://wiki.apache.org/solr/ExtendedDisMax#boost_.28Boost_Function.2C_multiplicative.29