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 |
---|---|
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 IDFValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
public java.lang.String name()
name
in class DocFreqValueSource
public FunctionValues getValues(java.util.Map context, LeafReaderContext readerContext) throws java.io.IOException
ValueSource
getValues
in class DocFreqValueSource
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.