lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Indexing of virtual "made up" documents
Date Wed, 27 Apr 2005 16:20:06 GMT
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message