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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/12/10 14:21:12 UTC
[jira] [Created] (OAK-2339) LucenePropertyIndex should support path
restrictions expressed via jcr:path
Chetan Mehrotra created OAK-2339:
------------------------------------
Summary: LucenePropertyIndex should support path restrictions expressed via jcr:path
Key: OAK-2339
URL: https://issues.apache.org/jira/browse/OAK-2339
Project: Jackrabbit Oak
Issue Type: Improvement
Components: oak-lucene
Reporter: Chetan Mehrotra
Priority: Minor
Fix For: 1.2
Following testcase fail for {{LucenePropertyIndex}} as it does not handle query like
bq. SELECT value FROM nt:unstructured WHERE jcr:path LIKE '/testroot/%' ORDER BY jcr:score
It supports queries where path restriction is specified explicitly via {{isdescendantnode}}. Following options are possible
# For generic cases like /foo/% we can convert it to isdescendantnode(.,'/foo')
# For any other case like /foo/%/bar we can do a best effort change and return result for /foo
# For any other case opt out
{noformat}
testOrderByScore(org.apache.jackrabbit.core.query.OrderByTest): No plan found for filter [Filter(query=SELECT value FROM nt:unstructured WHERE jcr:path LIKE '/testroot/%' ORDER BY jcr:score, value, path=*)] while using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
testOrderByMVP(org.apache.jackrabbit.core.query.OrderByTest): No plan found for filter [Filter(query=SELECT value FROM nt:unstructured WHERE jcr:path LIKE '/testroot/%' ORDER BY text, path=*)] while using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
testSimpleQuerySQL4(org.apache.jackrabbit.core.query.SimpleQueryTest): No plan found for filter [Filter(query=SELECT * FROM nt:unstructured WHERE jcr:path LIKE '/testroot/%', path=*)] while using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
testIsNull(org.apache.jackrabbit.core.query.SimpleQueryTest): No plan found for filter [Filter(query=SELECT * FROM nt:unstructured WHERE mytext is null and jcr:path LIKE '/testroot/%', path=*)] while using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)