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 "SearchHandler" by HossMan
Date Tue, 15 Sep 2009 18:48:55 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 HossMan:
http://wiki.apache.org/solr/SearchHandler

The comment on the change is:
move info PeterWolanin put in SolrRequestHandler erroneously

------------------------------------------------------------------------------
  
  '''NOTE:''' Prior  ["Solr1.3"], SearchHandler was named StandardRequestHandler.  StandardRequestHandler
is now a simple subclass of SearchHandler
  
- /!\ :TODO: /!\ Docs are now wofully out of date ... need to mention SearchComponent
+ /!\ :TODO: /!\ Docs are now woefully out of date ... most of the params section should be
moved to pages on each component.
  
  [[TableOfContents(2)]]
+ 
+ = Search Components =
+ 
+ All of the logic that drives the SearchHandler comes from [:SearchComponent:SearchComponents].
 The default list of 
+ 
+ 
+ If no components are explicitly declared in the request handler config the the defaults
are used.
+ They are:
+  * "query" (usually QueryComponent)
+  * "facet" (usually FacetComponent)
+  * "mlt" (usually MoreLikeThisComponent)
+  * "highlight" (usually HighlightComponent)
+  * "stats" (usually StatsComponent)
+  * "debug" (usually 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>
+ }}}
+ 
+ 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.  See SearchComponent for more details.
  
  = Query Params =
  

Mime
View raw message