Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72517

Search breaks if searching for specific tokens using Solr 5 plugin

Details

    Description

      Issue
      Search breaks if searching for specific tokens like AND, OR or NOT while using Solr 5 integration

      Steps to reproduce

      1. Follow the steps to install Solr 5.2.1 and connect it to Liferay (de-13)
        https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/using-solr
        Note: "com.liferay.portal.search.elasticsearch.jar" does not exist anymore, stop the osgi bundle each time you start liferay
      2. Login to Liferay
      3. Reindex and make sure that the search is working through Solr
      4. Search for the following cases

      Case 1
      Search for AND, OR and NOT

      Case 2
      Search for "the" AND "end", "the" OR "end", "the" NOT "end"
      (Note that searching without quotes do not result in the error)

      Case 3
      Search for "the" "end" (note the space is a japanese full-width space)
      (Note that searching without quotes do not result in the error)

      Case 4
      Search for !, *, (, ), square brackets, curly brackets, backslash

      Expected results
      No results found.

      Actual results
      Search is temporarily unavailable. error shows, a bunch of exceptions are thrown.

      Reproduced in
      de-13
      ee-7.0.x
      master

      Note
      None of those queries results in an error when using embedded Elasticsearch.

      Attachments

        Issue Links

          Activity

            People

              raven.song Raven Song
              david.zhang David Zhang (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 19 weeks, 5 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP26
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master