Hi Lajos, Can you elaborate on the "get the overflow when using a text field" part? The new SuggestComponent should work just as well for DocumentDictionary.
Thanks Areek On Mon, Mar 17, 2014 at 6:05 PM, Lajos <la...@protulae.com> wrote: > Hi Steve, > > I've posted previously about a nice Stackoverflow exception I got when > using this component ... can you post what you see? > > I've used it successfully in with a custom dictionary like this: > > <searchComponent name="newsuggester" class="solr.SuggestComponent"> > <lst name="suggester"> > <str name="name">newsuggester</str> > <str name="lookupImpl">FuzzyLookupFactory</str> > <str name="sourceLocation">suggestions.dict</str> > <str name="storeDir">newsuggester</str> > <str name="suggestAnalyzerFieldType">text</str> > <str name="buildOnCommit">true</str> > <float name="threshold">0.0</float> > </lst> > </searchComponent> > > And that works fine, and is a nice improvement over the > SpellCheckComponent because it supports fuzzy searching. > > But this way, I get the overflow when using a text field: > > <searchComponent name="suggest2" class="solr.SuggestComponent"> > <lst name="suggester"> > <str name="name">default</str> > <str name="lookupImpl">FuzzyLookupFactory</str> > <str name="dictionaryImpl">DocumentDictionaryFactory</str> > <str name="field">title</str> > <str name="weightField">price</str> > <str name="suggestAnalyzerFieldType">string</str> > </lst> > </searchComponent> > > > Sure would like to see it work! > > Regards, > > Lajos Moczar > > > > > > On 17/03/2014 22:11, Steve Huckle wrote: > >> Hi, >> >> The Suggest Search Component that comes preconfigured in Solr 4.7.0 >> solrconfig.xml seems to thread dump when I call it: >> >> http://localhost:8983/solr/suggest?spellcheck=on&q=ac&wt=json&indent=true >> >> "msg":"No suggester named default was configured", >> >> Can someone tell me what's going on there? >> >> However, I can stop that happening if I replace the preconfigured >> "Suggest" Search Component and Request Handler with the Search Component >> and Request Handler configuration detailed here: >> >> https://cwiki.apache.org/confluence/display/solr/Suggester >> >> ...but after indexing the data in exampledocs, it doesn't seem to return >> any suggestions either. Can anyone help suggest how I might get suggest >> suggesting suggestions? >> >> Thanks, >> >>