Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3382

Unnecessary warning if no results found in full text search

    XMLWordPrintable

    Details

      Description

      If no fulltext query is set and the the no result is found a unnecessary warning "Invalid search query" is shown. Addiitionally an error is logged in the log file.

       

      10:59:30,914  WARN SearchSpellChecker:175 - Can not spell check % >>>stack of 1.cause::java.util.concurrent.ExecutionException: java.lang.NegativeArraySizeException ->  at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at org.olat.search.service.spell.SearchSpellChecker.check(SearchSpellChecker.java:98) at org.olat.search.service.SearchServiceImpl.spellCheck(SearchServiceImpl.java:420) at org.olat.search.service.searcher.SearchClientLocal.spellCheck(SearchClientLocal.java:76) at org.olat.search.ui.SearchInputController.doSearch(SearchInputController.java:477) at org.olat.search.ui.ResultsSearchController.doSearch(ResultsSearchController.java:179) at org.olat.search.ui.ResultsSearchController.doSearch(ResultsSearchController.java:167) at org.olat.search.ui.ResultsSearchController.formInnerEvent(ResultsSearchController.java:161) at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:421) at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)>>>stack of 2.cause::java.lang.NegativeArraySizeException: null ->  at org.apache.lucene.search.spell.SpellChecker.formGrams(SpellChecker.java:443) at org.apache.lucene.search.spell.SpellChecker.suggestSimilar(SpellChecker.java:349) at org.apache.lucene.search.spell.SpellChecker.suggestSimilar(SpellChecker.java:290) at org.apache.lucene.search.spell.SpellChecker.suggestSimilar(SpellChecker.java:256) at org.olat.search.service.spell.CheckCallable.call(CheckCallable.java:55) at org.olat.search.service.spell.CheckCallable.call(CheckCallable.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Assignee:
              uhensler Urs Hensler
              Reporter:
              gnaegi Florian Gnägi
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m