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 2015/03/09 08:54:38 UTC

[jira] [Updated] (OAK-2357) Aggregate index: Abnormal behavior of "and not(..)" clause in XPath

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

Thomas Mueller updated OAK-2357:
--------------------------------
    Summary: Aggregate index: Abnormal behavior of "and not(..)" clause in XPath  (was: Abnormal behavior of "and not(..)" clause in XPath)

> Aggregate index: Abnormal behavior of "and not(..)" clause in XPath
> -------------------------------------------------------------------
>
>                 Key: OAK-2357
>                 URL: https://issues.apache.org/jira/browse/OAK-2357
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.0.8, 1.1.3
>            Reporter: Geoffroy Schneck
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 1.2, 1.0.13
>
>
> Create a node {{/tmp/node1}} with property {{prop1 = 'foobar'}}. 
> Perform following query :
> {noformat}
> /jcr:root/tmp//*[prop1 = 'foobar' and not(prop1 = 'foobarrrr')]
> {noformat}
> {{/tmp/node1}} is returned by the search.
> Now replace the = clause by the {{jcr:contains()}} :
> {noformat}
> /jcr:root/tmp//*[jcr:contains(., 'foobar') and not(jcr:contains(., 'foobarrrrr'))]
> {noformat}
> No result is returned. 
> Despite the presence of {{/tmp/node1}} in the results of {{/jcr:root/tmp//\*\[not(jcr:contains(., 'foobarrrrr'))\]}}.



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