Skip to content

Instantly share code, notes, and snippets.

@Adyg
Created August 25, 2015 10:40
Show Gist options
  • Save Adyg/2dc5037047e87d8a2edf to your computer and use it in GitHub Desktop.
Save Adyg/2dc5037047e87d8a2edf to your computer and use it in GitHub Desktop.
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">text_general</str>
<lst name="spellchecker">
<str name="name">default</str>
<str name="field">text</str>
<str name="classname">solr.DirectSolrSpellChecker</str>
<str name="distanceMeasure">internal</str>
<float name="accuracy">0.5</float>
<int name="maxEdits">2</int>
<int name="minPrefix">1</int>
<int name="maxInspections">5</int>
<int name="minQueryLength">4</int>
<float name="maxQueryFrequency">0.01</float>
</lst>
<lst name="spellchecker">
<str name="name">wordbreak</str>
<str name="classname">solr.WordBreakSolrSpellChecker</str>
<str name="field">name</str>
<str name="combineWords">true</str>
<str name="breakWords">true</str>
<int name="maxChanges">10</int>
</lst>
</searchComponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment