Re: How to customize score according to field value?

2009-04-08 Thread Jinming Zhang
Hi, Yes, the CustomScoreQuery.customScore() can meet the requirement I described. Thank you all! On Tue, Apr 7, 2009 at 9:01 PM, Tim Williams wrote: > On Tue, Apr 7, 2009 at 3:08 AM, Jinming Zhang > wrote: > > Hi, > > > > I have the following situation which need

How to customize score according to field value?

2009-04-07 Thread Jinming Zhang
Hi, I have the following situation which needs to customize the final score according to field value. Suppose there are two docs in my query result, and they are ordered by default score sort: doc1(field1:bookA, field2:2000-01-01) -- score:0.80 doc2(field1:bookB, filed2:2009-01-01) -- score:0.70