Fixed Duplicate Search Result - User Search 54/106254/1
authorSudarshan Kumar <sudarshan.kumar@att.com>
Mon, 20 Apr 2020 09:43:15 +0000 (15:13 +0530)
committerSudarshan Kumar <sudarshan.kumar@att.com>
Mon, 20 Apr 2020 09:44:53 +0000 (15:14 +0530)
Fixed Duplicate Search Result - User Search

Issue-ID: PORTAL-859
Change-Id: Id4efa3261b23ea725040ec6c5cee2c0c300e1606
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/service/SearchServiceImpl.java

index 0e9932e..479564f 100644 (file)
@@ -113,7 +113,7 @@ public class SearchServiceImpl implements SearchService {
                        resultOfSearch.addAll(resultOfAdditionalSearch);
                }
                resultOfSearch.addAll(resultOfSearchUserId);
-               resultOfSearch.stream().distinct().collect(Collectors.toList());
+               resultOfSearch = resultOfSearch.stream().distinct().collect(Collectors.toList());
                resultOfSearch = this.cutSearchResultToMaximumSize(resultOfSearch);
                ObjectMapper mapper = new ObjectMapper();
                String result = "[]";