public class DocumentExpressionDictionary extends DocumentDictionary
DocumentDictionary, except it computes the weight
of the terms in a document based on a user-defined expression
having one or more NumericDocValuesField in the document.
NOTE:
DocumentDictionary.DocumentInputIteratorpayloadField, reader| Constructor and Description |
|---|
DocumentExpressionDictionary(IndexReader reader,
String field,
String weightExpression,
Set<SortField> sortFields)
Creates a new dictionary with the contents of the fields named
field
for the terms and computes the corresponding weights of the term by compiling the
user-defined weightExpression using the sortFields
bindings. |
DocumentExpressionDictionary(IndexReader reader,
String field,
String weightExpression,
Set<SortField> sortFields,
String payload)
Creates a new dictionary with the contents of the fields named
field
for the terms, payloadField for the corresponding payloads
and computes the corresponding weights of the term by compiling the
user-defined weightExpression using the sortFields
bindings. |
public DocumentExpressionDictionary(IndexReader reader, String field, String weightExpression, Set<SortField> sortFields)
field
for the terms and computes the corresponding weights of the term by compiling the
user-defined weightExpression using the sortFields
bindings.public DocumentExpressionDictionary(IndexReader reader, String field, String weightExpression, Set<SortField> sortFields, String payload)
field
for the terms, payloadField for the corresponding payloads
and computes the corresponding weights of the term by compiling the
user-defined weightExpression using the sortFields
bindings.public BytesRefIterator getWordsIterator() throws IOException
DictionarygetWordsIterator in interface DictionarygetWordsIterator in class DocumentDictionaryIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.