You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/09/26 14:43:41 UTC

[Solr Wiki] Update of "SolrPlugins" by JeromeEteve

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by JeromeEteve:
http://wiki.apache.org/solr/SolrPlugins

------------------------------------------------------------------------------
  
  /!\ :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 [wiki:SolrConfigXml solrconfig.xml] like this:
+ 
+ {{{
+   <queryParser name="myqueryparser" class="my.package.MyQueryParserPlugin" />
+  
+ }}}
+ 
+ 
+ Once registered, the query parser used with the SolrRequestHandler is defined like this:
+ 
+ {{{
+    <requestHandler name="dismax" class="solr.SearchHandler" >
+     <lst name="defaults">
+      <str name="defType">myqueryparser</str>
+      ...
+ 
+ }}}
+ 
+ 
+ 
  ==== ValueSourceParser ====
  
  /!\ :TODO: /!\ NEED DOCS