Description
Currently, the Oak Lucene index uses the path restriction in the hope that queries can be faster. However, I found that not using the path restriction is better (much better) in many cases. The following queries were run:
:fulltext:test +:fulltext:test +:path:/path/prefix/*
A workaround is to change the query, by removing the path restriction, and adding a 'like' conditions, as follows (for XPath):
... and jcr:like(@jcr:path, '/path/prefix/%')