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 |
---|---|
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) |
setParams
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
public Dictionary create(SolrCore core, SolrIndexSearcher searcher)
DictionaryFactory
core
and optionally
uses searcher
, in case of index based dictionariescreate
in class DictionaryFactory
public ValueSource fromExpression(String weightExpression, Set<SortField> sortFields)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.