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

Support regex for relative property path while indexing properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • lucene
    • None

    Description

      Lucene index definition currently support index properties based on regex. The regex support is currently restricted to property name only and not for relative property paths.

      However at time we have queries like below

      /jcr:root/content/docs//element(*,app:Asset)[(jcr:content/targeting_123/section_456/@foo=110)]
      

      Here the relative property path can vary. To index them we need to support relative property based on regex or globs 'jcr:content/*/*/foo'


      BTW, what is already support is using a wildcard (but not regular expression), see https://jackrabbit.apache.org/oak/docs/query/lucene.html:
      "For relative properties, one wildcard (*) is supported instead of a node name: */color aggregates the values of the property color of all direct child nodes."

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chetanm Chetan Mehrotra
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: