Frankly, the suggester is rather broken in Solr 4.x with large indexes. Building the suggester index (or FST) requires that _all_ the docs get read, the stored fields analyzed and added to the suggester. Unfortunately, this happens _every_ time you start Solr and can take many minutes whether or not you have buildOnStartup set to false, see: https://issues.apache.org/jira/browse/SOLR-6845.
See: http://lucidworks.com/blog/solr-suggester/ See inline. On Thu, May 21, 2015 at 6:12 AM, jon kerling <jonkerl...@yahoo.com.invalid> wrote: > 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? Yes. > 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? Yes. > > 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? Builds from scratch > > Thank You, > Jon