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

Optimize like constraint support in Property Indexes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • property-index
    • None

    Description

      Consider a query

       /jcr:root/content//element(*, nt:unstructured)[jcr:like(@resource, '/content/foo/bar%')]
      

      This currently gets translated into a range property restriction

       property=[resource=[[/content/foo/bar.., ../content/foo/bas]]]
      

      For such a query property index currently returns all nodes having "resource" property i.e. all index data. This can be optimized to return only those nodes where indexed value qualifies the range property restriction

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: