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

Index definution with a property rule having valueExcludedPrefixes not getting considered for like condition on that property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.22.21, 1.68.0
    • core, lucene
    • None

    Description

      Problems seems to be due to the fix for https://issues.apache.org/jira/browse/OAK-9481 

       

      Consider an index definition 

      testIndex {

      .

      .

      .
      "properties": {
      "jcr:primaryType": "nt:unstructured",
      "foo":

      { "propertyIndex": true, "jcr:primaryType": "nt:unstructured" }

      ,
      "bar":

      { "propertyIndex": true, "jcr:primaryType": "nt:unstructured", "valueExcludePrefixes": ["temp"] }

      }
      }

      }

       

       

      A query like 
      select * from [nt:base] AS [a] where [a].[foo] like 'xyz%')
      picks up testIndex

      but 

      select * from [nt:base] AS [a] where [a].[bar] like 'xyz%'

       

      doesn't. 

      Attachments

        Activity

          People

            ngupta Nitin Gupta
            ngupta Nitin Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: