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 "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2015/02/26 15:02:05 UTC

[jira] [Reopened] (OAK-2548) Spellcheck/suggest queries should return no results if no index can handle them

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

Tommaso Teofili reopened OAK-2548:
----------------------------------

> 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
>
>
> 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)