My guess is that you have a single request handler defined with all
your language specific spell check components. This is why you see
spellcheck values from all spellcheckers.
If the above is true, then I don't think there is a way to choose one
specific spellchecker component. The alternative is to define multiple
request handlers with one-to-one mapping with the spell check
components. Then you can send a request to one particular request
handler and the corresponding spell check component will return its
response.

On Thu, Sep 5, 2013 at 11:29 PM, Mr Havercamp <mrhaverc...@gmail.com> wrote:
> I currently have multiple spellchecks configured in my solrconfig.xml to
> handle a variety of different spell suggestions in different languages.
>
> In the snippet below, I have a catch-all spellcheck as well as an English
> only one for more accurate matching (I.e. my schema.xml is set up to capture
> english only fields to an english-specific textSpell_en field and then I
> also capture to a generic textSpell field):
>
> ---solrconfig.xml---
>
>     <searchComponent name="spellcheck_en" class="solr.SpellCheckComponent">
>         <str name="queryAnalyzerFieldType">textSpell_en</str>
>
>         <lst name="spellchecker">
>             <str name="name">default</str>
>             <str name="field">spell_en</str>
>             <str name="spellcheckIndexDir">./spellchecker_en</str>
>             <str name="buildOnOptimize">true</str>
>         </lst>
>     </searchComponent>
>
>     <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
>         <str name="queryAnalyzerFieldType">textSpell</str>
>
>         <lst name="spellchecker">
>             <str name="name">default</str>
>             <str name="field">spell</str>
>             <str name="spellcheckIndexDir">./spellchecker</str>
>             <str name="buildOnOptimize">true</str>
>         </lst>
>     </searchComponent>
>
> My question is; when I query my Solr index, am I able to load, say, just
> spellcheck values from the spellcheck_en spellchecker rather than from both?
> This would be useful if I were to start implementing additional language
> spellchecks; E.g. spellcheck_ja, spellcheck_fr, etc.
>
> Thanks for any insights.
>
> Cheers
>
>
> Hayden



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to