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

Only the last character of Japanese text is highlighted

    Details

      Description

      Description
      After the fix for --LPS-72222-- was committed, a new issue was caused. Now, if you have a document with some Japanese text in it, and you search for Japanese text, only the last character of each word that you searched for will be highlighted, instead of the entire word being highlighted.

      Steps to Reproduce

      1. Start up the portal and log in as the admin user.
      2. Add a Documents and Media portlet to a page.
      3. Go to Site Settings > Languages and set Japanese as the Default Language.
      4. Upload the attached Document1.txt (contains content あいうえお かきくけこ 日本語)
      5. Go to My Account > Account Settings and set Language to Japanese: 日本語 (日本)
      6. Search in the search portlet for あいうえお 日本語.

      Expected result: "あい" and "日本語" would be highlighted.
      Actual result: Only the last character of each of those text strings is highlighted ("お" and "語").

      Reproduced in master (bf34e6b6517e88165df19a829058e4d5a18f67a8)
      Reproduced in ee-7.0.x (23246d28294906ca474224a1bcfe2a33a8313cec)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 34 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP31
                  7.0.5 CE GA6
                  7.0.X
                  7.1.X
                  Master