java.lang.Object | ||||
↳ | org.apache.lucene.search.Query | |||
↳ | org.apache.lucene.search.spans.SpanQuery | |||
↳ | org.apache.lucene.search.spans.SpanTermQuery | |||
↳ | org.apache.lucene.search.payloads.PayloadTermQuery |
This class is very similar to
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
scorePayload(int, String, int, int, byte[], int, int)
which returns 1 by default.
Payload scores are aggregated using a pluggable PayloadFunction
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PayloadTermQuery.PayloadTermWeight |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
function |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.spans.SpanTermQuery
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Expert: Constructs an appropriate Weight implementation for this query.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.spans.SpanTermQuery
| |||||||||||
From class
org.apache.lucene.search.spans.SpanQuery
| |||||||||||
From class
org.apache.lucene.search.Query
| |||||||||||
From class
java.lang.Object
|
Expert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
IOException |
---|