You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/12/10 13:20:13 UTC
[jira] [Created] (OAK-2335) IndexPlanner does not return plan for
mixin based queries
Chetan Mehrotra created OAK-2335:
------------------------------------
Summary: IndexPlanner does not return plan for mixin based queries
Key: OAK-2335
URL: https://issues.apache.org/jira/browse/OAK-2335
Project: Jackrabbit Oak
Issue Type: Bug
Components: oak-lucene
Reporter: Chetan Mehrotra
Assignee: Chetan Mehrotra
Priority: Minor
Fix For: 1.2
Following testcase fails because filter.getSuperTypes returns only 'mix:mimetype' while planner checks if nt:base is part of supertypes.
{noformat}
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
{noformat}
As a fix if indexRule is set for nt:base then it should be used for mixin based queries also
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)