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

Tommaso Teofili updated OAK-2548:
---------------------------------
    Fix Version/s: 1.0.15

> Spellcheck/suggest queries should return no results if no index can handle 
> them
> -------------------------------------------------------------------------------
>
>                 Key: OAK-2548
>                 URL: https://issues.apache.org/jira/browse/OAK-2548
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 1.1.7, 1.0.15
>
>
> Spellcheck/suggest queries currently fail if no {{FulltextIndex}} that can 
> handle them (via native language support), throwing an Exception
> {noformat}
>  java.lang.IllegalArgumentException: No full-text index was found that can 
> process the condition spellcheck([a], 'foo')
> {noformat}
> However I'd suggest (:P) that they would silently return no rows by changing 
> {{SpellcheckImpl#evaluate}} and {{SuggestImpl#evaluate}} to return _false_ in 
> such cases.



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

Reply via email to