We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fbc33 commit aa8b824Copy full SHA for aa8b824
algoliasearch/src/main/java/com/algolia/api/SearchClient.java
@@ -6743,4 +6743,16 @@ public Duration getSecuredApiKeyRemainingValidity(@Nonnull String securedApiKey)
6743
6744
return Duration.ofSeconds(timeStamp - Instant.now().getEpochSecond());
6745
}
6746
+
6747
+ public boolean indexExists(String indexName) {
6748
+ try {
6749
+ getSettings(indexName);
6750
+ } catch (AlgoliaApiException e) {
6751
+ if (e.getStatusCode() == 404) {
6752
+ return false;
6753
+ }
6754
+ throw e;
6755
6756
+ return true;
6757
6758
0 commit comments