java.lang.Object | ||||
↳ | org.apache.lucene.search.Query | |||
↳ | org.apache.lucene.search.spans.SpanQuery | |||
↳ | org.apache.lucene.search.spans.SpanNearQuery | |||
↳ | org.apache.lucene.search.payloads.PayloadNearQuery |
This class is very similar to
SpanNearQuery
except that it factors
in the value of the payloads located at each of the positions where the
TermSpans
occurs.
scorePayload(int, String, int, int, byte[], int, int)
which returns 1 by default.
Payload scores are aggregated using a pluggable PayloadFunction
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PayloadNearQuery.PayloadNearSpanScorer | |||||||||||
PayloadNearQuery.PayloadNearSpanWeight |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fieldName | |||||||||||
function |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.spans.SpanNearQuery
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of this query.
| |||||||||||
Expert: Constructs an appropriate Weight implementation for this query.
| |||||||||||
Returns true iff
o is equal to this. | |||||||||||
Prints a query to a string, with
field assumed to be the
default field and omitted. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.spans.SpanNearQuery
| |||||||||||
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 |
---|
Prints a query to a string, with field
assumed to be the
default field and omitted.
The representation used is one that is supposed to be readable
by QueryParser
. However,
there are the following limitations: