Merge "Fixed Duplicate Search Result - User Search"
authorLorraine Welch <lb2391@att.com>
Mon, 20 Apr 2020 21:10:52 +0000 (21:10 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 20 Apr 2020 21:10:52 +0000 (21:10 +0000)
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 = "[]";