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

reverse wildcard filter doesn't work for chars outside the BMP

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5, 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      reverse wildcard filter doesn't work for chars outside the BMP. reversing characters that take up more than one Java char creates unpaired surrogates, which get replaced with the replacement character at index time. See https://issues.apache.org/jira/browse/LUCENE-2068

      1. SOLR-1593.patch
        7 kB
        Yonik Seeley

        Activity

        Hide
        gsingers Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        gsingers Grant Ingersoll added a comment - Bulk close for 3.1.0 release
        Hide
        hossman Hoss Man added a comment -

        Correcting Fix Version based on CHANGES.txt, see this thread for more details...

        http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

        Show
        hossman Hoss Man added a comment - Correcting Fix Version based on CHANGES.txt, see this thread for more details... http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        committed.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - committed.
        Hide
        rcmuir Robert Muir added a comment -

        patch looks good to me.
        i guess in the future if libs get updated, you can invoke the static method from lucene again (but it requires Version arg for back compat...)

        Show
        rcmuir Robert Muir added a comment - patch looks good to me. i guess in the future if libs get updated, you can invoke the static method from lucene again (but it requires Version arg for back compat...)
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        Patch, with tests, using a slightly modified version of Robert's reverse method from LUCENE-2068.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - Patch, with tests, using a slightly modified version of Robert's reverse method from LUCENE-2068 .

          People

          • Assignee:
            yseeley@gmail.com Yonik Seeley
            Reporter:
            yseeley@gmail.com Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development