Class TermFreqValueSource
Function that returns Lucene.Net.Index.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.Inherited Members
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class TermFreqValueSource : DocFreqValueSource
Constructors
TermFreqValueSource(string, string, string, BytesRef)
Function that returns Lucene.Net.Index.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.Declaration
public TermFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes)
Parameters
Type | Name | Description |
---|---|---|
string | field | |
string | val | |
string | indexedField | |
BytesRef | indexedBytes |
Properties
Name
Function that returns Lucene.Net.Index.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.Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetValues(IDictionary, AtomicReaderContext)
Gets the values for this reader and the context that was previously passed to CreateWeight(IDictionary, IndexSearcher)
Declaration
public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | context | |
AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
FunctionValues |