Java 8 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Java 8
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Java
8 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Java.
ISearchServiceFactory (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
-
public interface ISearchServiceFactory
-
-
Method Detail
-
getSearchService
@Deprecated
SearchService getSearchService(java.lang.String namespace)
Deprecated.
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eISearchServiceFactory\u003c/code\u003e is an interface that creates the default implementation of the \u003ccode\u003eSearchService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetSearchService\u003c/code\u003e method returns an instance of \u003ccode\u003eSearchService\u003c/code\u003e, either with a specified \u003ccode\u003eSearchServiceConfig\u003c/code\u003e or with a namespace.\u003c/p\u003e\n"],["\u003cp\u003eThere is a deprecated version of \u003ccode\u003egetSearchService\u003c/code\u003e that accepts only a namespace string, but it is advised to use the \u003ccode\u003eSearchServiceConfig\u003c/code\u003e version instead.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetSearchService(SearchServiceConfig config)\u003c/code\u003e method uses the provided \u003ccode\u003eSearchServiceConfig\u003c/code\u003e or \u003ccode\u003eNamespaceManager.get()\u003c/code\u003e if no namespace is provided in the config.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace provided to \u003ccode\u003egetSearchService\u003c/code\u003e must be valid according to \u003ccode\u003eNamespaceManager#validateNamespace(String)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# ISearchServiceFactory (Google App Engine API for Java)\n\ncom.google.appengine.api.search\n\nInterface ISearchServiceFactory\n-------------------------------\n\n-\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public interface ISearchServiceFactory\n ``` \nA factory that creates default implementation of [`SearchService`](../../../../../com/google/appengine/api/search/SearchService.html \"interface in com.google.appengine.api.search\"). \n-\n -\n\n ### Method Summary\n\n-\n -\n\n ### Method Detail\n\n\n -\n\n #### getSearchService\n\n ```\n @Deprecated\n SearchService getSearchService(java.lang.String namespace)\n ``` \n Deprecated. Use [`getSearchService(SearchServiceConfig)`](../../../../../com/google/appengine/api/search/ISearchServiceFactory.html#getSearchService-com.google.appengine.api.search.SearchServiceConfig-) \n Returns an instance of the [`SearchService`](../../../../../com/google/appengine/api/search/SearchService.html \"interface in com.google.appengine.api.search\"). The instance will exist in the user provided namespace. The namespace must be valid, as per `NamespaceManager#validateNamespace(String)` method. Equivalent to `\n getSearchService(SearchServiceConfig.newBuilder().setNamespace(namespace).build())\n `\n\n Parameters:\n : `namespace` - a namespace to be assigned to the returned\n search service.\n\n Returns:\n : the default implementation of [`SearchService`](../../../../../com/google/appengine/api/search/SearchService.html \"interface in com.google.appengine.api.search\").\n\n Throws:\n : `java.lang.IllegalArgumentException` - if the namespace is invalid\n\n\n -\n\n #### getSearchService\n\n ```\n SearchService getSearchService(SearchServiceConfig config)\n ``` \n Returns an instance of the [`SearchService`](../../../../../com/google/appengine/api/search/SearchService.html \"interface in com.google.appengine.api.search\") with the given config.\n\n Parameters:\n : `config` - a [`SearchServiceConfig`](../../../../../com/google/appengine/api/search/SearchServiceConfig.html \"class in com.google.appengine.api.search\") instance that describes the\n requested search service. If no namespace provided in config,\n NamespaceManager.get() will be used.\n will be used.\n\n Returns:\n : the default implementation of [`SearchService`](../../../../../com/google/appengine/api/search/SearchService.html \"interface in com.google.appengine.api.search\")."]]