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
Mostra file Open project: paulirwin/lucene.net Class Usage Examples

Protected Properties

Property Type Description
Function Lucene.Net.Search.Payloads.PayloadFunction

Public Methods

Method 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 method

public CreateWeight ( IndexSearcher searcher ) : Weight
searcher IndexSearcher
return Weight

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

PayloadTermQuery() public method

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
return Lucene.Net.Index

PayloadTermQuery() public method

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
return Lucene.Net.Index

Property Details

Function protected_oe property

protected PayloadFunction,Lucene.Net.Search.Payloads Function
return Lucene.Net.Search.Payloads.PayloadFunction