public class TermFreqValueSource extends DocFreqValueSource
PostingsEnum.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.
field, indexedBytes, indexedField, val| Constructor and Description |
|---|
TermFreqValueSource(String field,
String val,
String indexedField,
BytesRef indexedBytes) |
| Modifier and Type | Method and Description |
|---|---|
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight().
|
String |
name() |
createWeight, description, equals, hashCodeasDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toStringpublic String name()
name in class DocFreqValueSourcepublic FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
ValueSourcegetValues in class DocFreqValueSourceIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.