public final class AllTermQuery
extends org.apache.lucene.search.Query
It is like PayloadTermQuery with AveragePayloadFunction, except unlike PayloadTermQuery, it doesn't plug into the similarity to determine how the payload should be factored in, it just parses the float and multiplies the average with the regular score.
Constructor and Description |
---|
AllTermQuery(org.apache.lucene.index.Term term) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores) |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
java.lang.String |
toString(java.lang.String field) |
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
rewrite
in class org.apache.lucene.search.Query
java.io.IOException
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores) throws java.io.IOException
createWeight
in class org.apache.lucene.search.Query
java.io.IOException
public java.lang.String toString(java.lang.String field)
toString
in class org.apache.lucene.search.Query