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

When searching, text is not highlighted if you search for multiple words that appeared consecutively in the same order in the document

    Details

      Description

      Description
      In some cases, search results aren't highlighted correctly. Specifically, if you search for a multi-word phrase that occurs exactly as written in the search results, then nothing will get highlighted. This is true even if you enclose some or all of the words in quotes.

      Steps to reproduce

      1. Start up Liferay and log in as the admin user
      2. Add Document and Media portlet to the homepage
      3. Add the attached document (Document3.txt) to the portlet
      4. Search for Japanese English in the search portlet
      5. Verify that Document3.txt appears in the search results, with the words "English" and "Japanese" highlighted
      6. Now try searching for English Japanese in the search portlet

      Expected result: As before, Document3.txt appears in the search results, with the words "English" and "Japanese" highlighted
      Actual result: Document3.txt appears in the search results, but none of the words are highlighted.

      Reproduced in
      master (47641e8f3ec75926046d935f41cd3881a5053b2e)
      ee-7.0.x (bfbd424d8c9b0069cc9d426d968aa80f12959cb1)

        Attachments

        1. Document3.txt
          0.0 kB
        2. fixed-lps72222.png
          fixed-lps72222.png
          172 kB
        3. reproduce-lps72222.png
          reproduce-lps72222.png
          179 kB

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              michael.bowerman Michael Bowerman (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 41 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP17
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  Master