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 2014/11/03 14:59:34 UTC
[jira] [Commented] (OAK-2249) Query with mixed full-text, "and",
"or" conditions fails
[ https://issues.apache.org/jira/browse/OAK-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194541#comment-14194541 ]
Thomas Mueller commented on OAK-2249:
-------------------------------------
So far I found one issue (which is not related to the "or"). It might or might not be the reason for the problem. The last condition: "jcr:contains(jcr:content/metadata/@format, 'image')" is internally converted to a filter condition of the form "jcr:contains(jcr:content/metadata/@format, 'image') and @format is not null". This is not correct, as the path is missing in the last part (it should be "jcr:content/metadata/@format is not null").
> Query with mixed full-text, "and", "or" conditions fails
> --------------------------------------------------------
>
> Key: OAK-2249
> URL: https://issues.apache.org/jira/browse/OAK-2249
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Affects Versions: 1.2
> Reporter: Davide Giannella
> Assignee: Thomas Mueller
> Fix For: 1.0.9, 1.2, 1.1.3
>
> Attachments: OAK-2249-test.patch
>
>
> When performing a query like
> {noformat}
> //element(*, test:Asset)[
> (
> jcr:contains(., 'summer')
> or
> jcr:content/metadata/@tags = 'namespace:season/summer'
> ) and
> jcr:contains(jcr:content/metadata/@format, 'image')
> ]
> {noformat}
> The Lucene/Aggregate returns as well nodes that does not match all the
> criterias.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)