Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-436

InvalidQueryException thrown for a SQL query using WHERE CONTAINS(., 'someword')

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9, 1.0, 1.0.1
    • 1.1
    • query
    • None

    Description

      The following SQL query:
      SELECT * FROM es:document WHERE CONTAINS(., 'software')
      throws an InvalidQueryException exception.

      javax.jcr.query.InvalidQueryException: Encountered "." at line 1, column 42.
      Was expecting one of:
      "BY" ...
      "IN" ...
      "OR" ...
      "IS" ...
      "AND" ...
      "LIKE" ...
      "NULL" ...
      "FROM" ...
      "ORDER" ...
      "WHERE" ...
      "SELECT" ...
      "BETWEEN" ...
      "*" ...
      <REGULAR_IDENTIFIER> ...
      <DELIMITED_IDENTIFIER> ...

      This syntax seems correct according to the latest jcr spec (1.0.1).
      Using an asterisk instead of a dot (.) as the first parameter of CONTAINS() works fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            phtouz Raphael Jean
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: