Package org.apache.solr.search
Class ExpressionValueSourceParser
java.lang.Object
org.apache.solr.search.ValueSourceParser
org.apache.solr.search.ExpressionValueSourceParser
- All Implemented Interfaces:
NamedListInitializedPlugin
A ValueSource parser configured with a pre-compiled expression that can then be evaluated at
request time. It's powered by the Lucene Expressions module, which is a subset of JavaScript.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA bindings class that uses schema fields to resolve variables. -
Field Summary
FieldsFields inherited from class org.apache.solr.search.ValueSourceParser
standardValueSourceParsers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(org.apache.solr.common.util.NamedList<?> args) initwill be called just once, immediately after creation.org.apache.lucene.queries.function.ValueSourceparse(FunctionQParser fp) Parse the user input into a ValueSource.
-
Field Details
-
SCORE_KEY
- See Also:
-
EXPRESSION_KEY
- See Also:
-
-
Constructor Details
-
ExpressionValueSourceParser
public ExpressionValueSourceParser()
-
-
Method Details
-
init
public void init(org.apache.solr.common.util.NamedList<?> args) Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Parameters:
args- non-null list of initialization parameters (may be empty)
-
parse
Description copied from class:ValueSourceParserParse the user input into a ValueSource.- Specified by:
parsein classValueSourceParser- Throws:
SyntaxError
-