This class is very similar to {@link Lucene.Net.Search.Spans.SpanTermQuery} except that it factors in the value of the payload located at each of the positions where the {@link Lucene.Net.Index.Term} 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.Payloads
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public class PayloadTermQuery : SpanTermQuery
Visual Basic
<SerializableAttribute> _
Public Class PayloadTermQuery _
	Inherits SpanTermQuery
Visual C++
[SerializableAttribute]
public ref class PayloadTermQuery : public SpanTermQuery

Inheritance Hierarchy

See Also