diff options
author | 2020-04-20 21:10:52 +0000 | |
---|---|---|
committer | 2020-04-20 21:10:52 +0000 | |
commit | 3c89a5ad1e0d6bbae5e3358e751931f8416ba31b (patch) | |
tree | 72a0e47a07e81bfc2d4c13dda717ce60eaf54d99 /ecomp-portal-BE-os/src | |
parent | 93a4c9e9b26bdb3b987dead6553d0df5e0678244 (diff) | |
parent | 1b226258f15458b3bfe02853ac5dcd6187c805bf (diff) |
Merge "Fixed Duplicate Search Result - User Search"
Diffstat (limited to 'ecomp-portal-BE-os/src')
-rw-r--r-- | ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/service/SearchServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/service/SearchServiceImpl.java b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/service/SearchServiceImpl.java index 0e9932e0..479564f5 100644 --- a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/service/SearchServiceImpl.java +++ b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/service/SearchServiceImpl.java @@ -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 = "[]"; |