[
https://issues.apache.org/jira/browse/SOLR-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13614599#comment-13614599
]
Alexander Kingson edited comment on SOLR-3758 at 3/26/13 9:56 PM:
------------------------------------------------------------------
Hi,
Commenting out
if (!params.getBool(COMPONENT_NAME, false) || spellCheckers.isEmpty()) {
return;
}
in SpellCheckComponent#process()
solves the issue, because when group=true params.getBool(COMPONENT_NAME, false)
is false.
Which part constructs this params variable?
Thanks.
Alex.
was (Author: alxksn):
Hi,
Commenting out
[code]
if (!params.getBool(COMPONENT_NAME, false) || spellCheckers.isEmpty()) {
return;
}
[/code]
in SpellCheckComponent#process()
solves the issue, because when group=true params.getBool(COMPONENT_NAME, false)
is false.
Which part constructs this params variable?
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: [email protected]
For additional commands, e-mail: [email protected]