[
https://issues.apache.org/jira/browse/OAK-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242403#comment-14242403
]
Chetan Mehrotra commented on OAK-2340:
--------------------------------------
Another thing to be aware of is if a LuceneIndex is configured to only index
properties then its possible that it does not index a node of given type if
that node does not have property defined. So LuceneIndex should only be used to
answer nodeType queries when
# It has entried for all nodes of given type under given path
# The jcr:primaryType and jcr:mixingType is indexed (optional)
> LucenePropertyIndex should support pure nodeType based query
> ------------------------------------------------------------
>
> Key: OAK-2340
> URL: https://issues.apache.org/jira/browse/OAK-2340
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: oak-lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.2
>
>
> Following queries are currently not handled
> bq. select * from [test:RTypeTest]
> Causing following testcase to fail
> {noformat}
> testSQL2SelectColums(org.apache.jackrabbit.core.query.SQL2QueryResultTest):
> No plan found for filter [Filter(query=select * from [test:RTypeTest],
> path=*)] while using definition [IndexDefinition : /oak:index/luceneGlobal]
> and testMode is found to be enabled
> {noformat}
> Current implementation currently can handle such queries but explicitly does
> not do that as these queries are probably better served by nodeType index and
> lucene index should not compete with that as its async. That thinking needs
> to be changed
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)