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/16 14:12:48 UTC

[jira] [Commented] (OAK-902) Lucene fulltext query: "contains(*, 'x OR y')" not working

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

Thomas Mueller commented on OAK-902:
------------------------------------

The built-in fulltext search engine (the one within oak-core) parses and processes the condition as specified.
                
> Lucene fulltext query: "contains(*, 'x OR y')" not working
> ----------------------------------------------------------
>
>                 Key: OAK-902
>                 URL: https://issues.apache.org/jira/browse/OAK-902
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>
> The Lucene fulltext index currently doesn't correctly support conditions of the type "x OR y". The expected behavior (according to the JCR spec as well as the behavior of Jackrabbit 2.x) is to return nodes that contain either 'x' or 'y'. The current implementation is searching for nodes that match 'x' and 'OR' and 'y' all at the same time, using the query plan
> {code}
> +text:{* TO *} +(+:fulltext:hello +:fulltext:or +:fulltext:hallo)
> {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