public class DefaultSearchClient extends Object
| Constructor and Description |
|---|
DefaultSearchClient() |
| Modifier and Type | Method and Description |
|---|---|
static SearchClient |
create(SearchConfig config)
Creates a default
DefaultSearchClient with the given SearchConfig. |
static SearchClient |
create(String applicationID,
String apiKey)
Creates a
DefaultSearchClient with the given credentials The default HttpClient
implementation is ApacheHttpRequester |
public static SearchClient create(@Nonnull String applicationID, @Nonnull String apiKey)
DefaultSearchClient with the given credentials The default HttpClient
implementation is ApacheHttpRequesterapplicationID - The Algolia Application IDapiKey - The Algolia API KeyNullPointerException - If one of the following ApplicationID/ApiKey is nullIllegalArgumentException - If the ApplicationID or the APIKey are emptypublic static SearchClient create(@Nonnull SearchConfig config)
DefaultSearchClient with the given SearchConfig. The default
HttpClient implementation is ApacheHttpRequesterconfig - The configuration allows you to advanced configuration of the clients such as
batch size or custom hosts and timeout.NullPointerException - If one of the following ApplicationID/ApiKey/Config is nullIllegalArgumentException - If the ApplicationID or the APIKey are emptyCopyright © 2019. All rights reserved.