Solr
  1. Solr
  2. SOLR-8605

Regular expressions starting with escaped forward slash are broken

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.3.1, 5.4, 5.4.1
    • Fix Version/s: 5.5, 6.0
    • Component/s: query parsers
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Scott Blum added a comment -

        Introduced i SOLR-7220

        Regular expression queries that start with an escaped forward-slash don't work anymore.

        Works: foo:/ab\/c/
        Does not work: foo:/\/abc/
        Work around, put the beginning slash in a character class: foo:/[\/]abc/
        

        I have attached a patch to fix.

        Show
        Scott Blum added a comment - Introduced i SOLR-7220 Regular expression queries that start with an escaped forward-slash don't work anymore. Works: foo:/ab\/c/ Does not work: foo:/\/abc/ Work around, put the beginning slash in a character class: foo:/[\/]abc/ I have attached a patch to fix.
        Hide
        ASF subversion and git services added a comment -

        Commit 105c6dfe2653c4a68461b758b220f43df99e79b1 in lucene-solr's branch refs/heads/master from Yonik Seeley
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=105c6df ]

        SOLR-8605: fix regex queries starting with escaped forward slash

        Show
        ASF subversion and git services added a comment - Commit 105c6dfe2653c4a68461b758b220f43df99e79b1 in lucene-solr's branch refs/heads/master from Yonik Seeley [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=105c6df ] SOLR-8605 : fix regex queries starting with escaped forward slash
        Hide
        ASF subversion and git services added a comment -

        Commit 615060c7c49cf954469c1cfe2c00222f18aa073a in lucene-solr's branch refs/heads/branch_5x from Yonik Seeley
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=615060c ]

        SOLR-8605: fix regex queries starting with escaped forward slash

        Show
        ASF subversion and git services added a comment - Commit 615060c7c49cf954469c1cfe2c00222f18aa073a in lucene-solr's branch refs/heads/branch_5x from Yonik Seeley [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=615060c ] SOLR-8605 : fix regex queries starting with escaped forward slash
        Hide
        Yonik Seeley added a comment -

        Added test and committed. Thanks Scott!

        Show
        Yonik Seeley added a comment - Added test and committed. Thanks Scott!

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Scott Blum
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development