lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens Wyss <>
Subject Higher scoring if term is at the beginning of a field/document
Date Wed, 04 May 2011 07:16:29 GMT
Given the I have 3 documents with exactly one field and the fields have the following contents:
This is a moon
The moon is bright

If I analyze these documents they all hit on "moon". But how do I need to analyze/search my
index in order to have the following "sort order":
The moon is bright
This is a moon

i.e. the earlier the term appears the higher the score.


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

View raw message