jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-2249) Aggregate/Lucene fails in applying a mix of "and", "or" conditions
Date Mon, 03 Nov 2014 13:42:34 GMT

    [ https://issues.apache.org/jira/browse/OAK-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194534#comment-14194534
] 

Alex Parvulescu commented on OAK-2249:
--------------------------------------

I ran into an interesting comment in the query engine parts [0]:
bq. the full-text index can not be used for conditions of the form "contains(a, 'x') or b=123"

so this might be related more to the query engine rather than lucene+aggregates. can we rename
the issue accordingly if this is the case?

[0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/OrImpl.java#L154

> Aggregate/Lucene fails in applying a mix of "and", "or" conditions
> ------------------------------------------------------------------
>
>                 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)

Mime
View raw message