Livesearch throws exception if search term contains spaces

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • None
    • Affects Version/s: 2.1.5
    • Component/s: None

      The following exception is thrown when the livesearch contains spaces:

      It is probably due to a space character followed by the * in the query string when the request is send to the server.

      2006-04-19 00:56:02,748 WARN [confluence.search.actions.SearchQueryBean] buildQueryNoSpaceLimit Unable to build search query: Couldn't parse the query successfully:Lexical error at line 1, column 9. Encountered: <EOF> after : ""
      bucket.search.lucene.LuceneException: Couldn't parse the query successfully:Lexical error at line 1, column 9. Encountered: <EOF> after : ""
      at bucket.search.lucene.LuceneSearcher.buildStandardQuery(LuceneSearcher.java:67)
      at com.atlassian.confluence.search.searchers.TextSearch.addDefaultTextFields(TextSearch.java:55)
      at com.atlassian.confluence.search.searchers.TextSearch.restrictQuery(TextSearch.java:27)
      at com.atlassian.confluence.search.actions.SearchQueryBean.addSearchTerms(SearchQueryBean.java:202)
      at com.atlassian.confluence.search.actions.SearchQueryBean.buildQueryNoSpaceLimit(SearchQueryBean.java:103)
      at com.atlassian.confluence.search.actions.SearchQueryBean.buildQuery(SearchQueryBean.java:89)

        1. livesearch.jar
          7 kB
          Agnes Ro

              Assignee:
              Agnes Ro
              Reporter:
              jens
              Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: