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,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
String |
name() |
createWeight, description, equals, hashCode
getSortField, newContext, toString
public String name()
name
in class DocFreqValueSource
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
ValueSource
getValues
in class DocFreqValueSource
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.