Note that there are some explanatory texts on larger screens.

plurals
  1. POSolr returns only one collation for Suggester Component
    primarykey
    data
    text
    <p>I use solr 3.6 and I would like to use collations from suggester as a autocomplete solution for multi term searches. Unfortunately the Suggester returns only one collation for a multi term search, even if a lot of suggestions for each single term exists. Depending on my test searches and the underlying indexed data I'm sure that more collations must exist.</p> <p>Is something wrong with my Suggester configuration?</p> <pre><code> &lt;!--configuration --&gt; &lt;searchComponent class="solr.SpellCheckComponent" name="suggest"&gt; &lt;lst name="spellchecker"&gt; &lt;str name="name"&gt;suggest&lt;/str&gt; &lt;str name="classname"&gt;org.apache.solr.spelling.suggest.Suggester&lt;/str&gt; &lt;str name="lookupImpl"&gt;org.apache.solr.spelling.suggest.fst.WFSTLookupFactory&lt;/str&gt; &lt;str name="field"&gt;text&lt;/str&gt; &lt;!-- the indexed field to derive suggestions from --&gt; &lt;!--&lt;float name="threshold"&gt;0.0005&lt;/float&gt; disabled for test--&gt; &lt;str name="buildOnCommit"&gt;true&lt;/str&gt; &lt;/lst&gt; &lt;/searchComponent&gt; &lt;requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggest"&gt; &lt;lst name="defaults"&gt; &lt;str name="spellcheck"&gt;true&lt;/str&gt; &lt;str name="spellcheck.dictionary"&gt;suggest&lt;/str&gt; &lt;str name="spellcheck.onlyMorePopular"&gt;true&lt;/str&gt; &lt;str name="spellcheck.count"&gt;200&lt;/str&gt; &lt;str name="spellcheck.collate"&gt;true&lt;/str&gt; &lt;str name="spellcheck.maxCollations"&gt;10&lt;/str&gt; &lt;/lst&gt; &lt;arr name="components"&gt; &lt;str&gt;suggest&lt;/str&gt; &lt;/arr&gt; &lt;/requestHandler&gt; </code></pre> <p>Example response for q=bio+ber :</p> <pre><code>&lt;response&gt; &lt;lst name="responseHeader"&gt; &lt;int name="status"&gt;0&lt;/int&gt; &lt;int name="QTime"&gt;4&lt;/int&gt; &lt;/lst&gt; &lt;lst name="spellcheck"&gt; &lt;lst name="suggestions"&gt; &lt;lst name="bio"&gt; &lt;int name="numFound"&gt;27&lt;/int&gt; &lt;int name="startOffset"&gt;0&lt;/int&gt; &lt;int name="endOffset"&gt;3&lt;/int&gt; &lt;arr name="suggestion"&gt; &lt;str&gt;bio&lt;/str&gt; &lt;str&gt;bio-estetica&lt;/str&gt; &lt;str&gt;bio-kosmetik&lt;/str&gt; ... &lt;/arr&gt; &lt;/lst&gt; &lt;lst name="ber"&gt; &lt;int name="numFound"&gt;81&lt;/int&gt; &lt;int name="startOffset"&gt;4&lt;/int&gt; &lt;int name="endOffset"&gt;7&lt;/int&gt; &lt;arr name="suggestion"&gt; &lt;str&gt;beratung&lt;/str&gt; &lt;str&gt;bern&lt;/str&gt; ... &lt;/arr&gt; &lt;/lst&gt; &lt;str name="collation"&gt;bio beratung&lt;/str&gt; &lt;/lst&gt; &lt;/lst&gt; &lt;/response&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload