Class TFValueSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.DocFreqValueSource
org.apache.lucene.queries.function.valuesource.TermFreqValueSource
org.apache.lucene.queries.function.valuesource.TFValueSource
Function that returns
TFIDFSimilarity.tf(float)
for every document.
Note that the configured Similarity for the field must be
a subclass of TFIDFSimilarity
-
Constructor Summary
ConstructorsConstructorDescriptionTFValueSource(String field, String val, String indexedField, BytesRef indexedBytes) -
Method Summary
Modifier and TypeMethodDescriptiongetValues(Map context, AtomicReaderContext readerContext) Gets the values for this reader and the context that was previously passed to createWeight()name()Methods inherited from class org.apache.lucene.queries.function.valuesource.DocFreqValueSource
createWeight, description, equals, hashCodeMethods inherited from class org.apache.lucene.queries.function.ValueSource
getSortField, newContext, toString
-
Constructor Details
-
TFValueSource
-
-
Method Details
-
name
- Overrides:
namein classTermFreqValueSource
-
getValues
Description copied from class:ValueSourceGets the values for this reader and the context that was previously passed to createWeight()- Overrides:
getValuesin classTermFreqValueSource- Throws:
IOException
-