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

Property index: setting declaringNodeTypes to an empty array can break queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.4
    • query
    • None

    Description

      For property indexes, setting the config option "declaringNodeTypes" to an empty array will cause the index not to index any data, but will still allow the index to be used for all node type. That means, the index can be used, and would return no results. Queries would therefore return an empty result, when this index is used (even if there are nodes that match).

      The problem is that the interpretation of an existing, but empty declaringNodeTypes property is different in the index editor and in the index cost / lookup operation.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: