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 2015/03/19 11:58:39 UTC

[jira] [Updated] (OAK-2300) QueryEngine should also make use of jcr:primaryType property restriction for NodeType condition

     [ https://issues.apache.org/jira/browse/OAK-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra updated OAK-2300:
---------------------------------
    Fix Version/s:     (was: 1.2)
                   1.3.0

> QueryEngine should also make use of jcr:primaryType property restriction for NodeType condition
> -----------------------------------------------------------------------------------------------
>
>                 Key: OAK-2300
>                 URL: https://issues.apache.org/jira/browse/OAK-2300
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.3.0
>
>
> Queries generated by Jackrabbit GQL support [1] specifies nodeType as property restrictions
> {noformat}
> SELECT [jcr:path],
>        [jcr:score],
>        *
> FROM   [nt:base] AS a
> WHERE  Isdescendantnode(a, '/content/dam')
> AND    CONTAINS([jcr:content/metadata/dc:format], 'image')
> AND    [jcr:primarytype] = 'dam:Asset'
> AND    CONTAINS(*, 'foo')
> {noformat}
> For above query the {{Filter.matchesAllTypes}} returns true which is not the intention. This causes issues with {{LucenePropertyIndex}} as it determines the applicable {{indexingRule}} based on the nodeType.
> It would be helpful if QueryEngine takes into account such propertyRestrictions or we fix GQL!
> [1] http://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/commons/query/GQL.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)