Lucene - Core
  1. Lucene - Core
  2. LUCENE-3981

queryparser precedence issues (regex versus wildcard)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      As mentioned by lance on LUCENE-2604,

      REGEXPTERM needs to be moved in front of WILDTERM and PREFIXTERM,
      because they greedily match operators like ".*" even inside / / blocks.

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.0 [ 12314025 ]
        Resolution Fixed [ 1 ]
        Robert Muir made changes -
        Field Original Value New Value
        Attachment LUCENE-3981.patch [ 12522679 ]
        Hide
        Robert Muir added a comment -

        While the above solution can work, it leaves things confusing and ambiguous in my opinion.

        The simpler solution is to remove the ambiguity (so there is no concern about precedence/ordering of fules) by adding "/" as a syntax char: patch fixes this for both core and flexible QPs and adds a lot of tests that both escaping and quoting work sanely.

        Show
        Robert Muir added a comment - While the above solution can work, it leaves things confusing and ambiguous in my opinion. The simpler solution is to remove the ambiguity (so there is no concern about precedence/ordering of fules) by adding "/" as a syntax char: patch fixes this for both core and flexible QPs and adds a lot of tests that both escaping and quoting work sanely.
        Robert Muir created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development