Re: Custom comparator

2010-07-20 Thread Chris Hostetter
setting asside for a moment my opionin that trying to do cut offs relative the max Score is a bad idea in general... 1) you're definitley not going to know the "topScore" until all of the matching docs are collected. 2) Solr really doesn't make it easy to plug in a custom Comparator - there i

Re: Custom comparator

2010-07-16 Thread dan sutton
Apologies I didn't make the requirement clear. I need to keep the best N documents - set A (chosen by some criteria - call them sponsored docs) in front of the natural scoring docs - set B so that I return (A,B). The set A docs need to all score above 1% of maxScore in B else they join the B set

Re: Custom comparator

2010-07-15 Thread Rodrigo Rezende
How its possible to access TopDocs using solr API? Thanks, Rodrigo On Thu, Jul 15, 2010 at 8:03 PM, Erick Erickson wrote: > Hmmm, why do you need a custom collector? You can use > the form of the search that returns a TopDocs, from which you > can get the max score and the array of ScoreDoc each

Re: Custom comparator

2010-07-15 Thread Erick Erickson
Hmmm, why do you need a custom collector? You can use the form of the search that returns a TopDocs, from which you can get the max score and the array of ScoreDoc each of which has its score. So you can just let the underlying code get the top N documents, and throw out any that don't score above