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

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

    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

        1. OAK-3879-v1.patch
          2 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: