Class TermFreqValueSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.DocFreqValueSource
org.apache.lucene.queries.function.valuesource.TermFreqValueSource
- Direct Known Subclasses:
TFValueSource
Function that returns
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.
-
Constructor Summary
ConstructorsConstructorDescriptionTermFreqValueSource(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
-
TermFreqValueSource
-
-
Method Details
-
name
- Overrides:
namein classDocFreqValueSource
-
getValues
Description copied from class:ValueSourceGets the values for this reader and the context that was previously passed to createWeight()- Overrides:
getValuesin classDocFreqValueSource- Throws:
IOException
-