public class PayloadTermQuery extends SpanTermQuery
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(int, String, int, int, byte[],int,int)
 which returns 1 by default.
 
 Payload scores are aggregated using a pluggable PayloadFunction.
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | PayloadTermQuery.PayloadTermWeight | 
| Modifier and Type | Field and Description | 
|---|---|
| protected PayloadFunction | function | 
term| Constructor and Description | 
|---|
| PayloadTermQuery(Term term,
                PayloadFunction function) | 
| PayloadTermQuery(Term term,
                PayloadFunction function,
                boolean includeSpanScore) | 
| Modifier and Type | Method and Description | 
|---|---|
| Weight | createWeight(Searcher searcher)Expert: Constructs an appropriate Weight implementation for this query. | 
| boolean | equals(Object obj) | 
| int | hashCode() | 
extractTerms, getField, getSpans, getTerm, toStringclone, combine, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, weightprotected PayloadFunction function
public PayloadTermQuery(Term term, PayloadFunction function)
public PayloadTermQuery(Term term, PayloadFunction function, boolean includeSpanScore)
public Weight createWeight(Searcher searcher) throws IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class SpanQueryIOExceptionpublic int hashCode()
hashCode in class SpanTermQuerypublic boolean equals(Object obj)
equals in class SpanTermQuery