@@ -413,6 +413,47 @@ The following migration example allows users with the `Editor` role to access th
413413                    values: [] 
414414` ` ` 
415415
416+ # # Update Solr configuration
417+ 
418+ Solr configuration changes with the addition of spellchecking feature. 
419+ 
420+ Configure the `spellcheck` component in `solrconfig.xml` :
421+ 
422+ ` ` ` xml
423+   <searchComponent name="spellcheck" class="solr.SpellCheckComponent"> 
424+     <lst name="spellchecker"> 
425+       <str name="name">default</str> 
426+       <str name="field">meta_content__text_t</str> 
427+       <str name="classname">solr.DirectSolrSpellChecker</str> 
428+       <str name="distanceMeasure">internal</str> 
429+       <float name="accuracy">0.5</float> 
430+       <int name="maxEdits">2</int> 
431+       <int name="minPrefix">1</int> 
432+       <int name="maxInspections">5</int> 
433+       <int name="minQueryLength">4</int> 
434+       <float name="maxQueryFrequency">0.01</float> 
435+     </lst> 
436+   </searchComponent> 
437+ ` ` ` 
438+ 
439+ Add this `spellcheck` component to the `/select` request handler : 
440+ 
441+ ` ` ` xml
442+   <requestHandler name="/select" class="solr.SearchHandler"> 
443+     <arr name="last-components"> 
444+       <str>spellcheck</str> 
445+     </arr> 
446+     <!-- […] --> 
447+   </requestHandler> 
448+ ` ` ` 
449+ 
450+ !!! note 
451+ 
452+     You can [generate new Solr configuration files using `generate-solr-config.sh`](install_solr.md#continue-solr-configuration), 
453+     and merge `spellcheck` configuration by comparing new files with your existing setup. 
454+ 
455+ Restart Solr for `solrconfig.xml` changes to take effect. 
456+ 
416457# # Update Elasticsearch schema
417458
418459Elasticsearch schema's templates change, for example, with the addition of new features such as spellchecking. 
0 commit comments