Interface ISearchServiceFactory (2.0.0)

public interface ISearchServiceFactory

A factory that creates default implementation of SearchService.

Methods

getSearchService(SearchServiceConfig config)

public abstract SearchService getSearchService(SearchServiceConfig config)

Returns an instance of the SearchService with the given config.

Parameter
Name Description
config SearchServiceConfig

a SearchServiceConfig instance that describes the requested search service. If no namespace provided in config, NamespaceManager.get() will be used. will be used.

Returns
Type Description
SearchService

the default implementation of SearchService.

getSearchService(String namespace) (deprecated)

public abstract SearchService getSearchService(String namespace)

Deprecated. Use ISearchServiceFactory#getSearchService(SearchServiceConfig)

Returns an instance of the SearchService. The instance will exist in the user provided namespace. The namespace must be valid, as per com.google.appengine.api.NamespaceManager#validateNamespace(String) method. Equivalent to getSearchService(SearchServiceConfig.newBuilder().setNamespace(namespace).build())

Parameter
Name Description
namespace String

a namespace to be assigned to the returned search service.

Returns
Type Description
SearchService

the default implementation of SearchService.