-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP2, 7.2.10.1 DXP SP1, 7.2.X, 7.3.10 DXP GA1, Master
-
Component/s: Search Infrastructure
-
Labels:None
-
Story Points:2
-
Fix Priority:4
-
Epic Link:
-
Sprint:Search | S03 Sprint 1, Search | S03 Sprint 2, Search | S03 Sprint 3, Search | S03 Sprint 4
-
Git Pull Request:
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)