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 Rajesh Hazari <ra...@gmail.com> on 2021/01/01 13:10:00 UTC

Re: Can we have multiple Spellcheck Components under /select handler

Hi,

You can have more than one spellcheck components after you have the
spellcheck components in select request handler,
you have still which spellcheck you want to use you could mention in your
query params
for ex:
http://
<host>:8983/solr/<coll>/select/?q=text&spellcheck.dictionary=default&spellcheck.dictionary=wordbreak&spellcheck=true

or define as defualts in you select handler:

   <requestHandler name="/select" class="solr.SearchHandler">
     <lst name="defaults">
<str name="spellcheck">true</str>
<str name="spellcheck.dictionary">default</str>
<str name="spellcheck.dictionary">wordbreak</str>
.....
<arr name="last-components">
<str>elevator</str>
<str>spellcheck</str>

</arr>
    </requestHandler>
*Rajesh.*


On Wed, Dec 30, 2020 at 7:51 AM rashi gandhi <ga...@gmail.com>
wrote:

> Hi All
>
> I am trying to configure multiple spellcheck components. I defined two
> searchComponents in my solrconfig.xml, let's say <spellcheck> and
> <spellcheck1>.
> And added above both components under /select request handler with default
> required attributes.
>
> > <arr name="last-components"> <str>elevator</str> <str>spellcheck</str> <
> > str>spellcheck1</str> </arr>
>
>
> However, I can not see spellcheck1 coming in response. (when I set
> /select?spellcheck1=true&q=<text>).
>
> Can't we configure multiple spellcheck components with different names in
> Solr.
>