|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.spelling.suggest.DictionaryFactory org.apache.solr.spelling.suggest.DocumentExpressionDictionaryFactory
public class DocumentExpressionDictionaryFactory
Factory for DocumentValueSourceDictionary
Field Summary | |
---|---|
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 |
Fields inherited from class org.apache.solr.spelling.suggest.DictionaryFactory |
---|
DEFAULT_FILE_BASED_DICT, DEFAULT_INDEX_BASED_DICT, params |
Constructor Summary | |
---|---|
DocumentExpressionDictionaryFactory()
|
Method Summary | |
---|---|
Dictionary |
create(SolrCore core,
SolrIndexSearcher searcher)
Create a Dictionary using options in core and optionally
uses searcher , in case of index based dictionaries |
ValueSource |
fromExpression(String weightExpression,
Set<SortField> sortFields)
|
Methods inherited from class org.apache.solr.spelling.suggest.DictionaryFactory |
---|
setParams |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIELD
public static final String PAYLOAD_FIELD
public static final String WEIGHT_EXPRESSION
public static final String SORT_FIELD
WEIGHT_EXPRESSION
Constructor Detail |
---|
public DocumentExpressionDictionaryFactory()
Method Detail |
---|
public Dictionary create(SolrCore core, SolrIndexSearcher searcher)
DictionaryFactory
core
and optionally
uses searcher
, in case of index based dictionaries
create
in class DictionaryFactory
public ValueSource fromExpression(String weightExpression, Set<SortField> sortFields)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |