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 2013/07/18 10:30:48 UTC

[jira] [Commented] (OAK-912) Lucene index only filters the first contains clause

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

Thomas Mueller commented on OAK-912:
------------------------------------

We don't actually need to fix it, as the whole thing will change with OAK-890.
It's still a bug, it affects all queries of the form:

{code}
contains(*, 'abc') and contains(*, 'bcd')
{code}

                
> Lucene index only filters the first contains clause
> ---------------------------------------------------
>
>                 Key: OAK-912
>                 URL: https://issues.apache.org/jira/browse/OAK-912
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>
> The Lucene index implementation only looks at the very first fulltext condition. It ignores all the others.
> LuceneIndex.addFulltextConstraints:
> {code}
> List<String> tokens = tokenize(filter.getFulltextConditions()
>                 .iterator().next().toLowerCase());
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira