public class IDFValueSource extends DocFreqValueSource
#idf(long, long)
for every document.
Note that the configured Similarity for the field must be
a subclass of TFIDFSimilarity
field, indexedBytes, indexedField, val| Constructor and Description |
|---|
IDFValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static TFIDFSimilarity |
asTFIDF(Similarity sim,
java.lang.String field) |
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, hashCodeasDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toStringpublic IDFValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes)
public java.lang.String name()
name in class DocFreqValueSourcepublic FunctionValues getValues(java.util.Map context, LeafReaderContext readerContext) throws java.io.IOException
ValueSourcegetValues in class DocFreqValueSourcejava.io.IOExceptionstatic TFIDFSimilarity asTFIDF(Similarity sim, java.lang.String field)