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

WordBreakSolrSpellChecker incorrectly adds parenthesis when breaking words

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.3
    • Fix Version/s: 7.4
    • Component/s: spellchecker
    • Labels:
      None

      Description

      When using WordBreakSolrSpellChecker to break single words into multiple, the collation queries include parenthesis around the original term. In some cases, this causes required terms to become optional and users get spurious nonsensical collation results.

      For instance, if I search: +eward +smith

      ...If +ward +smith is a match, it might give a collation like: (+e +ward) +smith

      ...This requires either the "e" or the "ward" to exist, but not both. But users are more likely to want both terms to be required, so it would be better if it was not adding parenthesis.

      This might be the cause of SOLR-5995 and this SO issue

        Attachments

        1. SOLR-12284.patch
          5 kB
          James Dyer

          Issue Links

            Activity

              People

              • Assignee:
                jdyer James Dyer
                Reporter:
                jdyer James Dyer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: