C# Class Lucene.Net.Search.Payloads.PayloadTermQuery

this class is very similar to Lucene.Net.Search.Spans.SpanTermQuery except that it factors in the value of the payload located at each of the positions where the Lucene.Net.Index.Term occurs.

NOTE: In order to take advantage of this with the default scoring implementation (DefaultSimilarity), you must override DefaultSimilarity#scorePayload(int, int, int, BytesRef), which returns 1 by default.

Payload scores are aggregated using a pluggable PayloadFunction.

Inheritance: Lucene.Net.Search.Spans.SpanTermQuery
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Protected Properties

Свойство Type Description
Function Lucene.Net.Search.Payloads.PayloadFunction

Méthodes publiques

Méthode Description
CreateWeight ( IndexSearcher searcher ) : Weight
Equals ( object obj ) : bool
GetHashCode ( ) : int
PayloadTermQuery ( Lucene.Net.Index.Term term, Lucene.Net.Search.Payloads.PayloadFunction function ) : Lucene.Net.Index
PayloadTermQuery ( Lucene.Net.Index.Term term, Lucene.Net.Search.Payloads.PayloadFunction function, bool includeSpanScore ) : Lucene.Net.Index

Method Details

CreateWeight() public méthode

public CreateWeight ( IndexSearcher searcher ) : Weight
searcher IndexSearcher
Résultat Weight

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

PayloadTermQuery() public méthode

public PayloadTermQuery ( Lucene.Net.Index.Term term, Lucene.Net.Search.Payloads.PayloadFunction function ) : Lucene.Net.Index
term Lucene.Net.Index.Term
function Lucene.Net.Search.Payloads.PayloadFunction
Résultat Lucene.Net.Index

PayloadTermQuery() public méthode

public PayloadTermQuery ( Lucene.Net.Index.Term term, Lucene.Net.Search.Payloads.PayloadFunction function, bool includeSpanScore ) : Lucene.Net.Index
term Lucene.Net.Index.Term
function Lucene.Net.Search.Payloads.PayloadFunction
includeSpanScore bool
Résultat Lucene.Net.Index

Property Details

Function protected_oe property

protected PayloadFunction,Lucene.Net.Search.Payloads Function
Résultat Lucene.Net.Search.Payloads.PayloadFunction