Package org.apache.solr.spelling.suggest
Class DocumentExpressionDictionaryFactory
- java.lang.Object
-
- org.apache.solr.spelling.suggest.DictionaryFactory
-
- org.apache.solr.spelling.suggest.DocumentExpressionDictionaryFactory
-
public class DocumentExpressionDictionaryFactory extends DictionaryFactory
Factory forDocumentValueSourceDictionary
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD
Label for defining field to use for termsstatic 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 theWEIGHT_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
Constructors Constructor Description DocumentExpressionDictionaryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.spell.Dictionary
create(SolrCore core, SolrIndexSearcher searcher)
Create a Dictionary using options incore
and optionally usessearcher
, in case of index based dictionariesorg.apache.lucene.search.LongValuesSource
fromExpression(String weightExpression, Set<org.apache.lucene.search.SortField> sortFields)
-
Methods inherited from class org.apache.solr.spelling.suggest.DictionaryFactory
setParams
-
-
-
-
Field Detail
-
FIELD
public static final String FIELD
Label for defining field to use for terms- See Also:
- Constant Field Values
-
PAYLOAD_FIELD
public static final String PAYLOAD_FIELD
Label for defining payloadField to use for terms (optional)- See Also:
- Constant Field Values
-
WEIGHT_EXPRESSION
public static final String WEIGHT_EXPRESSION
Label for defining expression to evaluate the weight for the terms- See Also:
- Constant Field Values
-
SORT_FIELD
public static final String SORT_FIELD
Label used to define the name of the sortField used in theWEIGHT_EXPRESSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public org.apache.lucene.search.spell.Dictionary create(SolrCore core, SolrIndexSearcher searcher) throws IOException
Description copied from class:DictionaryFactory
Create a Dictionary using options incore
and optionally usessearcher
, in case of index based dictionaries- Specified by:
create
in classDictionaryFactory
- Throws:
IOException
-
-