Class TFValueSource
Function that returns Tf(float) for every document.
Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarityNote
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class TFValueSource : TermFreqValueSource
  Constructors
TFValueSource(string, string, string, BytesRef)
Function that returns Tf(float) for every document.
Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarityNote
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public TFValueSource(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 Tf(float) for every document.
Note that the configured Similarity for the field must be a subclass of Lucene.Net.Search.Similarities.TFIDFSimilarityNote
This API is for internal purposes only and might change in incompatible ways in the next release.
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 |