Add spellchecker example ------------------------ Key: SOLR-1232 URL: https://issues.apache.org/jira/browse/SOLR-1232 Project: Solr Issue Type: Improvement Components: documentation Affects Versions: 1.3 Reporter: Dominic Mitchell
I got caught out by the wiki documentation last night whilst attempting to add in spellchecker support. I'm still _relatively_ new, so I didn't quite get the idea that you had to add it in to a requestHandler in order for it to become effective. I'd like to propose adding a commented out example to {{example/solr/conf/solrconfig.xml}} showing that this needs to be done. {noformat} diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml index c007d7c..6e42e48 100755 --- a/example/solr/conf/solrconfig.xml +++ b/example/solr/conf/solrconfig.xml @@ -412,20 +412,26 @@ <requestHandler name="standard" class="solr.SearchHandler" default="true"> <!-- default values for query parameters --> <lst name="defaults"> <str name="echoParams">explicit</str> <!-- <int name="rows">10</int> <str name="fl">*</str> <str name="version">2.1</str> --> </lst> + <!-- Uncomment to enable spellcheck searchComponent. --> + <!-- + <arr name="last-components"> + <str>spellcheck</str> + </arr> + --> </requestHandler> <!-- Please refer to http://wiki.apache.org/solr/SolrReplication for details on configuring replication --> <!--Master config--> <!-- <requestHandler name="/replication" class="solr.ReplicationHandler" > <lst name="master"> <str name="replicateAfter">commit</str> <str name="confFiles">schema.xml,stopwords.txt</str> </lst> {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.