Lucene scoring question (how to boost leading terms match)

2006-10-03 Thread qaz zaq
Hi, I have a question about the lucene scoring. In my following example, how can I ensure the doc1 has the higher score than doc2, if I search for A*. In another words, I want to boost the docs which match their leading terms. doc1: Aterm Bterm Cterm doc2: Bterm Aterm Cterm

Re: Lucene scoring question (how to boost leading terms match)

2006-10-03 Thread Doron Cohen
If I understand the question, you do not want to boost in advance a certain doc, but rather score higher those documents containing the search term closer to the start of the document. There is more to define here - for instance, if doc1 has 5 words but doc2 has 1,000,000 words, would you still

Re: Lucene scoring question (how to boost leading terms match)

2006-10-03 Thread Chris Hostetter
: does not pour affinity information into the score - i.e. both doc1 and doc2 : in your example would get the same score, and the SpanFirstQurey would only : allow you to limit the set of returned documents - Hoss, do you agree with : this? Oh ... hmmm ... i think you're right. SpanScorer