Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassAdminSearchServiceFactory
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.
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().
[[["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-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eAdminSearchServiceFactory\u003c/code\u003e builds \u003ccode\u003eSearchService\u003c/code\u003e instances tied to a specific application and namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class overrides the "current" application ID and namespace settings.\u003c/p\u003e\n"],["\u003cp\u003eUsers should not directly interact with this class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetSearchService\u003c/code\u003e method returns a \u003ccode\u003eSearchService\u003c/code\u003e pinned to the provided \u003ccode\u003eappId\u003c/code\u003e and namespace, ignoring any current settings.\u003c/p\u003e\n"]]],[],null,["# Class AdminSearchServiceFactory (2.0.0)\n\n public final class AdminSearchServiceFactory\n\nBuilds [SearchService](/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\nregardless of the \"current\" appId provided by `ApiProxy.getCurrentEnvironment().getAppId()`\nand the \"current\" namespace provided by `NamespaceManager.get()`.\n\n\nNote: users should not access this class directly. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e AdminSearchServiceFactory \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### AdminSearchServiceFactory()\n\n public AdminSearchServiceFactory()\n\nMethods\n-------\n\n### getSearchService(String appId, SearchServiceConfig config)\n\n public SearchService getSearchService(String appId, SearchServiceConfig config)\n\nReturns a [SearchService](/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\nimplementation ignores the \"current\" appId provided by\n`ApiProxy.getCurrentEnvironment().getAppId()` and the \"current\" namespace provided by\n`NamespaceManager.get()`."]]