PayloadTermQuery
public 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.PayloadTermWeight
function
term
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.
|
hashCode
extractTerms, getField, getSpans, getTerm, getTerms, toString
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, weight
public BoostingTermQuery(Term term)
public BoostingTermQuery(Term term, boolean includeSpanScore)
public Weight createWeight(Searcher searcher) throws java.io.IOException
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class PayloadTermQuery
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class PayloadTermQuery
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.