# Class AdminSearchServiceFactory (5.0.3)

    public final class AdminSearchServiceFactory

Builds [SearchService](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.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](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> AdminSearchServiceFactory

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### AdminSearchServiceFactory()

    public AdminSearchServiceFactory()

## Methods

### getSearchService(String appId, SearchServiceConfig config)

    public SearchService getSearchService(String appId, SearchServiceConfig config)

Returns a [SearchService](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.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** ||
|---|---|
| **Name** | **Description** |
| `appId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `config` | `https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.SearchServiceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.SearchService` |   |