Package org.apache.solr.search
Class VectorSimilaritySourceParser
java.lang.Object
org.apache.solr.search.ValueSourceParser
org.apache.solr.search.VectorSimilaritySourceParser
- All Implemented Interfaces:
NamedListInitializedPlugin
This class provides implementation for two variants for parsing function query vectorSimilarity
which is used to calculate the similarity between two vectors.
-
Field Summary
Fields inherited from class org.apache.solr.search.ValueSourceParser
standardValueSourceParsers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.queries.function.ValueSourceparse(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, waitMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Constructor Details
-
VectorSimilaritySourceParser
public VectorSimilaritySourceParser()
-
-
Method Details
-
parse
Description copied from class:ValueSourceParserParse the user input into a ValueSource.- Specified by:
parsein classValueSourceParser- Throws:
SyntaxError
-