Class AdminSearchServiceFactory (2.0.0)

public final class AdminSearchServiceFactory

Builds SearchService instances that are pinned to a specific application and namespace regardless of the "current" appId provided by ApiProxy.getCurrentEnvironment().getAppId() and the "current" namespace provided by NamespaceManager.get().

Note: users should not access this class directly.

Inheritance

java.lang.Object > AdminSearchServiceFactory

Constructors

AdminSearchServiceFactory()

public AdminSearchServiceFactory()

Methods

getSearchService(String appId, SearchServiceConfig config)

public SearchService getSearchService(String appId, SearchServiceConfig config)

Returns a SearchService that is pinned to a specific application and namespace. This implementation ignores the "current" appId provided by ApiProxy.getCurrentEnvironment().getAppId() and the "current" namespace provided by NamespaceManager.get().

Parameters
NameDescription
appIdString
configSearchServiceConfig
Returns
TypeDescription
SearchService