Skip to content

Commit

Permalink
Change request type of k-NN clear cache api from GET to POST
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <[email protected]>
  • Loading branch information
naveentatikonda committed Oct 3, 2024
1 parent f4a5744 commit 1991071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _search-plugins/knn/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 1991071

Please sign in to comment.