Hi Tobias,

try this, it works for us (Solr 3.3):

solrconfig.xml:

/<searchComponent name="suggest" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">word</str>
<lst name="spellchecker">
<str name="name">suggestion</str>
<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
<str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
<str name="field">wordCorpus</str>
<str name="comparatorClass">score</str>
<str name="storeDir">./suggester</str>
<str name="buildOnCommit">false</str>
<str name="buildOnOptimize">true</str>
<float name="threshold">0.005</float>
</lst>

<requestHandler name="/suggest" class="solr.SearchHandler">
<lst name="defaults">
<str name="omitHeader">true</str>
<str name="spellcheck">true</str>
<str name="spellcheck.onlyMorePopular">true</str>
<str name="spellcheck.collate">true</str>
<str name="spellcheck.dictionary">suggestion</str>
<str name="spellcheck.count">50</str>
<str name="spellcheck.maxCollations">50</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>/

Query like that:

http://localhost:8080/solr/core.01/suggest?q=wordPrefix&shards=localhost:8080/solr/core.01,localhost:8080/solr/core.02&shards.qt=/suggest


Greetz,

Sebastian



Tobias Rübner wrote:
> 
> Hi,
> 
> I try to use the suggest component (solr 3.3) with multiple cores.
> I added a search component and a request handler as described in the docs
> (
> http://wiki.apache.org/solr/Suggester) to my solrconfig.
> That works fine for 1 core but querying my solr instance with the shards
> parameter does not query multiple cores.
> It just ignores the shards parameter.
> http://localhost:8888/solr/core1/suggest?q=sa&shards=localhost:8888/solr/core1,localhost:8888/solr/core2
> 
> The documentation of the SpellCheckComponent (
> http://wiki.apache.org/solr/SpellCheckComponent#Distributed_Search_Support)
> is a bit vage in that point, because I don't know if this feature really
> works with solr 3.3. It is targeted for solr 1.5, which will never come,
> but
> says, it is now available.
> I also tried the shards.qt paramater, but it does not change my results.
> 
> Thanks for any help,
> Tobias
> 


--
View this message in context: 
http://lucene.472066.n3.nabble.com/using-distributed-search-with-the-suggest-component-tp3197651p3200143.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to