From 0d977c247816e194fd2d90a3643506d64e48eb81 Mon Sep 17 00:00:00 2001 From: Vijayan Balasubramanian Date: Thu, 27 May 2021 11:23:31 -0700 Subject: [PATCH] [k-NN] Update url path Update URL path from _opensearch to _plugins Signed-off-by: Vijayan Balasubramanian --- docs/knn/api.md | 8 ++++---- docs/knn/performance-tuning.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/knn/api.md b/docs/knn/api.md index bdcad6f2..e34ef644 100644 --- a/docs/knn/api.md +++ b/docs/knn/api.md @@ -15,7 +15,7 @@ The k-NN plugin adds two API operations to help you better manage the plugin's f The k-NN `stats` API provides information about the current status of the k-NN plugin. The plugin keeps track of both cluster-level and node-level statistics. Cluster-level statistics have a single value for the entire cluster. Node-level statistics have a single value for each node in the cluster. You can filter the query by `nodeId` and `statName`: ``` -GET /_opensearch/_knn/nodeId1,nodeId2/stats/statName1,statName2 +GET /_plugins/_knn/nodeId1,nodeId2/stats/statName1,statName2 ``` Statistic | Description @@ -45,7 +45,7 @@ Statistic | Description ### Usage ```json -GET /_opensearch/_knn/stats?pretty +GET /_plugins/_knn/stats?pretty { "_nodes" : { "total" : 1, @@ -87,7 +87,7 @@ GET /_opensearch/_knn/stats?pretty ``` ```json -GET /_opensearch/_knn/HYMrXXsBSamUkcAjhjeN0w/stats/circuit_breaker_triggered,graph_memory_usage?pretty +GET /_plugins/_knn/HYMrXXsBSamUkcAjhjeN0w/stats/circuit_breaker_triggered,graph_memory_usage?pretty { "_nodes" : { "total" : 1, @@ -121,7 +121,7 @@ After the process finishes, you can start searching against the indices with no This request performs a warmup on three indices: ```json -GET /_opensearch/_knn/warmup/index1,index2,index3?pretty +GET /_plugins/_knn/warmup/index1,index2,index3?pretty { "_shards" : { "total" : 6, diff --git a/docs/knn/performance-tuning.md b/docs/knn/performance-tuning.md index 12631a8b..7f49dca5 100644 --- a/docs/knn/performance-tuning.md +++ b/docs/knn/performance-tuning.md @@ -64,7 +64,7 @@ Take the following steps to improve search performance: To avoid this latency penalty during your first queries, you can use the warmup API operation on the indices you want to search: ```json - GET /_opensearch/_knn/warmup/index1,index2,index3?pretty + GET /_plugins/_knn/warmup/index1,index2,index3?pretty { "_shards" : { "total" : 6,