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

Vikas Saurabh updated OAK-4313:
-------------------------------
    Description: 
If no index supports suggestion (or spellcheck or similar) query, then a query 
like
{noformat}
SELECT * from [nt:base] where SUGGEST('test')
{noformat}
shouldn't get traversing index

  was:
If no index supports suggestion (or spellcheck) query, then a query like
{noformat}
SELECT * from [nt:base] where SUGGEST('test')
{noformat}
would pick {{TraversingCursor}} where each row currently evaluates to false and 
hence a whole repo scan.


> QueryImpl should avoid traversal with queries containing native constraints
> ---------------------------------------------------------------------------
>
>                 Key: OAK-4313
>                 URL: https://issues.apache.org/jira/browse/OAK-4313
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>              Labels: candidate_oak_1_2, candidate_oak_1_4
>             Fix For: 1.6
>
>
> If no index supports suggestion (or spellcheck or similar) query, then a 
> query like
> {noformat}
> SELECT * from [nt:base] where SUGGEST('test')
> {noformat}
> shouldn't get traversing index



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to