Affects Version/s: None
Component/s: Search Infrastructure
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)