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,
AtomicReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
String |
name() |
createWeight, description, equals, hashCodegetSortField, newContext, toStringpublic String name()
name in class DocFreqValueSourcepublic FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
ValueSourcegetValues in class DocFreqValueSourceIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.