The BoostingTermQuery is very similar to the {@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 averaged across term occurrences in the document.
Namespace: Lucene.Net.Search.PayloadsAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[SerializableAttribute] [ObsoleteAttribute("See Lucene.Net.Search.Payloads.PayloadTermQuery")] public class BoostingTermQuery : PayloadTermQuery |
Visual Basic |
---|
<SerializableAttribute> _ <ObsoleteAttribute("See Lucene.Net.Search.Payloads.PayloadTermQuery")> _ Public Class BoostingTermQuery _ Inherits PayloadTermQuery |
Visual C++ |
---|
[SerializableAttribute] [ObsoleteAttribute(L"See Lucene.Net.Search.Payloads.PayloadTermQuery")] public ref class BoostingTermQuery : public PayloadTermQuery |
Inheritance Hierarchy
System..::..Object
Lucene.Net.Search..::..Query
Lucene.Net.Search.Spans..::..SpanQuery
Lucene.Net.Search.Spans..::..SpanTermQuery
Lucene.Net.Search.Payloads..::..PayloadTermQuery
Lucene.Net.Search.Payloads..::..BoostingTermQuery
Lucene.Net.Search..::..Query
Lucene.Net.Search.Spans..::..SpanQuery
Lucene.Net.Search.Spans..::..SpanTermQuery
Lucene.Net.Search.Payloads..::..PayloadTermQuery
Lucene.Net.Search.Payloads..::..BoostingTermQuery