Package org.apache.solr.search
Class ValueSourceParser
- java.lang.Object
-
- org.apache.solr.search.ValueSourceParser
-
- All Implemented Interfaces:
NamedListInitializedPlugin
- Direct Known Subclasses:
ChildFieldValueSourceParser
,GeoDistValueSourceParser
,PercentileAgg.Parser
public abstract class ValueSourceParser extends Object implements NamedListInitializedPlugin
A factory that parses user queries to generate ValueSource instances. Intended usage is to create pluggable, named functions for use in function queries.
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,ValueSourceParser>
standardValueSourceParsers
standard functions supported by default
-
Constructor Summary
Constructors Constructor Description ValueSourceParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
init(NamedList args)
Initialize the plugin.abstract org.apache.lucene.queries.function.ValueSource
parse(FunctionQParser fp)
Parse the user input into a ValueSource.
-
-
-
Field Detail
-
standardValueSourceParsers
public static final Map<String,ValueSourceParser> standardValueSourceParsers
standard functions supported by default
-
-
Method Detail
-
init
public void init(NamedList args)
Initialize the plugin.- Specified by:
init
in interfaceNamedListInitializedPlugin
-
parse
public abstract org.apache.lucene.queries.function.ValueSource parse(FunctionQParser fp) throws SyntaxError
Parse the user input into a ValueSource.- Throws:
SyntaxError
-
-