public class TermFreqValueSource extends DocFreqValueSource
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.
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,
AtomicReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
String |
name() |
createWeight, description, equals, hashCodegetSortField, newContext, toStringpublic String name()
name in class DocFreqValueSourcepublic FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
ValueSourcegetValues in class DocFreqValueSourceIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.