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(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
Modifier and Type | Method and Description |
---|---|
FunctionValues |
getValues(java.util.Map context,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight().
|
java.lang.String |
name() |
createWeight, description, equals, hashCode
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
public TFValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
public java.lang.String name()
name
in class TermFreqValueSource
public FunctionValues getValues(java.util.Map context, LeafReaderContext readerContext) throws java.io.IOException
ValueSource
getValues
in class TermFreqValueSource
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.