Last active
November 4, 2015 17:35
-
-
Save rajanim/2984c4d2215c059e6a16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> | |
| <str name="weightField">price</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">title</str> | |
| <str name="suggestAnalyzerFieldType">suggestTypeLc</str> | |
| <str name="buildOnStartup">false</str> | |
| <str name="buildOnCommit">false</str> | |
| </lst> | |
| </searchComponent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy"> | |
| <lst name="defaults"> | |
| <str name="suggest">true</str> | |
| <str name="suggest.count">10</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