The BoostingTermQuery is very similar to the
org.apache.lucene.search.spans.SpanTermQuery except
that it factors in the value of the payload located at each of the positions where the
org.apache.lucene.index.Term occurs.
In order to take advantage of this, you must override
org.apache.lucene.search.Similarity.scorePayload(Stringbyte[]intint) which returns 1 by default.
Payload scores are averaged across term occurrences in the document. |