summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/UnifiedSearchProcessor.java7
-rw-r--r--sparkybe-onap-service/src/main/java/org/onap/aai/sparky/search/api/SearchProvider.java7
2 files changed, 1 insertions, 13 deletions
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<SearchSuggestion> 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<SearchSuggestion> search(QuerySearchEntity queryRequest);
- default boolean isPassThrough() {
- return false;
- }
-
- default List<SearchSuggestion> searchPassThrough(String payload) {
- return null;
- }
}