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

IndexPlanner does not return plan for mixin based queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.9, 1.1.4
    • lucene
    • None

    Description

      Following testcase fails because filter.getSuperTypes returns only 'mix:mimetype' while planner checks if nt:base is part of supertypes.

      testBuiltInMixin(org.apache.jackrabbit.core.query.MixinTest): No plan found for filter [Filter(query=select [jcr:path], [jcr:score], * from [mix:mimeType] as a where isdescendantnode(a, '/testroot') /* xpath: testroot//element(*, mix:mimeType) */, path=/testroot//*)] while using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
      

      As a fix if indexRule is set for nt:base then it should be used for mixin based queries also

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: