diff options
author | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-04-20 15:13:15 +0530 |
---|---|---|
committer | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-04-20 15:14:53 +0530 |
commit | 1b226258f15458b3bfe02853ac5dcd6187c805bf (patch) | |
tree | 91b2641bcb5af4aa9eb7a2d6d7b1eb1e3fb79494 /ecomp-portal-BE-os/src | |
parent | 3786478c94a615ee51bd4a540729ad8bb1baf544 (diff) |
Fixed Duplicate Search Result - User Search
Fixed Duplicate Search Result - User Search
Issue-ID: PORTAL-859
Change-Id: Id4efa3261b23ea725040ec6c5cee2c0c300e1606
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
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 = "[]"; |