Class TFValueSource
Function that returns Tf(Single) for every document.
Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarity
This is a Lucene.NET INTERNAL API, use at your own risk
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 TFValueSource : TermFreqValueSource
Constructors
| Improve this Doc View SourceTFValueSource(String, String, String, BytesRef)
Declaration
public TFValueSource(string field, string val, string indexedField, BytesRef indexedBytes)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | |
System.String | val | |
System.String | indexedField | |
Lucene.Net.Util.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 | |
Lucene.Net.Index.AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
FunctionValues |