Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrPlugins" page has been changed by GrantIngersoll. http://wiki.apache.org/solr/SolrPlugins?action=diff&rev1=36&rev2=37 -------------------------------------------------- for more info, see: SearchComponent ==== QParserPlugin ==== - /!\ :TODO: /!\ NEED DOCS [[http://lucene.apache.org/solr/api/org/apache/solr/search/QParserPlugin.html|QParserPlugin]] can be used to define customized user query processing instances of [[http://lucene.apache.org/solr/api/org/apache/solr/search/QParser.html|QParser]] . - First, implement a subclass of [[http://lucene.apache.org/solr/api/org/apache/solr/search/QParserPlugin.html|QParserPlugin]] and register it in [[SolrConfigXml|solrconfig.xml]] like this: + First, implement a subclass of [[http://lucene.apache.org/solr/api/org/apache/solr/search/QParserPlugin.html|QParserPlugin]]. This consists primarily of implementing the parse() method + to construct the appropriate Query objects. + + Next register it in [[SolrConfigXml|solrconfig.xml]] like this: {{{ <queryParser name="myqueryparser" class="my.package.MyQueryParserPlugin" /> }}} + + See SolrQuerySyntax and it's list of useful parser implementations for examples of writing a !QParserPlugin. + Having done this, you can choose to use your query parser on a one-time basis using the defType query parameter, like this: {{{
