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-420) Query: Lucene index problem with isdescendantnode
Date Mon, 12 Nov 2012 16:51:12 GMT

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

Alex Parvulescu commented on OAK-420:

The problem here is that the lucene index can't express an {{ischildnode}} condition correctly,
everyting is treated as an {{isdescendantnode}}
see fixme in the code [0]. 

Basically the path constraint is transformed into a {{path/*}} in both cases, which matches
direct children: {{path/foo}} as well as descendant nodes: {{path/foo/bar}}.

I've added a dedicated test for this, but there is no fix yet [1]. I'm not really sure what
the most efficient solution is yet.

[0] http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndex.java?view=markup#l202

[1] http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexQueryTest.java?view=markup#l100
> Query: Lucene index problem with isdescendantnode
> -------------------------------------------------
>                 Key: OAK-420
>                 URL: https://issues.apache.org/jira/browse/OAK-420
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-lucene
>            Reporter: Thomas Mueller
> Using isdescendantnode seems to be problematic with the Lucene index currently.
> Adding isdescendantnode to some of the queries in sql2.txt and sql2_measure.txt works
> other index implementations, but breaks the LuceneIndexQueryTest.
> I believe the problem is isdescendantnode, but I'm not completely sure.

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

View raw message