Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit b5a8ab7

Browse files
committed
fix(deleteBy): Use encoded index name
1 parent a305b93 commit b5a8ab7

File tree

1 file changed

+1
-1
lines changed
  • algoliasearch/src/main/java/com/algolia/search/saas

1 file changed

+1
-1
lines changed

algoliasearch/src/main/java/com/algolia/search/saas/Index.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ protected void deleteByQuery(@NonNull Query query, @Nullable RequestOptions requ
12941294
*/
12951295
protected JSONObject deleteBy(@NonNull Query query) throws AlgoliaException {
12961296
try {
1297-
return client.postRequest("/1/indexes/" + indexName + "/deleteByQuery", query.getParameters(), new JSONObject().put("params", query.build()).toString(), false, /* requestOptions: */ null);
1297+
return client.postRequest("/1/indexes/" + encodedIndexName + "/deleteByQuery", query.getParameters(), new JSONObject().put("params", query.build()).toString(), false, /* requestOptions: */ null);
12981298
} catch (JSONException e) {
12991299
e.printStackTrace();
13001300
return null;

0 commit comments

Comments
 (0)