Package org.apache.solr.search
Class ValueSourceParser
- java.lang.Object
-
- org.apache.solr.search.ValueSourceParser
-
- All Implemented Interfaces:
NamedListInitializedPlugin
- Direct Known Subclasses:
ChildFieldValueSourceParser
,ExpressionValueSourceParser
,GeoDistValueSourceParser
,PercentileAgg.Parser
,VectorSimilaritySourceParser
public abstract class ValueSourceParser extends Object implements NamedListInitializedPlugin
A factory parsing arguments (fromFunctionQParser
) into a real function whose results are emitted from aValueSource
. Custom ones can be registered by name and configured insolrconfig.xml
.- See Also:
FunctionQParser
-
-
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 Modifier and Type Method Description abstract org.apache.lucene.queries.function.ValueSource
parse(FunctionQParser fp)
Parse the user input into a ValueSource.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
-
-
-
Field Detail
-
standardValueSourceParsers
public static final Map<String,ValueSourceParser> standardValueSourceParsers
standard functions supported by default
-
-
Method Detail
-
parse
public abstract org.apache.lucene.queries.function.ValueSource parse(FunctionQParser fp) throws SyntaxError
Parse the user input into a ValueSource.- Throws:
SyntaxError
-
-