: However, you will notice on page 228, under the section "Suggester", it 
: gives an example of a suggester search component using 
: solr.SpellCheckComponet.
        ...
: So it would appear the solr.SuggestComponent has been around since 4.7, 
: but the documentation has not caught up with the changes. Which is the 
: source of a little confusion.

Ah -- ok .. yeah, sorry ...

You are correct, there was definitely a lag in having he ref guide updated 
to account for the new SuggestComponent -- I didn't realize that.

: Nevertheless, I had hoped to find a simple working example that I could 
: use as a starting point to get the solr.SuggestComponent working so that 
: I might play around with it and make it do what I want. The suggester 
: appears to have many parameters and options, of which, several contain 
: little or no explanation.

the params should all be documented in the ref guide *now* -- and you are 
correct, that consulting the current ref guide to understand what those 
params do will likely be helpful to you -- i guess the main take away of 
my comment "#1" was to keep in mind that you may find some params 
documented for 5.0 which didn't exist in 4.8.  (I'm not sure)

as far as starting with a simple example -- there is absolutely an example 
of using the SuggestComponent in the 4.8 sample solrconfig.xml, and if you 
index the exampledocs you can see it produce suggestions with a URL like 
this...

http://localhost:8983/solr/collection1/suggest?suggest.dictionary=mySuggester&suggest.q=elec

...but my point "#2" is still very important to keep in mind -- that URL 
gives good suggestions for "elec" precisely because of what terms exist in 
the example docs that were index -- the URL you posted is only going to 
give interesting suggestions if there are terms in your index (in the 
configured fields) that are relevant.  if i try this URL...

http://localhost:8983/solr/collection1/suggest?suggest.dictionary=mySuggester&suggest.q=kern

...i get no suggestions, because none of hte indexed docs have any words 
starting with "kern"

in general: posting the examples of URLs you have tried and gotten no good 
suggest results from isn't enough for anyone to help give you guidence 
unless you also post the specifics of the documents you indexed.



: 2) the behavior of the suggester is very specific to the contents of the 
: dictionary built -- the examples on that page apply to the example docs 
: included with solr -- hence the techproduct data, and the example queries 
: for input like "elec" suggesting "electronics" 
: 
: no where on that page is an example using the query "kern" -- wether or 
: not that input would return a suggestion is going to be entirely dependent 
: on wether the dictionary you built contains any similar terms to suggest. 
: 
: if you can please post more details about your documents -- ideally a full 
: set of all the documents in your index (using a small test index of 
: course) that may help to understand the results you are getting. 


-Hoss
http://www.lucidworks.com/

Reply via email to