public class DocumentExpressionDictionaryFactory extends DictionaryFactory
DocumentValueSourceDictionary| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD
Label for defining field to use for terms
|
static String |
PAYLOAD_FIELD
Label for defining payloadField to use for terms (optional)
|
static String |
SORT_FIELD
Label used to define the name of the
sortField used in the
WEIGHT_EXPRESSION |
static String |
WEIGHT_EXPRESSION
Label for defining expression to evaluate the weight for the terms
|
DEFAULT_FILE_BASED_DICT, DEFAULT_INDEX_BASED_DICT, params| Constructor and Description |
|---|
DocumentExpressionDictionaryFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.spell.Dictionary |
create(SolrCore core,
SolrIndexSearcher searcher)
Create a Dictionary using options in
core and optionally
uses searcher, in case of index based dictionaries |
org.apache.lucene.queries.function.ValueSource |
fromExpression(String weightExpression,
Set<org.apache.lucene.search.SortField> sortFields) |
setParamspublic static final String FIELD
public static final String PAYLOAD_FIELD
public static final String WEIGHT_EXPRESSION
public static final String SORT_FIELD
WEIGHT_EXPRESSIONpublic org.apache.lucene.search.spell.Dictionary create(SolrCore core, SolrIndexSearcher searcher)
DictionaryFactorycore and optionally
uses searcher, in case of index based dictionariescreate in class DictionaryFactoryCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.