You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "James Dyer (JIRA)" <ji...@apache.org> on 2013/03/22 22:03:16 UTC

[jira] [Commented] (SOLR-3758) DirectSolrSpellChecker doesn't work when using group.

    [ https://issues.apache.org/jira/browse/SOLR-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13611243#comment-13611243 ] 

James Dyer commented on SOLR-3758:
----------------------------------

Use case from user list:

From: alxsss@aim.com [mailto:alxsss@aim.com] 
Sent: Friday, March 22, 2013 12:53 PM
To: solr-user@lucene.apache.org
Subject: Re: strange behaviour of wordbreak spellchecker in solr cloud

Hello,


Further investigation shows the following pattern, for both DirectIndex and wordbreak spellchekers.

Assume that in all cases there are spellchecker results when distrib=false

In distributed mode (distrib=true)
  case when matches=0
    1. group=true,  no spellcheck results

    2. group=false , there are spellcheck results

  case when matches>0
    1. group=true, there are spellcheck results
    2. group =false, there are spellcheck results


Do these constitute a failing test case?

Thanks.
Alex.

 

 

-----Original Message-----
From: alxsss <al...@aim.com>
To: solr-user <so...@lucene.apache.org>
Sent: Thu, Mar 21, 2013 6:50 pm
Subject: Re: strange behaviour of wordbreak spellchecker in solr cloud



Hello,

I am debugging the SpellCheckComponent#finishStage. 
 
>From the responses I see that not only wordbreak, but also directSpellchecker 
does not return some results in distributed mode. 
The request handler I was using had 

<str name="group">true</str>


So, I desided to turn of grouping and I see spellcheck results in distributed 
mode.


curl 'server1:8983/solr/test/testhandler?q=paulusoles&indent=true&rows=10&shards.qt=testhandler'
has no spellchek results 
but

curl 'server1:8983/solr/test/testhandler?q=paulusoles&indent=true&rows=10&shards.qt=testhandler
&group=false'
returns results.

So, the conclusion is that grouping causes the distributed spellcheker to fail.

Could please you point me to the class that may be responsible to this issue?

Thanks.
Alex.

                
> DirectSolrSpellChecker doesn't work when using group.
> -----------------------------------------------------
>
>                 Key: SOLR-3758
>                 URL: https://issues.apache.org/jira/browse/SOLR-3758
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud, spellchecker
>    Affects Versions: 4.0-BETA
>         Environment: Linux Debian 6 / SolrCloud with 2 shards and 2 replicas.
>            Reporter: Christian Johnsson
>              Labels: DirectSolrSpellChecker, bug, spellchecker, suggestions
>
> It seems like spellchecker using solr.DirectSolrSpellChecker doesn't work when grouping results.
> /select?q=mispeled
> Gives me correct spellingsuggestions
> but..
> /select?q=mispeled&group=true&group.main=true&group.field=title
> don't give any suggestions.
> It worked in 3.5 with indexbased spellchecker.
> It seems like if i mispell something that returns 0 results i dont get any suggestions. If i misspell something that genereate a result i get suggestions on it.
> It should come up with proper suggestions even if there are no results to be displayed (But there is things that should be suggested).
> Long story short. Same functionality as in 3.5 :-)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org