SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <config>
  2.   <searchComponent name="suggest" class="solr.SuggestComponent">
  3.     <lst name="suggester">
  4.       <str name="name">mySuggester</str>
  5.       <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  6.       <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  7.       <str name="field">headline</str>
  8.       <str name="suggestAnalyzerFieldType">text_en</str>
  9.       <str name="buildOnStartup">false</str>
  10.     </lst>
  11.   </searchComponent>
  12.  
  13.   <requestHandler name="/suggest" class="solr.SearchHandler"
  14.                   startup="lazy" >
  15.     <lst name="defaults">
  16.       <str name="suggest">true</str>
  17.       <str name="suggest.count">10</str>
  18.       <str name="suggest.dictionary">mySuggester</str>
  19.     </lst>
  20.     <arr name="components">
  21.       <str>suggest</str>
  22.     </arr>
  23.   </requestHandler>
  24. </config>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top