Hi James,

Thanks for the response, will open a JIRA for this.

Had one follow-up question - how does the Distributed SpellCheckComponent
handle this? I tried looking at the code but it's not obvious to me how it
is able to differentiate between these 2 cases. I see that it only
considers a term to be wrongly spelt if all shards return a suggestion for
it but isn't it possible that a suggestion is not returned because nothing
close enough could be found in some shard? Or is the response from shards
different than the final spellcheck response we get from Solr in some way?

Thanks,
Nalini


On Fri, Dec 7, 2012 at 10:26 AM, Dyer, James
<james.d...@ingramcontent.com>wrote:

> You might want to open a jira issue for this to request that the feature
> be added.  If you haven't used it before, you need to create an account.
>
> https://issues.apache.org/jira/browse/SOLR
>
> In the mean time, If you need to get the document frequency of the query
> terms, see http://wiki.apache.org/solr/TermsComponent , which maybe would
> provide you a viable workaround.
>
> James Dyer
> E-Commerce Systems
> Ingram Content Group
> (615) 213-4311
>
>
> -----Original Message-----
> From: Nalini Kartha [mailto:nalinikar...@gmail.com]
> Sent: Thursday, December 06, 2012 2:44 PM
> To: solr-user@lucene.apache.org
> Subject: Differentiate between correctly spelled term and mis-spelled term
> with no corrections
>
> Hi,
>
> When using the SolrSpellChecker, is there currently any way to
> differentiate between a term that exists in the dictionary and a
> mis-spelled term for which no corrections were found when looking at the
> spellcheck response?
>
> From reading the doc and trying out some simple test cases it seems like
> there isn't - in both cases it looks like the response doesn't include the
> term.
>
> Could the extended results format be changed to include the original term
> frequency even if there are no suggestions? This would allow us to make
> this differentiation.
>
> Thanks,
> Nalini
>
>

Reply via email to