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

Bug: Prevent "[" and "]" from being added to aliases and hidden ids on save

    Details

      Description

      Currently, aliases are adding "[" and "]" to the first and last alias on save.

      The issue seems to be happening between when the ranking document is saved to the indexer and read. This also causes an issue with the `blockedIds` being saved.

      The arrays are accurate when translating from ranking to document here: https://github.com/arboliveira/liferay-portal/blob/LPS-89524_Search_Tuning_Result_Rankings/modules/apps/portal-search/portal-search-ranking-web/src/main/java/com/liferay/portal/search/ranking/web/internal/index/RankingToDocumentTranslatorImpl.java#L39-L47

      But when translating from document to ranking the values are returned as an array with a single item like `[[item1, item2]]` here: https://github.com/arboliveira/liferay-portal/blob/LPS-89524_Search_Tuning_Result_Rankings/modules/apps/portal-search/portal-search-ranking-web/src/main/java/com/liferay/portal/search/ranking/web/internal/index/DocumentToRankingTranslatorImpl.java#L45-L49 (edited)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 week, 4 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  Master