Package com.google.appengine.api.search
Interface ISearchServiceFactory
-
public interface ISearchServiceFactoryA factory that creates default implementation ofSearchService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SearchServicegetSearchService(SearchServiceConfig config)Returns an instance of theSearchServicewith the given config.SearchServicegetSearchService(String namespace)Deprecated.
-
-
-
Method Detail
-
getSearchService
@Deprecated SearchService getSearchService(String namespace)
Deprecated.Returns an instance of theSearchService. The instance will exist in the user provided namespace. The namespace must be valid, as perNamespaceManager.validateNamespace(String)method. Equivalent togetSearchService(SearchServiceConfig.newBuilder().setNamespace(namespace).build())- Parameters:
namespace- a namespace to be assigned to the returned search service.- Returns:
- the default implementation of
SearchService. - Throws:
IllegalArgumentException- if the namespace is invalid
-
getSearchService
SearchService getSearchService(SearchServiceConfig config)
Returns an instance of theSearchServicewith the given config.- Parameters:
config- aSearchServiceConfiginstance that describes the requested search service. If no namespace provided in config, NamespaceManager.get() will be used. will be used.- Returns:
- the default implementation of
SearchService.
-
-