lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
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.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message