C# Class Lucene.Net.Queries.Function.ValueSources.TermFreqValueSource

Function that returns DocsEnum#freq() for the supplied term in every document.

If the term does not exist in the document, returns 0. If frequencies are omitted, returns 1.

Inheritance: Lucene.Net.Queries.Function.ValueSources.DocFreqValueSource
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
GetValues ( IDictionary context, Lucene.Net.Index.AtomicReaderContext readerContext ) : FunctionValues
TermFreqValueSource ( string field, string val, string indexedField, BytesRef indexedBytes ) : System

Method Details

GetValues() public method

public GetValues ( IDictionary context, Lucene.Net.Index.AtomicReaderContext readerContext ) : FunctionValues
context IDictionary
readerContext Lucene.Net.Index.AtomicReaderContext
return FunctionValues

TermFreqValueSource() public method

public TermFreqValueSource ( string field, string val, string indexedField, BytesRef indexedBytes ) : System
field string
val string
indexedField string
indexedBytes BytesRef
return System