Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6297

Distributed spellcheck with WordBreakSpellchecker can lose suggestions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.9
    • 5.0, 6.0
    • None
    • None

    Description

      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.

      Attachments

        1. SOLR-6297.patch
          15 kB
          James Dyer
        2. SOLR-6297.patch
          16 kB
          James Dyer
        3. SOLR-6297.patch
          10 kB
          James Dyer
        4. SOLR-6297.patch
          1 kB
          James Dyer

        Activity

          People

            jdyer James Dyer
            smolloy Steve Molloy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: