[
https://issues.apache.org/jira/browse/SOLR-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Dyer updated SOLR-6297:
-----------------------------
Attachment: SOLR-6297.patch
This patch fixes word-break suggestions by ensuring that both
WordBreakSolrSpellChecker and ConjuctionSolrSpellChecker always output every
original term, even if the list of suggestions is empty. This is consistent
with the behavior of DirectSolrSpellChecker.
This approach is problematic for combined-word suggestions as the various
shards cannot know which new terms were invented by others. For this,
SpellCheckComponent will need to loosen its requirement that all shards return
a term in order for it to be in the final response.
> Distributed spellcheck with WordBreakSpellchecker can lose suggestions
> ----------------------------------------------------------------------
>
> Key: SOLR-6297
> URL: https://issues.apache.org/jira/browse/SOLR-6297
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.9
> Reporter: Steve Molloy
> Attachments: SOLR-6297.patch, SOLR-6297.patch
>
>
> When performing a spellcheck request in distributed environment with the
> WordBreakSpellChecker configured, the shard response merging logic can lose
> some suggestions. Basically, the merging logic ensures that all shards marked
> the query as not being correctly spelled, which is good, but also expects all
> shards to return some suggestions, which isn't necessarily the case. So if
> shard 1 returns 10 suggestions but shard 2 returns none, the final result
> will contain no suggestions because the term has suggestions from only 1 of 2
> shards.
> This isn't the case with the DirectSolrSpellChecker which works properly.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]