public class TFValueSource extends TermFreqValueSource
TFIDFSimilarity.tf(float)
for every document.
Note that the configured Similarity for the field must be
a subclass of TFIDFSimilarity
field, indexedBytes, indexedField, val
Constructor and Description |
---|
TFValueSource(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
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
public String name()
name
in class TermFreqValueSource
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
ValueSource
getValues
in class TermFreqValueSource
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.