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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2017/10/27 08:10:00 UTC
[jira] [Commented] (OAK-3371) Wrong evaluation of NOT clause
[ https://issues.apache.org/jira/browse/OAK-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221907#comment-16221907 ]
Thomas Mueller commented on OAK-3371:
-------------------------------------
One question is, what does the following query mean:
{noformat}
/jcr:root//*[jcr:contains(., '-test')]
{noformat}
The current (and I think correct) interpretation is: return all nodes (of the whole repository), except those that contains the term "test".
> Wrong evaluation of NOT clause
> ------------------------------
>
> Key: OAK-3371
> URL: https://issues.apache.org/jira/browse/OAK-3371
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Affects Versions: 1.2.4, 1.3.5
> Reporter: Davide Giannella
> Assignee: Davide Giannella
> Fix For: 1.2.7, 1.3.8, 1.4
>
> Attachments: OAK-3371-2.patch, OAK-3371-3-oak-core.patch, OAK-3371-4-notworking.patch, OAK-3371-5-notworking.patch, OAK-3371-6.patch, OAK-3371-test.diff, OAK-3371.patch
>
>
> When executing a query like
> {noformat}
> SELECT * FROM [nt:unstructured] WHERE ISDESCENDANTNODE([/test]) AND NOT CONTAINS(foo, 'bar')
> {noformat}
> and the {{nodeType}} index plays the not clause is not applied properly. Nodes **with** the property are returned as well.
> [test|^OAK-3371-test.diff] showing the bug.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)