Thomas Mueller created OAK-5739:
-----------------------------------

             Summary: Misleading traversal warning for spellcheck queries 
without index
                 Key: OAK-5739
                 URL: https://issues.apache.org/jira/browse/OAK-5739
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller


In OAK-4313 we avoid traversal for native queries, but we see in some cases 
traversal warnings as follows:

{noformat}
org.apache.jackrabbit.oak.query.QueryImpl query plan 
[nt:base] as [a] /* traverse "" where (spellcheck([a], 'NothingToFind')) 
and (issamenode([a], [/])) */

org.apache.jackrabbit.oak.query.QueryImpl Traversal query (query without 
index): 
select [jcr:path], [jcr:score], [rep:spellcheck()] from [nt:base] as a where 
spellcheck('NothingToFind') 
and issamenode(a, '/') 
/* xpath: /jcr:root
[rep:spellcheck('NothingToFind')]/(rep:spellcheck()) */; 
consider creating an index
{noformat}

This warning is misleading. If no index is available, then either the query 
should fail, or the warning should say that the query result is not correct 
because traversal is used.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to