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

Introduce journal-test/JournalArticleMultiLanguageSearchJapaneseSummaryTest

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 7.2.X, Master
    • Component/s: Search Infrastructure
    • Labels:
      None

      Description

      A new integration test class, with a single test method. (To begin with.)

       

      Test must illustrate current problems with highlighting of Japanese content due to interference from:

      com.liferay.journal.internal.search.JournalArticleIndexer.getDDMContentSummary(Document, Locale, PortletRequest, PortletResponse).

       

      Should combine approaches from:

      JournalArticleMultiLanguageSearchSummaryTest – as a test that performs multi language search, and illustrates highlighting of content, but is missing Japanese examples.

      JournalArticleIndexerLocalizedContentTest – as a test that performs multi language search, and has Japanese examples, but is missing assertions of highlighted content.

      JournalArticleIndexerSummaryTest – as a test that illustrates how snippets from the search engine are discarded and superseded by getDDMContentSummary (trying to avoid "stale" search engine content), but is missing examples of good highlighted Japanese snippets from the search engine being discarded and superseded by non-highlighted Japanese from getDDMContentSummary.

       

      Therefore new test class must, at the very least:

      • Perform multi language search in Japanese
      • Assert highlighted matches in Japanese "Title" (happy day)
      • Assert lack of highlighted matches in Japanese "Content" (sorry day)

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.2.X
                  Master