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

Web Content search preview should show highlight returned by the search engine

    Details

      Description

      Steps to reproduce:

      1. Add a Web Content Article with lots of content - you can use the attached.
      2. Search for a word at the very beginning of that article using the embedded template search - "Lili"
      3. Assert that the preview shows the keyword highlighted in context (although the last "Lili" doesn't appear in the summary)
      4. Search for a word at the very end of that article using the embedded template search - "Chandra"

      Expected Result: Journal Article indexer returns a summary from the section of the article where the keyword is mentioned. Try the same steps but with Message Boards to see the expected behavior.

      Actual Result: Journal Article indexer's returns content from the very beginning as its summary. This means that any hits later on in the article aren't highlighted since they aren't part of the summary.

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7.22
      Portal Master Git SHA: af428f965af4d32a3132e05cb7b57606faec06cd

        Attachments

        1. 2018-06-13 15.35.38.gif
          2018-06-13 15.35.38.gif
          5.33 MB
        2. Search After English garbage.png
          Search After English garbage.png
          63 kB
        3. Search After English Lili.png
          Search After English Lili.png
          69 kB
        4. Search After JA as Eng.png
          Search After JA as Eng.png
          34 kB
        5. Search After JA as JA.png
          Search After JA as JA.png
          35 kB
        6. Search Before English.png
          Search Before English.png
          69 kB
        7. Search Before English garbage.png
          Search Before English garbage.png
          66 kB
        8. Search Before JA as Eng.png
          Search Before JA as Eng.png
          34 kB
        9. Search Before JA as JA.png
          Search Before JA as JA.png
          35 kB

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              brian.lee Brian Lee
              Participants of an Issue:
              Recent user:
              Yang Cao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                36 weeks, 6 days ago

                  Packages

                  Version Package