Class TermFreqValueSource
Function that returns 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
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class TermFreqValueSource : DocFreqValueSource
Constructors
| Improve this Doc View SourceTermFreqValueSource(String, String, String, BytesRef)
Declaration
public TermFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | |
System.String | val | |
System.String | indexedField | |
BytesRef | indexedBytes |
Properties
| Improve this Doc View SourceName
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceGetValues(IDictionary, AtomicReaderContext)
Declaration
public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | context | |
AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
FunctionValues |