com.google.appengine.api.search
Interface ISearchServiceFactory
-
public interface ISearchServiceFactory
A factory that creates default implementation ofSearchService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description SearchService
getSearchService(SearchServiceConfig config)
Returns an instance of theSearchService
with the given config.SearchService
getSearchService(java.lang.String namespace)
Deprecated.
-
-
-
Method Detail
-
getSearchService
@Deprecated SearchService getSearchService(java.lang.String namespace)
Deprecated. UsegetSearchService(SearchServiceConfig)
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:
java.lang.IllegalArgumentException
- if the namespace is invalid
-
getSearchService
SearchService getSearchService(SearchServiceConfig config)
Returns an instance of theSearchService
with the given config.- Parameters:
config
- aSearchServiceConfig
instance 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
.
-
-