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

Adding synonym sets removes highlighting in search results for non-localized entities with localized fields

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.2.X, Master
    • Fix Version/s: None
    • Component/s: Search Infrastructure
    • Labels:
      None

      Description

      Steps to reproduce for inexact queries:

      1. Create 3 Blogs Entries titled: articles, article1, articlez
      2. On the home page, search for article
        Observed behavior: articles, article1, and articlez appear in the search results and the matched fields for each result are highlighted.
      3. Add a new Search Tuning > Synonym Set: article, journal
      4. On the home page, search for article
        Expected result: articlesarticle1, and articlez appear in the search results and the matched fields for each result are highlighted.
        Actual result: articlesarticle1, and articlez appear in the search results, but ONLY the articles search result has highlighted fields.

      Steps to reproduce for stop word queries:

      1. Create two Blog Entries titled: thing with words, for you
      2. On the home page, search for thing with words, then search for for you
        Observed behavior: The blog entries thing with words, and for you appear in the search results for their respective queries and the matched fields for each result are highlighted.
      3. Add a new Search Tuning > Synonym Set: thing with wordsphrase
      4. Add another Synonym Set: for you, letter
      5. On the home page, search for thing
        Observed behavior: The web content article thing with words appears in the search results and the word thing is properly highlighted
      6. Search for thing with words, then search for phrase
        Expected result: The blog entry thing with words appears in both search results with highlighted matched fields.
        Actual result: The blog entry thing with words appears in both search results but none of the fields are highlighted.
      7. Search for for you, then search for letter
        Expected result: The blog entry for you appears in both search results with highlighted matched fields.
        Actual result: The blog entry for you appears in both search results but none of the fields are highlighted.

      Note: This was reproducible with other non-localized entities with localized fields like Message Board threads. This was not reproducible with Documents and Media.

      Reproduced on:
      Portal master Git commit: 5768543decf42efba87f23f0bc6a08f4152cd1a7
      Portal 7.2.x Git commit: 6eaecf2e61368116b25d3c678b286cfbd26aa4dc

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                joshua.chong Joshua Chong
                Participants of an Issue:
                Recent user:
                Brian Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  14 weeks, 1 day ago

                  Packages

                  Version Package