lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject RE: proximity and location scoring
Date Tue, 23 Jan 2007 19:58:08 GMT

: What about implementing a scoring policy that computes the score based
: only on which word position the term is matched?

if you wrote your own Similarity class and used SpanFirst queries that
should be possible.  It's the same basic principle as a Similarity
that scores entirely by tf, except that instead of tf being the only
method in your similarity class that doesn't return a 0 or 1, your
sloppyFreq method would be the only method returning something

the Explanation class will be your best friend when debugging your code.


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

View raw message