public interface SearchProvider
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canSuggest(GraphService graphService,
          String namespace)
Defines if the search can provide suggestions to the given namespace 
 | 
default String | 
getProviderId()
Returns the unique  
providerId. | 
List<SearchSuggestion> | 
getSuggestions(SearchContext searchContext,
              String namespace,
              String input)
Provide suggestions for the given namespace, given the input. 
 | 
List<GenericVertex> | 
resolve(GraphService graphService,
       SearchCriteria searchCriteria)
Resolves the given SearchCriteria to a list of vertices. 
 | 
boolean canSuggest(GraphService graphService, String namespace)
namespace - The namespace to make suggestions to.List<SearchSuggestion> getSuggestions(SearchContext searchContext, String namespace, String input)
searchContext - The SearchContext to allow access to graphs and other configurationnamespace - The namespace of the current selected provider to make mappingsinput - The current input, may be a snippet of the final input for type ahead support. It is never null or empty.default String getProviderId()
providerId.
 This is required as there is a 1:n relationship between search provider and namespace, meaning multiple providers may provide
 suggestions for the same namespace. In order to resolve from the correct suggestion, a 1:1 mapping backwards is required.
 For this the providerId is used, which in return must be unique over all SearchProvider.List<GenericVertex> resolve(GraphService graphService, SearchCriteria searchCriteria)
graphService - The GraphService to get access to a graphsearchCriteria - The SearchCriteria to resolveCopyright © 2020. All rights reserved.