From 07f2b06e3151cc267d990406ef7dacf0addbe8e8 Mon Sep 17 00:00:00 2001 From: jjia Date: Thu, 4 Apr 2019 13:19:06 -0400 Subject: Revert back the SP interface Issue-ID: AAI-2315 Change-Id: I11eedfc8dbc86900ae174f2d644bb99524f62d29 Signed-off-by: jjia --- .../java/org/onap/aai/sparky/search/UnifiedSearchProcessor.java | 7 +------ .../main/java/org/onap/aai/sparky/search/api/SearchProvider.java | 7 ------- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'sparkybe-onap-service/src/main') diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/UnifiedSearchProcessor.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/UnifiedSearchProcessor.java index 953424c..dfcc518 100644 --- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/UnifiedSearchProcessor.java +++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/UnifiedSearchProcessor.java @@ -95,12 +95,7 @@ public class UnifiedSearchProcessor { int totalSuggestionsFromProviders = 0; List suggestions = null; for (SearchProvider searchProvider : searchProviderRegistry.getSearchProviders()) { - if (searchProvider.isPassThrough()){ - suggestions = searchProvider.searchPassThrough(payload); - } else { - suggestions = searchProvider.search(searchRequest); - } - + suggestions = searchProvider.search(searchRequest); totalSuggestionsFromProviders += suggestions.size(); searchProviderSuggestions.put(searchProvider.getClass().getCanonicalName(), suggestions); } diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/api/SearchProvider.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/api/SearchProvider.java index f9eb503..14de17d 100644 --- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/api/SearchProvider.java +++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/api/SearchProvider.java @@ -29,12 +29,5 @@ public interface SearchProvider { List search(QuerySearchEntity queryRequest); - default boolean isPassThrough() { - return false; - } - - default List searchPassThrough(String payload) { - return null; - } } -- cgit 1.2.3-korg