Re: Solr Suggester no results

2016-05-09 Thread Grigoris Iliopoulos
Yes, i also realized  that stored="false" was the problem..It is also
stated clearly in the documentation : "To be used as the basis for a
suggestion, the field must be stored."

Thanks for your time,
Grigoris

2016-05-06 19:42 GMT+03:00 Erick Erickson <erickerick...@gmail.com>:

> First off, kudos for providing the details, that really helps!
>
> The root of your problem is that your suggest field has stored="false".
> DocumentDictionaryFactory reads through all the
> docs in your corpus, extracts the stored data and puts it in the FST. Since
> you don't have any stored data your FST is...er...minimal.
>
> I'd also add
> suggester_fuzzy_dir
> to the searchComponent. You'll find the FST on disk in that directory
> where it
> can be read next time Solr starts up. It is also helpful for figuring out
> whether there are suggestions to be had.
>
> And a minor nit, you probably don't want to specify suggest.dictionary
> in your query,
> that's already specified in your config.
>
> And it looks like you're alive to the fact that with that setup
> capitalization matters
> as does the fact that these suggestions be matched from the beginning of
> the
> field...
>
> Best,
> Erick
>
> On Thu, May 5, 2016 at 1:05 AM, Grigoris Iliopoulos
> <grigoris@gmail.com> wrote:
> > Hi there,
> >
> > I want to use the Solr suggester component for city names. I have the
> > following settings:
> > schema.xml
> >
> > Field definition
> >
> >  positionIncrementGap="100">
> >   
> > 
> > 
> > 
> >   
> > 
> >
> > The field i want to apply the suggester on
> >
> > 
> >
> > The copy field
> >
> > 
> >
> > The field
> >
> >  indexed="true" />
> >
> > solr-config.xml
> >
> >  startup="lazy">
> >   
> > true
> > 10
> > mySuggester
> >   
> >   
> > suggest
> >   
> > 
> >
> >
> >
> > 
> >   
> > mySuggester
> > FuzzyLookupFactory
> > DocumentDictionaryFactory
> > citySuggest
> > string
> >   
> > 
> >
> > Then i run
> >
> >
> http://localhost:8983/solr/company/suggest?suggest=true=mySuggester=json=Ath=true
> >
> > to build the suggest component
> >
> > Finally i run
> >
> >
> http://localhost:8983/solr/company/suggest?suggest=true=mySuggester=json=Ath
> >
> > but i get an empty result set
> >
> >
> {"responseHeader":{"status":0,"QTime":0},"suggest":{"mySuggester":{"Ath":{"numFound":0,"suggestions":[]
> >
> > Are there any obvious mistakes? Any thoughts?
>


Solr Suggester no results

2016-05-05 Thread Grigoris Iliopoulos
Hi there,

I want to use the Solr suggester component for city names. I have the
following settings:
schema.xml

Field definition


  



  


The field i want to apply the suggester on



The copy field



The field



solr-config.xml


  
true
10
mySuggester
  
  
suggest
  





  
mySuggester
FuzzyLookupFactory
DocumentDictionaryFactory
citySuggest
string
  


Then i run

http://localhost:8983/solr/company/suggest?suggest=true=mySuggester=json=Ath=true

to build the suggest component

Finally i run

   
http://localhost:8983/solr/company/suggest?suggest=true=mySuggester=json=Ath

but i get an empty result set

{"responseHeader":{"status":0,"QTime":0},"suggest":{"mySuggester":{"Ath":{"numFound":0,"suggestions":[]

Are there any obvious mistakes? Any thoughts?