lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benjelloun <anass....@gmail.com>
Subject Re: Auto Complete
Date Mon, 04 Aug 2014 14:20:01 GMT
here is my configuration:
<searchComponent class="solr.SpellCheckComponent" name="suggests">
    <lst name="spellchecker">
      <str name="name">suggestDic</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str
name="lookupImpl">org.apache.solr.spelling.suggest.fst.WFSTLookupFactory</str>
      
	  <str name="storeDir">suggestFolder</str>
      <str name="field">suggestField</str>  
      <str name="buildOnCommit">true</str>
	  <bool name="exactMatchFirst">true</bool>
	   <str name="sourceLocation ">suggestFolder/emptyDic.txt</str>
	     
      
    </lst>
     
    <str name="queryAnalyzerFieldType">textSuggest</str>
  </searchComponent>
  
  <requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggests">
    <lst name="defaults">
      <str name="name">suggests</str>
      <str name="spellcheck">true</str>
	  
      <str name="spellcheck.dictionary">suggestDic</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">6</str>   
      <str name="spellcheck.collate">true</str>
	  <str name="spellcheck.maxCollations">6</str> 
      <str name="spellcheck.collateExtendedResults">true</str>  
    </lst>
    <arr name="components">
      <str>suggests</str>
    </arr>
  </requestHandler>



--
View this message in context: http://lucene.472066.n3.nabble.com/Auto-Complete-tp4150987p4150992.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message