Morus Walter wrote:
Alternatively it should be able to write a query that does such a scoring
directly (without the document start anchor) by the same means proximity
query uses. Proximity query uses positional information so it should be possible to use that information for scoring based on document position also.

The easiest way to do this would be to use span queries and modify SpanScorer. The score for a span is currently based on the inverse of its length, but it could also or instead be based on the inverse of its start, end or middle, so that matches nearer the start of the document are given higher scores.


Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to