Package org.apache.solr.search
Class NestedQParserPlugin
java.lang.Object
org.apache.solr.search.QParserPlugin
org.apache.solr.search.NestedQParserPlugin
- All Implemented Interfaces:
NamedListInitializedPlugin
Create a nested query, with the ability of that query to redefine its type via local parameters.
This is useful in specifying defaults in configuration and letting clients indirectly reference
them.
Example:
if the q1 parameter is
if the q1 parameter is
Example:
{!query defType=func v=$q1} if the q1 parameter is
price then the query would be a function query on the price
field. if the q1 parameter is
{!lucene}inStock:true then a term query is created from the
lucene syntax string that matches documents with inStock=true.-
Field Summary
FieldsFields inherited from class org.apache.solr.search.QParserPlugin
DEFAULT_QTYPE, standardPlugins -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req) Creates theQParser.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
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
NestedQParserPlugin
public NestedQParserPlugin()
-
-
Method Details
-
createParser
public QParser createParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req) Description copied from class:QParserPluginCreates theQParser.- Specified by:
createParserin classQParserPlugin- See Also:
-