- All Implemented Interfaces:
public class PayloadTermQuery extends SpanTermQueryThis class is very similar to
SpanTermQueryexcept that it factors in the value of the payload located at each of the positions where the
Termoccurs. NOTE: In order to take advantage of this with the default scoring implementation (
DefaultSimilarity), you must override
DefaultSimilarity.scorePayload(int, int, int, BytesRef), which returns 1 by default. Payload scores are aggregated using a pluggable
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
createWeight(IndexSearcher searcher)Expert: Constructs an appropriate Weight implementation for this query.
Methods inherited from class org.apache.lucene.search.spans.SpanTermQuery
extractTerms, getField, getSpans, getTerm, toString
Methods inherited from class org.apache.lucene.search.Query
clone, getBoost, rewrite, setBoost, toString
public Weight createWeight(IndexSearcher searcher) throws IOExceptionDescription copied from class:
QueryExpert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.