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

Invalid logging of 'improper' regex WARN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.44.0
    • indexing
    • None

    Description

      A query like this:

      //*[jcr:contains(., '"/my/path"')] option(index tag testTag) 
      

      ...which uses an index with a path regex, will log a WARN like :

      Potentially improper use of index /oak:index/regexIndex with queryFilterRegex (["']|^)/ to search for value testTag
      

      ....because of the presence of the property restriction ":indexTag" (from the index tag option) being incorrectly considered to be a property restriction which must match regex.

      This should be ignored in the logic here - https://github.com/apache/jackrabbit-oak/blob/trunk/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndexPlanner.java#L308-L319

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rma61870@adobe.com Tom Blackford
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: