Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-975

CFSEARCH deletes opening parenthesis from criteria string

    Details

    • Steps to Reproduce:
      Hide

      1. Create a test collection named 'test' in railo admin (collection can stay empty)

      2. Execute the following script:
      <cfsearch collection="test" name="testquery" criteria="(jakarta OR apache) AND website">

      3. Railo/Lucene returns the following error:

      Cannot parse 'jakarta OR apache) AND website': Encountered " ")" ") "" at line 1, column 17.

      Show
      1. Create a test collection named 'test' in railo admin (collection can stay empty) 2. Execute the following script: <cfsearch collection="test" name="testquery" criteria="(jakarta OR apache) AND website"> 3. Railo/Lucene returns the following error: Cannot parse 'jakarta OR apache) AND website': Encountered " ")" ") "" at line 1, column 17.

      Description

      Opening parenthesis are deleted from CFSEARCH criteria string. It doesn't make a difference if the parentheses come first or not. All these criteria fail:

      (jakarta OR apache) AND website
      website OR (jakarta AND apache)
      ((jakarta OR apache) AND website

      Note that the first query is given as an example on the Lucene site.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                dzgn Tako Bruinsma
              • Votes:
                6 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: