Skip to content

Instantly share code, notes, and snippets.

@StVolodymyr
Created June 16, 2015 14:16
Show Gist options
  • Save StVolodymyr/72030cc454a3eaa43715 to your computer and use it in GitHub Desktop.
Save StVolodymyr/72030cc454a3eaa43715 to your computer and use it in GitHub Desktop.
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">mySuggester</str>
<str name="lookupImpl">FuzzyLookupFactory</str>
<str name="storeDir">suggester_fuzzy_dir</str>
<!-- Substitute these for the two above for another "flavor"
<str name=”lookupImpl”>AnalyzingInfixLookupFactory</str>
<str name=”indexPath”>suggester_infix_dir</str>
-->
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="field">text</str>
<str name="weightField">factor</str>
<str name="suggestAnalyzerFieldType">textSuggest</str>
<str name="buildOnStartup">false</str>
<str name="buildOnCommit">false</str>
</lst>
</searchComponent>
<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
<lst name="defaults">
<str name="suggest">true</str>
<str name="suggest.count">10</str>
<str name="suggest.dictionary">mySuggester</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment