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 "Thomas Mueller (Jira)" <ji...@apache.org> on 2019/11/06 13:47:00 UTC

[jira] [Updated] (OAK-5739) Misleading traversal warning for spellcheck queries without index

     [ https://issues.apache.org/jira/browse/OAK-5739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Mueller updated OAK-5739:
--------------------------------
    Fix Version/s:     (was: 1.20.0)

> 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
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Major
>
> 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
(v8.3.4#803005)