You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by roySolr <ro...@gmail.com> on 2011/07/07 10:46:21 UTC
Re: Problem with spellchecking, dont want multiple request to SOLR
What should the query look like??
I can't define 2 spellchecker in one query. I want something like this:
Search: Soccerclub(what) Manchester(where)
select/?q=socerclub
macnchester&spellcheck=true&spellcheck.dictionary=spell_what&spellcheck.dictionary=spell_where&spell_what=socerclub&spell_where=macnchester
Now i have 2 spellcheckers in my requesthandler but i can't set them correct
in my query.
My config looks like this:
<arr name="last-components">
<str>spellcheck1</str>
<str>spellcheck2</str>
</arr>
<searchComponent name="spellcheck1" class="solr.SpellCheckComponent">
<lst name="spellchecker">
<str name="name">spell_what</str>
<str name="field">spell_search1</str>
<str name="buildOnOptimize">true</str>
<str name="spellcheckIndexDir">spellchecker1</str>
</lst>
</searchComponent>
<searchComponent name="spellcheck2" class="solr.SpellCheckComponent">
<lst name="spellchecker">
<str name="name">spell_where</str>
<str name="field">spell_search2</str>
<str name="buildOnOptimize">true</str>
<str name="spellcheckIndexDir">spellchecker2</str>
</lst>
</searchComponent>
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p3147545.html
Sent from the Solr - User mailing list archive at Nabble.com.