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(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.