org.apache.lucene.search.payloads

Class BoostingTermQuery

public class BoostingTermQuery extends SpanTermQuery

The BoostingTermQuery is very similar to the SpanTermQuery except that it factors in the value of the payload located at each of the positions where the Term occurs.

In order to take advantage of this, you must override (byte[],int,int) which returns 1 by default.

Payload scores are averaged across term occurrences in the document.

WARNING: The status of the Payloads feature is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.

See Also: (byte[], int, int)

Nested Class Summary
protected classBoostingTermQuery.BoostingTermWeight
Constructor Summary
BoostingTermQuery(Term term)
Method Summary
protected WeightcreateWeight(Searcher searcher)
booleanequals(Object o)

Constructor Detail

BoostingTermQuery

public BoostingTermQuery(Term term)

Method Detail

createWeight

protected Weight createWeight(Searcher searcher)

equals

public boolean equals(Object o)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.