[k-NN] Update url path

Update URL path from _opensearch to _plugins

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
This commit is contained in:
Vijayan Balasubramanian 2021-05-27 11:23:31 -07:00
parent 64a78de6db
commit 0d977c2478
2 changed files with 5 additions and 5 deletions

View File

@ -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`: 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 Statistic | Description
@ -45,7 +45,7 @@ Statistic | Description
### Usage ### Usage
```json ```json
GET /_opensearch/_knn/stats?pretty GET /_plugins/_knn/stats?pretty
{ {
"_nodes" : { "_nodes" : {
"total" : 1, "total" : 1,
@ -87,7 +87,7 @@ GET /_opensearch/_knn/stats?pretty
``` ```
```json ```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" : { "_nodes" : {
"total" : 1, "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: This request performs a warmup on three indices:
```json ```json
GET /_opensearch/_knn/warmup/index1,index2,index3?pretty GET /_plugins/_knn/warmup/index1,index2,index3?pretty
{ {
"_shards" : { "_shards" : {
"total" : 6, "total" : 6,

View File

@ -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: To avoid this latency penalty during your first queries, you can use the warmup API operation on the indices you want to search:
```json ```json
GET /_opensearch/_knn/warmup/index1,index2,index3?pretty GET /_plugins/_knn/warmup/index1,index2,index3?pretty
{ {
"_shards" : { "_shards" : {
"total" : 6, "total" : 6,