[ 
https://issues.apache.org/jira/browse/OAK-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15259877#comment-15259877
 ] 

Vikas Saurabh commented on OAK-4313:
------------------------------------

Yes, you're right. What I want to do is avoid repository traversal. Skipping 
TraversingIndex was the simplest approach I could think of (admittedly, I'm not 
too sure of how to do "where 1=0" kind of condition).

> 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
>            Priority: Blocker
>              Labels: candidate_oak_1_2, candidate_oak_1_4
>             Fix For: 1.6, 1.4.2
>
>         Attachments: OAK-4313.patch
>
>
> 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