Hello Adrien,

Looking quickly at your schema, I suspect that the suggestions field isn't 
populated, so the suggester dictionary is empty.

How is input sent to that field ? Providing a few sample documents you are 
indexing could help understand what is going on.

If you intended to copy content from an other field (name maybe) then a 
copyField is missing :

<copyField source="name" dest="suggestions" />

If you the suggestions field is already  populated in the documents you send to 
the index, then what you are trying *should* work.

To make sure of a field's contents, use the terms component.
Try something like : 
http://localhost:8080/myapp/solr/myapp/terms?terms.fl=suggestions&terms.sort=index&terms.prefix=adr

This will give you all the indexed terms in the suggestions field starting with 
"adr".

You can also remove the terms.prefix parameter to find the top ten terms in the 
suggestions field by frequency.

If you have nothing here, then chances are that your suggestions field isn't 
populated as you expected.

I hope this helps :-)

Tanguy

On Jul 3, 2013, at 8:17 AM, Adrien RUFFIE <a.ruf...@e-deal.com> wrote:

> Anyone can ask me ? It is so difficult to find a solution ? or information is 
> missing to identify the problem?
>  
> Bien cordialement,
> 
> Adrien Ruffié
> LD : +33 1 73 03 29 50
> Tél : +33 1 73 03 29 80
> 
> E-DEAL
> Innover la Relation Client
>  
> De : Adrien RUFFIE [mailto:a.ruf...@e-deal.com] 
> Envoyé : mardi 2 juillet 2013 17:47
> À : solr-user@lucene.apache.org
> Objet : Solr Suggest
>  
> Hello all,
>  
> I have tried to implement Solr Suggest, but I don’t have returned results.
>  
> I add my small solrconfig.xml where searchComponent and requestHandler is 
> define, my schema.xml where field, fieldType, copyField is defined … and my 
> web.xml
> I
> The solr reload is the trace when I restart my solr server and show me the 
> good suggest reloading:
>  
>  
> INFO: Loading spell index for spellchecker: suggest
> 2 juil. 2013 17:30:43 org.apache.solr.spelling.suggest.Suggester reload
> INFO: reload()
> 2 juil. 2013 17:30:43 org.apache.solr.spelling.suggest.Suggester build
> INFO: build()
>  
>  
> The respond when I try following request 
> http://localhost:8080/myapp/solr/myapp/suggest?q=adr&qt=myapp , is in 
> response.xml file.
> Also solr.xml define my core, and full-indexation.txt is traces when I 
> perform a full indexation
>  
> Do you have an idea of the problem ?
>  
> Best regards,
>  
> Bien cordialement,
>  
> <image006.png>
> <image003.png><image004.png><image005.png>
> Adrien RUFFIE
> Ingénieur R&D
> 40, rue du Village d’Entreprises
> 31670 Labège
> www.e-deal.com
>  
> LD : +33 1 73 03 29 50
> Std : +33 1 73 03 29 80
> Fax : +33 1 73 01 69 77
> a.ruf...@e-deal.com
> 
> E-DEAL soutient le Pacte Mondial de l'ONU
>  
> <schema.xml><solrconfig.xml><solr-reload.txt><web.xml><full-indexation.txt><response.txt><solr.xml>

Reply via email to