Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3879

Lucene index / compatVersion 2: search for 'abc!' does not work

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When using a Lucene fulltext index with compatVersion 2, then the following query does not return any results. When using compatVersion 1, the correct result is returned.

      SELECT * FROM [nt:unstructured] AS c 
      WHERE CONTAINS(c.[jcr:description], 'abc!') 
      AND ISDESCENDANTNODE(c, '/content')
      

      With compatVersion 1 and 2, searching for just 'abc' works. Also, searching with '=' instead of 'contains' works.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chetanm Chetan Mehrotra
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment