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/01/22 13:06:34 UTC
[jira] [Comment Edited] (OAK-2434) Lucene AND query with a complex
OR phrase returns incorrect result
[ https://issues.apache.org/jira/browse/OAK-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287327#comment-14287327 ]
Thomas Mueller edited comment on OAK-2434 at 1/22/15 12:05 PM:
---------------------------------------------------------------
> I don't remember why we needed to unwrap the BQ clauses
Probably because of the comment in the code:
{noformat}
// Lucene can't deal with "must(must_not(x))"
{noformat}
> Attaching a patch which solves the issue in the application as well as passes all the tests.
We might not have enough tests, specially we probably have no test for the {{must(must_not(x\))}} case.
was (Author: tmueller):
> I don't remember why we needed to unwrap the BQ clauses
Probably because of the comment in the code:
{noformat}
// Lucene can't deal with "must(must_not(x))"
{noformat}
> Attaching a patch which solves the issue in the application as well as passes all the tests.
We might not have enough tests, specially we probably have no test for the "must(must_not(x))" case.
> Lucene AND query with a complex OR phrase returns incorrect result
> -------------------------------------------------------------------
>
> Key: OAK-2434
> URL: https://issues.apache.org/jira/browse/OAK-2434
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: oak-lucene
> Affects Versions: 1.0.9, 1.1.5
> Reporter: Amit Jain
> Fix For: 1.0.10, 1.1.6
>
> Attachments: OAK-2434.patch
>
>
> Queries like this {noformat}/jcr:root/content//element(*, test:Asset)[(jcr:contains(., 'cube')) and (jcr:contains(jcr:content/@foo, '"a" OR "b"'))]
> {noformat} returns wrong results.
> This get converted to {noformat}+:fulltext:cube full:jcr:content/foo:"a" full:jcr:content/foo:"b"
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)