Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2548

Spellcheck/suggest queries should return no results if no index can handle them

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.15, 1.1.7
    • query
    • None

    Description

      Spellcheck/suggest queries currently fail if no FulltextIndex that can handle them (via native language support), throwing an Exception

       java.lang.IllegalArgumentException: No full-text index was found that can process the condition spellcheck([a], 'foo')
      

      However I'd suggest () that they would silently return no rows by changing SpellcheckImpl#evaluate and SuggestImpl#evaluate to return false in such cases.

      Attachments

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              teofili Tommaso Teofili
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: