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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2015/09/08 13:02:46 UTC

[jira] [Commented] (OAK-3371) Wrong evaluation of NOT clause

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

Davide Giannella commented on OAK-3371:
---------------------------------------

Quick analysis. 

Nodetype index should not play in case of full-text queries. The
full-text condition doesn't make it to the filter, nor as {{not}} nor
as {{full-text}}.

This makes the nodetype index not aware of the full-text condition and
returns all the nodes that matches the path condition.

With OAK-2050 we removed the support of Fulltext queries from the
query engine saying that full-text queries should be played only by a
full-text index (ie: lucene or solr).

Lucene should already be able to support a single {{NOT CONTAINS()}}.

So the next steps are:

- find a way to represent {{NOT CONTAINS()}} in the Filter as a
  fulltext
- Nodetype index should then not play any longer
- Ensure lucene handle correctly the condition.
- Ensure Solr handle correctly the condition.

/cc [~tmueller], [~chetanm], [~teofili]

> Wrong evaluation of NOT clause
> ------------------------------
>
>                 Key: OAK-3371
>                 URL: https://issues.apache.org/jira/browse/OAK-3371
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.2.4, 1.3.5
>            Reporter: Davide Giannella
>            Assignee: Davide Giannella
>             Fix For: 1.3.6
>
>         Attachments: OAK-3371-test.diff
>
>
> When executing a query like 
> {noformat}
> SELECT * FROM [nt:unstructured] WHERE ISDESCENDANTNODE([/test]) AND NOT CONTAINS(foo, 'bar')
> {noformat}
> and the {{nodeType}} index plays the not clause is not applied properly. Nodes **with** the property are returned as well.
> [test|^OAK-3371-test.diff] showing the bug.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)