This class is very similar to
{@link Lucene.Net.Search.Spans.SpanNearQuery} except that it factors
in the value of the payloads located at each of the positions where the
{@link Lucene.Net.Search.Spans.TermSpans} occurs.
In order to take advantage of this, you must override
{@link Lucene.Net.Search.Similarity#ScorePayload(String, byte[],int,int)}
which returns 1 by default.
Payload scores are aggregated using a pluggable {@link PayloadFunction}.
Namespace: Lucene.Net.Search.PayloadsAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[SerializableAttribute] public class PayloadNearQuery : SpanNearQuery, ICloneable |
Visual Basic |
---|
<SerializableAttribute> _ Public Class PayloadNearQuery _ Inherits SpanNearQuery _ Implements ICloneable |
Visual C++ |
---|
[SerializableAttribute] public ref class PayloadNearQuery : public SpanNearQuery, ICloneable |
Inheritance Hierarchy
System..::..Object
Lucene.Net.Search..::..Query
Lucene.Net.Search.Spans..::..SpanQuery
Lucene.Net.Search.Spans..::..SpanNearQuery
Lucene.Net.Search.Payloads..::..PayloadNearQuery
Lucene.Net.Search..::..Query
Lucene.Net.Search.Spans..::..SpanQuery
Lucene.Net.Search.Spans..::..SpanNearQuery
Lucene.Net.Search.Payloads..::..PayloadNearQuery