From 1991071bec02ec426cf40e48680ddc960f768f0e Mon Sep 17 00:00:00 2001 From: Naveen Tatikonda Date: Thu, 3 Oct 2024 18:09:39 -0500 Subject: [PATCH] Change request type of k-NN clear cache api from GET to POST Signed-off-by: Naveen Tatikonda --- _search-plugins/knn/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_search-plugins/knn/api.md b/_search-plugins/knn/api.md index 1a6c970640..d927bf1c35 100644 --- a/_search-plugins/knn/api.md +++ b/_search-plugins/knn/api.md @@ -185,7 +185,7 @@ This API operation only works with indexes created using the `nmslib` and `faiss The following request evicts the native library indexes of three indexes from the cache: ```json -GET /_plugins/_knn/clear_cache/index1,index2,index3?pretty +POST /_plugins/_knn/clear_cache/index1,index2,index3?pretty { "_shards" : { "total" : 6, @@ -200,7 +200,7 @@ The `total` parameter indicates the number of shards that the API attempted to c The k-NN clear cache API can be used with index patterns to clear one or more indexes that match the given pattern from the cache, as shown in the following example: ```json -GET /_plugins/_knn/clear_cache/index*?pretty +POST /_plugins/_knn/clear_cache/index*?pretty { "_shards" : { "total" : 6,