Hi,

I'm using solr 4.10 and I'm trying to add autosuggest ability to my application.
I'm currently using this kind of configuration:

 <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="dictionaryImpl">DocumentDictionaryFactory</str>     
      <str name="field">field2</str>
      <str name="weightField">weightField</str>
      <str name="suggestAnalyzerFieldType">text_general</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> 

I wanted to know how the suggester Index/file is being rebuilt.
Is it suppose to have all the terms of the desired field in the suggester?
if not, is it related to this kind of lookup implementation?
if I'll use other lookup implementation which suggest also infix terms of 
fields,
doesn't it has to hold all terms of the field?

When i call suggest.build, does it build from scratch the suggester Index/file,
or is it just doing something like sort of "delta" indexing suggestions? 
 
Thank You,
Jon

Reply via email to