Re: Custom scoring example

2008-09-10 Thread Mike Klaas
On 5-Sep-08, at 5:01 PM, Ravindra Sharma wrote: I am looking for an example if anyone has done any custom scoring with Solr/Lucene. I need to implement a Query similar to DisjunctionMaxQuery, the only difference would be it should score based on sum of score of sub queries' scores instead of

Re: Custom scoring example

2008-09-10 Thread Chris Hostetter
: I need to implement a Query similar to DisjunctionMaxQuery, the only : difference would : be it should score based on sum of score of sub queries' scores instead of : max. BooleanQuery computes scores that are the sub of hte subscores -- you just need to disable the coordFactor (there is a con

Re: Custom scoring example

2008-09-10 Thread Grant Ingersoll
The only thing I can suggest is that each and every Query in Solr/ Lucene is an example of custom scoring. You might be better off starting w/ TermQuery and working through PhraseQuery, BooleanQuery, on up. At the point you get to DisJunctionMax, then ask questions about that specific one.