File tree 4 files changed +45
-0
lines changed
4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ string WaitForActiveShards
318
318
@documentation (" Wait until the specified number of nodes is available." )
319
319
string WaitForNodes
320
320
321
+ @documentation (" Comma-separated list of indices; use `_all` to perform the operation on all indices." )
322
+ string KnnIndices
323
+
321
324
@xDataType (" time" )
322
325
@pattern (" ^([0-9]+)(?:d|h|m|s|ms|micros|nanos)$" )
323
326
@documentation (" Time each individual bulk request should wait for shards that are unavailable." )
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ //
3
+ // The OpenSearch Contributors require contributions made to
4
+ // this file be licensed under the Apache-2.0 license or a
5
+ // compatible open source license.
6
+
7
+ $ version : " 2"
8
+ namespace OpenSearch
9
+
10
+ @externalDocumentation (
11
+ "API Reference" : " https://opensearch.org/docs/latest/search-plugins/knn/api/#warmup-operation"
12
+ )
13
+
14
+ @xOperationGroup (" knn.warmup" )
15
+ @xVersionAdded (" 1.0" )
16
+ @readonly
17
+ @suppress ([" HttpUriConflict" ])
18
+ @http (method : " GET" , uri : " /_plugins/_knn/warmup/{index}" )
19
+ @documentation (" Preloads native library files into memory, reducing initial search latency for specified indexes" )
20
+ operation KNNWarmup {
21
+ input : KNNWarmup_Input ,
22
+ output : KNNWarmup_Output
23
+ }
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ //
3
+ // The OpenSearch Contributors require contributions made to
4
+ // this file be licensed under the Apache-2.0 license or a
5
+ // compatible open source license.
6
+
7
+ $ version : " 2"
8
+ namespace OpenSearch
9
+
10
+ @input
11
+ structure KNNWarmup_Input {
12
+ @required
13
+ @httpLabel
14
+ index : KnnIndices ,
15
+ }
16
+
17
+ // TODO: Fill in Output Structure
18
+ structure KNNWarmup_Output {}
Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ service OpenSearch {
256
256
IngestSimulate_Get_WithId ,
257
257
IngestSimulate_Post ,
258
258
IngestSimulate_Post_WithId ,
259
+ KNNWarmup ,
259
260
Mget_Get ,
260
261
Mget_Get_WithIndex ,
261
262
Mget_Post ,
You can’t perform that action at this time.
0 commit comments