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 2009/02/16 23:28:50 UTC
[Solr Wiki] Update of "TermsComponent" by PeterWolanin
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/TermsComponent
The comment on the change is:
adding an example of how to activate this in solrconfig.xml
------------------------------------------------------------------------------
The following examples use the Solr tutorial example located in the <Solr>/example directory.
+ You can activate this component by adding to solrconfig.xml:
+
+ {{{
+ <searchComponent name="terms" class="org.apache.solr.handler.component.TermsComponent" />
+ <!-- a request handler utilizing the elevator component -->
+ <requestHandler name="/autocomplete" class="solr.SearchHandler" startup="lazy">
+ <lst name="defaults">
+ <str name="echoParams">explicit</str>
+ </lst>
+ <arr name="components">
+ <str>terms</str>
+ </arr>
+ </requestHandler>
+ }}}
+
== Simple ==
{{{
http://localhost:8983/solr/autoSuggest?terms=true&terms.fl=name