lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrRequestHandler" by PeterWolanin
Date Mon, 14 Sep 2009 12:53:48 GMT
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 PeterWolanin:
http://wiki.apache.org/solr/SolrRequestHandler

The comment on the change is:
copied from solr-user post by Jay Hill <jayallenhill@gmail.com>.  

------------------------------------------------------------------------------
    <requestHandler name="/baz" class="my.package.AnotherCustomRequestHandler">
    <requestHandler name="/update/my-pdf-reader" class="my.package.MyPdfHandler">
  }}}
+ 
+ If no components are explicitly declared in the request handler config the the defaults
are used.
+ They are:
+  * Query Component
+  * Facet Component
+  * MoreLikeThisComponent
+  * Highlight Component
+  * StatsComponent
+  * DebugComponent
+ 
+ If you want to have a custom list of components (either omitting defaults or adding custom
components) you can specify the components for a handler directly:
+ {{{
+    <arr name="components">
+      <str>query</str>
+      <str>facet</str>
+      <str>mlt</str>
+      <str>highlight</str>
+      <str>debug</str>
+      <str>someothercomponent</str>
+    </arr>
+ }}}
+ 
+ You can add components before or after the main ones like this:
+ {{{
+    <arr name="first-components">
+      <str>mycomponent</str>
+    </arr>
+ 
+    <arr name="last-components">
+      <str>myothercomponent</str>
+    </arr>
+ }}}
+ 
+ and that's how the spell check component can be added:
+ {{{
+    <arr name="last-components">
+      <str>spellcheck</str>
+    </arr>
+ }}}
+ 
+ Note that the any component used (except the defaults) must itself be configured in solrconfig.xml
with the name used in the str element as well.
+ 
+ Have a look at the solrconfig.xml in the example directory (".../example/solr/conf/") for
examples on how to set up the spellcheck component, and on how the request handlers are configured.
  
  == Handler Resolution ==
  

Mime
View raw message