You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2011/11/01 19:31:54 UTC
Re: Limit by score? sort by other field
: Sounds like a custom sorting collector would work - one that throws away
: docs with less than some minimum score, so that it only collects/sorts
did you look at the example query Karsten mentioned (and also discussedin
the linked thread)
there is no need for a custom collector to do this, you just need to
specify the range of score values you want to constrain the results to
(but if you wnat it based on a percentage, you have to first do a request
to compute the real values to use on your ranges relative the max
score)...
: > So will
: > sort=date+desc&q={!frange l=0.85}query($qq)
: > qq=<the original relevancy query>
: > help?
All of this requires you to bear in mind a *HUGE* freaking caveat about
filtering by score and scores as percentages...
https://wiki.apache.org/lucene-java/LuceneFAQ#Can_I_filter_by_score.3F
https://wiki.apache.org/lucene-java/ScoresAsPercentages
-Hoss