Lucene - Core
  1. Lucene - Core
  2. LUCENE-5777

double escaping of dash in hunspell conditions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This bug was previously masked by LUCENE-5768.

      Basically '-' doesnt mean anything special (e.g. what it normally means for a regex), so we usually have to escape it. but some dictionaries like pt_PT already escape it, so now that our parsing works correctly, we are undoing that and creating a bad condition.

        Activity

        Hide
        Robert Muir added a comment -

        Simple patch with a test.

        I also ran TestAllDictionaries/TestAllDictionaries2 (all thunderbird and openoffice respectively).

        Show
        Robert Muir added a comment - Simple patch with a test. I also ran TestAllDictionaries/TestAllDictionaries2 (all thunderbird and openoffice respectively).
        Hide
        ASF subversion and git services added a comment -

        Commit 1603851 from Robert Muir in branch 'dev/trunk'
        [ https://svn.apache.org/r1603851 ]

        LUCENE-5777: fix double escaping of dash in hunspell conditions

        Show
        ASF subversion and git services added a comment - Commit 1603851 from Robert Muir in branch 'dev/trunk' [ https://svn.apache.org/r1603851 ] LUCENE-5777 : fix double escaping of dash in hunspell conditions
        Hide
        ASF subversion and git services added a comment -

        Commit 1603853 from Robert Muir in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1603853 ]

        LUCENE-5777: fix double escaping of dash in hunspell conditions

        Show
        ASF subversion and git services added a comment - Commit 1603853 from Robert Muir in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1603853 ] LUCENE-5777 : fix double escaping of dash in hunspell conditions
        Hide
        ASF subversion and git services added a comment -

        Commit 1603856 from Robert Muir in branch 'dev/branches/lucene_solr_4_9'
        [ https://svn.apache.org/r1603856 ]

        LUCENE-5777: fix double escaping of dash in hunspell conditions

        Show
        ASF subversion and git services added a comment - Commit 1603856 from Robert Muir in branch 'dev/branches/lucene_solr_4_9' [ https://svn.apache.org/r1603856 ] LUCENE-5777 : fix double escaping of dash in hunspell conditions

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development