[
https://issues.apache.org/jira/browse/OAK-3137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra resolved OAK-3137.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.0.18)
(was: 1.2.4)
For above query PathRestriction is ALL_CHILDREN, '/'. Technically this is
equivalent to no restriction.
If {{evaluatePathRestrictions}} is enabled then IndexPlanner was returning a
plan thinking that it can at least evaluate the path restriction. However that
would result in iterating over whole index for above query. Fixed that by
treating (ALL_CHILDREN, '/') as NO_RESTRICTION
Fixed in trunk with http://svn.apache.org/r1693050
> Global fulltext index returning plan for pure NodeType queries
> --------------------------------------------------------------
>
> Key: OAK-3137
> URL: https://issues.apache.org/jira/browse/OAK-3137
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.3.4
>
>
> On a system having
> # Global fulltext index enabled with version V2 and
> {{evaluatePathRestriction}} enabled
> # NodeType index having indexing enabled for specific nodetype like
> cq:ClientLibraryFolder
> A query like
> {noformat}
> /jcr:root//element(*, cq:ClientLibraryFolder)
> {noformat}
> Ends up getting evaluated by fulltext index as it return plan with include
> all query
> *Expected*
> For such query global fulltext index should not return any plan if the path
> restriction is on root path with include all children
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)