com.google.appengine.api.search

## Interface ISearchServiceFactory

-     public interface ISearchServiceFactory

  A factory that creates default implementation of `SearchService`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `SearchService` | `getSearchService(SearchServiceConfig config)` Returns an instance of the `SearchService` with the given config.
    `SearchService` | `getSearchService(java.lang.String namespace)` Deprecated. Use `getSearchService(SearchServiceConfig)`

- - ### Method Detail

    - #### getSearchService

          @Deprecated
          SearchService getSearchService(java.lang.String namespace)

      Deprecated. Use `getSearchService(SearchServiceConfig)`
      Returns an instance of the `SearchService`. The instance will exist in the user provided namespace. The namespace must be valid, as per `NamespaceManager#validateNamespace(String)` method. Equivalent to `getSearchService(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 the `SearchService` with the given config.
      Parameters:
        `config` - a `SearchServiceConfig` 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`.