Here is an example to illustrate what I mean... - query q=text:(life AND hope)&spellcheck.count=10&spellcheck.alternativeTermCount=5 - suppose at least one document in your dictionary field has "life" in it - also suppose zero documents in your dictionary field have "hope" in them - The spellchecker will try to return you up to 10 suggestions for "hope", but only up to 5 suggestions for "life"
James Dyer Ingram Content Group -----Original Message----- From: Nitin Solanki [mailto:nitinml...@gmail.com] Sent: Tuesday, February 17, 2015 11:35 AM To: solr-user@lucene.apache.org Subject: Re: spellcheck.count v/s spellcheck.alternativeTermCount Hi James, How can you say that "count" doesn't use index/dictionary then from where suggestions come. On Tue, Feb 17, 2015 at 10:29 PM, Dyer, James <james.d...@ingramcontent.com> wrote: > See http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.count and > the following section, for details. > > Briefly, "count" is the # of suggestions it will return for terms that are > *not* in your index/dictionary. "alternativeTermCount" are the # of > alternatives you want returned for terms that *are* in your dictionary. > You can set them to the same value, unless you want fewer suggestions when > the terms is in the dictionary. > > James Dyer > Ingram Content Group > > -----Original Message----- > From: Nitin Solanki [mailto:nitinml...@gmail.com] > Sent: Tuesday, February 17, 2015 5:27 AM > To: solr-user@lucene.apache.org > Subject: spellcheck.count v/s spellcheck.alternativeTermCount > > Hello Everyone, > I got confusion between spellcheck.count and > spellcheck.alternativeTermCount in Solr. Any help in details? >