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

nodetype lucene index can create unusable nodes under index structures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • lucene
    • None

    Description

      nodetype index is just a special property index definition with definition declaring to index jcr:primaryType and jcr:mixinTypes.
      Since, it's just property index, we can specify declaringNodeTypes too to filter which type of nodes get indexed.

      On query side, declaringNodeTypes are used to check whether the index can be used at all or not.

      Now, for nodetype, if node being indexed passes declaringNodeType filter (either primary type or mixin matches), then all its mixins and primaryType gets indexed irrespective of whether declaringNodeType contains it or not.
      This is perfectly correct behavior from property index point of view. But, in this regards, we should treat nodetype index to be special and index only those property values that are part of declaring node types.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: