1 // Copyright 2012 Google Inc. All rights reserved.
3 package com
.google
.appengine
.api
.search
;
6 * A factory that creates default implementation of {@link SearchService}.
9 public interface ISearchServiceFactory
{
12 * Returns an instance of the {@link SearchService}. The instance
13 * will exist in the user provided namespace. The namespace must be
14 * valid, as per {@link NamespaceManager#validateNamespace(String)}
15 * method. Equivalent to
17 * getSearchService(SearchServiceConfig.newBuilder().setNamespace(namespace).build())
20 * @param namespace a namespace to be assigned to the returned
22 * @return the default implementation of {@link SearchService}.
23 * @throws IllegalArgumentException if the namespace is invalid
24 * @deprecated Use {@link ISearchServiceFactory#getSearchService(SearchServiceConfig)}
27 SearchService
getSearchService(String namespace
);
30 * Returns an instance of the {@link SearchService} with the given config.
32 * @param config a {@link SearchServiceConfig} instance that describes the
33 * requested search service. If no namespace provided in config,
34 * NamespaceManager.get() will be used.
36 * @return the default implementation of {@link SearchService}.
38 SearchService
getSearchService(SearchServiceConfig config
);