PayloadTermQuerypublic class BoostingTermQuery extends PayloadTermQuery
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 Similarity.scorePayload(String, byte[],int,int)
which returns 1 by default.
Payload scores are averaged across term occurrences in the document.
| Modifier and Type | Class and Description |
|---|---|
protected class |
BoostingTermQuery.BoostingTermWeight
Deprecated.
|
PayloadTermQuery.PayloadTermWeightfunctionterm| Constructor and Description |
|---|
BoostingTermQuery(Term term)
Deprecated.
|
BoostingTermQuery(Term term,
boolean includeSpanScore)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(Searcher searcher)
Deprecated.
Expert: Constructs an appropriate Weight implementation for this query.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
hashCodeextractTerms, getField, getSpans, getTerm, getTerms, toStringclone, combine, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, weightpublic BoostingTermQuery(Term term)
public BoostingTermQuery(Term term, boolean includeSpanScore)
public Weight createWeight(Searcher searcher) throws java.io.IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class PayloadTermQueryjava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class PayloadTermQueryCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.