Package com.algolia.search
Class AccountClient
- java.lang.Object
-
- com.algolia.search.AccountClient
-
public final class AccountClient extends Object
The account client performs cross indices operations This class is an helper and it doesn't hold resources.
-
-
Constructor Summary
Constructors Constructor Description AccountClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> MultiResponsecopyIndex(SearchIndex<T> sourceIndex, SearchIndex<T> destinationIndex)The method copy settings, synonyms, rules and objects from the source index to the destination indexstatic <T> MultiResponsecopyIndex(SearchIndex<T> sourceIndex, SearchIndex<T> destinationIndex, RequestOptions requestOptions)The method copy settings, synonyms, rules and objects from the source index to the destination indexstatic <T> CompletableFuture<MultiResponse>copyIndexAsync(SearchIndex<T> sourceIndex, SearchIndex<T> destinationIndex)The method copy settings, synonyms, rules and objects from the source index to the destination indexstatic <T> CompletableFuture<MultiResponse>copyIndexAsync(SearchIndex<T> sourceIndex, SearchIndex<T> destinationIndex, RequestOptions requestOptions)The method copy settings, synonyms, rules and objects from the source index to the destination index
-
-
-
Method Detail
-
copyIndex
public static <T> MultiResponse copyIndex(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex)
The method copy settings, synonyms, rules and objects from the source index to the destination index- Parameters:
sourceIndex- The source index to copydestinationIndex- The destination index- Throws:
AlgoliaRuntimeException- If destination index already exist or source and destination are on the same applicationAlgoliaRetryException- When the retry has failed on all hostsAlgoliaApiException- When the API sends an http error code
-
copyIndex
public static <T> MultiResponse copyIndex(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex, RequestOptions requestOptions)
The method copy settings, synonyms, rules and objects from the source index to the destination index- Parameters:
sourceIndex- The source index to copydestinationIndex- The destination indexrequestOptions- Request options to pass to the request- Throws:
AlgoliaRuntimeException- If destination index already exist or source and destination are on the same applicationAlgoliaRetryException- When the retry has failed on all hostsAlgoliaApiException- When the API sends an http error code
-
copyIndexAsync
public static <T> CompletableFuture<MultiResponse> copyIndexAsync(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex)
The method copy settings, synonyms, rules and objects from the source index to the destination index- Parameters:
sourceIndex- The source index to copydestinationIndex- The destination index- Throws:
AlgoliaRuntimeException- If destination index already exist or source and destination are on the same applicationAlgoliaRetryException- When the retry has failed on all hostsAlgoliaApiException- When the API sends an http error code
-
copyIndexAsync
public static <T> CompletableFuture<MultiResponse> copyIndexAsync(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex, RequestOptions requestOptions)
The method copy settings, synonyms, rules and objects from the source index to the destination index- Parameters:
sourceIndex- The source index to copydestinationIndex- The destination indexrequestOptions- Request options to pass to the request- Throws:
AlgoliaRuntimeException- If destination index already exist or source and destination are on the same applicationAlgoliaRetryException- When the retry has failed on all hostsAlgoliaApiException- When the API sends an http error code
-
-