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

Parentheses in SpellCheckCollator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: spellchecker
    • Labels:
      None

      Description

      SpellCheckCollator adds parentheses ( '(' and ')' ) around tokens which have space between them.
      This should be configurable, because if WordBreakSpellCheckComponent is being used, queries like : applejuice will be broken down to apple juice. Such suggestions are being surrounded by braces by current SpellCheckCollator.
      And when surrounded by brackets, they represent the same position by EdismaxParser , which is not required.

      https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/spelling/SpellCheckCollator.java#L227

      A solution to this will be to have a flag, which can help disable this parenthesisation of spell check suggestions.

      ----------------------------
      Update:
      Raised PR for the same -> https://github.com/apache/lucene-solr/pull/168

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              asingh2411 Abhishek Kumar Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: