forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knn.yaml
727 lines (727 loc) · 32.2 KB
/
knn.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
openapi: 3.1.0
info:
title: OpenSearch Vector API
description: OpenSearch Vector API.
version: 1.0.0
paths:
/_plugins/_knn/models/_search:
get:
operationId: knn.search_models.0
x-operation-group: knn.search_models
x-version-added: '1.0'
description: Use an OpenSearch query to search for models in the index.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#search-model
parameters:
- $ref: '#/components/parameters/knn.search_models::query._source'
- $ref: '#/components/parameters/knn.search_models::query._source_excludes'
- $ref: '#/components/parameters/knn.search_models::query._source_includes'
- $ref: '#/components/parameters/knn.search_models::query.allow_no_indices'
- $ref: '#/components/parameters/knn.search_models::query.allow_partial_search_results'
- $ref: '#/components/parameters/knn.search_models::query.analyze_wildcard'
- $ref: '#/components/parameters/knn.search_models::query.analyzer'
- $ref: '#/components/parameters/knn.search_models::query.batched_reduce_size'
- $ref: '#/components/parameters/knn.search_models::query.ccs_minimize_roundtrips'
- $ref: '#/components/parameters/knn.search_models::query.default_operator'
- $ref: '#/components/parameters/knn.search_models::query.df'
- $ref: '#/components/parameters/knn.search_models::query.docvalue_fields'
- $ref: '#/components/parameters/knn.search_models::query.expand_wildcards'
- $ref: '#/components/parameters/knn.search_models::query.explain'
- $ref: '#/components/parameters/knn.search_models::query.from'
- $ref: '#/components/parameters/knn.search_models::query.ignore_throttled'
- $ref: '#/components/parameters/knn.search_models::query.ignore_unavailable'
- $ref: '#/components/parameters/knn.search_models::query.lenient'
- $ref: '#/components/parameters/knn.search_models::query.max_concurrent_shard_requests'
- $ref: '#/components/parameters/knn.search_models::query.pre_filter_shard_size'
- $ref: '#/components/parameters/knn.search_models::query.preference'
- $ref: '#/components/parameters/knn.search_models::query.q'
- $ref: '#/components/parameters/knn.search_models::query.request_cache'
- $ref: '#/components/parameters/knn.search_models::query.rest_total_hits_as_int'
- $ref: '#/components/parameters/knn.search_models::query.routing'
- $ref: '#/components/parameters/knn.search_models::query.scroll'
- $ref: '#/components/parameters/knn.search_models::query.search_type'
- $ref: '#/components/parameters/knn.search_models::query.seq_no_primary_term'
- $ref: '#/components/parameters/knn.search_models::query.size'
- $ref: '#/components/parameters/knn.search_models::query.sort'
- $ref: '#/components/parameters/knn.search_models::query.stats'
- $ref: '#/components/parameters/knn.search_models::query.stored_fields'
- $ref: '#/components/parameters/knn.search_models::query.suggest_field'
- $ref: '#/components/parameters/knn.search_models::query.suggest_mode'
- $ref: '#/components/parameters/knn.search_models::query.suggest_size'
- $ref: '#/components/parameters/knn.search_models::query.suggest_text'
- $ref: '#/components/parameters/knn.search_models::query.terminate_after'
- $ref: '#/components/parameters/knn.search_models::query.timeout'
- $ref: '#/components/parameters/knn.search_models::query.track_scores'
- $ref: '#/components/parameters/knn.search_models::query.track_total_hits'
- $ref: '#/components/parameters/knn.search_models::query.typed_keys'
- $ref: '#/components/parameters/knn.search_models::query.version'
requestBody:
$ref: '#/components/requestBodies/knn.search_models'
responses:
'200':
$ref: '#/components/responses/knn.search_models@200'
post:
operationId: knn.search_models.1
x-operation-group: knn.search_models
x-version-added: '1.0'
description: Use an OpenSearch query to search for models in the index.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#search-model
parameters:
- $ref: '#/components/parameters/knn.search_models::query._source'
- $ref: '#/components/parameters/knn.search_models::query._source_excludes'
- $ref: '#/components/parameters/knn.search_models::query._source_includes'
- $ref: '#/components/parameters/knn.search_models::query.allow_no_indices'
- $ref: '#/components/parameters/knn.search_models::query.allow_partial_search_results'
- $ref: '#/components/parameters/knn.search_models::query.analyze_wildcard'
- $ref: '#/components/parameters/knn.search_models::query.analyzer'
- $ref: '#/components/parameters/knn.search_models::query.batched_reduce_size'
- $ref: '#/components/parameters/knn.search_models::query.ccs_minimize_roundtrips'
- $ref: '#/components/parameters/knn.search_models::query.default_operator'
- $ref: '#/components/parameters/knn.search_models::query.df'
- $ref: '#/components/parameters/knn.search_models::query.docvalue_fields'
- $ref: '#/components/parameters/knn.search_models::query.expand_wildcards'
- $ref: '#/components/parameters/knn.search_models::query.explain'
- $ref: '#/components/parameters/knn.search_models::query.from'
- $ref: '#/components/parameters/knn.search_models::query.ignore_throttled'
- $ref: '#/components/parameters/knn.search_models::query.ignore_unavailable'
- $ref: '#/components/parameters/knn.search_models::query.lenient'
- $ref: '#/components/parameters/knn.search_models::query.max_concurrent_shard_requests'
- $ref: '#/components/parameters/knn.search_models::query.pre_filter_shard_size'
- $ref: '#/components/parameters/knn.search_models::query.preference'
- $ref: '#/components/parameters/knn.search_models::query.q'
- $ref: '#/components/parameters/knn.search_models::query.request_cache'
- $ref: '#/components/parameters/knn.search_models::query.rest_total_hits_as_int'
- $ref: '#/components/parameters/knn.search_models::query.routing'
- $ref: '#/components/parameters/knn.search_models::query.scroll'
- $ref: '#/components/parameters/knn.search_models::query.search_type'
- $ref: '#/components/parameters/knn.search_models::query.seq_no_primary_term'
- $ref: '#/components/parameters/knn.search_models::query.size'
- $ref: '#/components/parameters/knn.search_models::query.sort'
- $ref: '#/components/parameters/knn.search_models::query.stats'
- $ref: '#/components/parameters/knn.search_models::query.stored_fields'
- $ref: '#/components/parameters/knn.search_models::query.suggest_field'
- $ref: '#/components/parameters/knn.search_models::query.suggest_mode'
- $ref: '#/components/parameters/knn.search_models::query.suggest_size'
- $ref: '#/components/parameters/knn.search_models::query.suggest_text'
- $ref: '#/components/parameters/knn.search_models::query.terminate_after'
- $ref: '#/components/parameters/knn.search_models::query.timeout'
- $ref: '#/components/parameters/knn.search_models::query.track_scores'
- $ref: '#/components/parameters/knn.search_models::query.track_total_hits'
- $ref: '#/components/parameters/knn.search_models::query.typed_keys'
- $ref: '#/components/parameters/knn.search_models::query.version'
requestBody:
$ref: '#/components/requestBodies/knn.search_models'
responses:
'200':
$ref: '#/components/responses/knn.search_models@200'
/_plugins/_knn/models/_train:
post:
operationId: knn.train_model.0
x-operation-group: knn.train_model
x-version-added: '1.0'
description: Create and train a model that can be used for initializing k-NN native library indexes during indexing.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#train-model
parameters:
- $ref: '#/components/parameters/knn.train_model::query.preference'
requestBody:
$ref: '#/components/requestBodies/knn.train_model'
responses:
'200':
$ref: '#/components/responses/knn.train_model@200'
/_plugins/_knn/models/{model_id}:
get:
operationId: knn.get_model.0
x-operation-group: knn.get_model
x-version-added: '1.0'
description: Used to retrieve information about models present in the cluster.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#get-model
parameters:
- $ref: '#/components/parameters/knn.get_model::path.model_id'
responses:
'200':
$ref: '#/components/responses/knn.get_model@200'
delete:
operationId: knn.delete_model.0
x-operation-group: knn.delete_model
x-version-added: '1.0'
description: Used to delete a particular model in the cluster.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#delete-model
parameters:
- $ref: '#/components/parameters/knn.delete_model::path.model_id'
responses:
'200':
$ref: '#/components/responses/knn.delete_model@200'
/_plugins/_knn/models/{model_id}/_train:
post:
operationId: knn.train_model.1
x-operation-group: knn.train_model
x-version-added: '1.0'
description: Create and train a model that can be used for initializing k-NN native library indexes during indexing.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#train-model
parameters:
- $ref: '#/components/parameters/knn.train_model::path.model_id'
- $ref: '#/components/parameters/knn.train_model::query.preference'
requestBody:
$ref: '#/components/requestBodies/knn.train_model'
responses:
'200':
$ref: '#/components/responses/knn.train_model@200'
/_plugins/_knn/stats:
get:
operationId: knn.stats.0
x-operation-group: knn.stats
x-version-added: '1.0'
description: Provides information about the current status of the k-NN plugin.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
parameters:
- $ref: '#/components/parameters/knn.stats::query.timeout'
responses:
'200':
$ref: '#/components/responses/knn.stats@200'
/_plugins/_knn/stats/{stat}:
get:
operationId: knn.stats.1
x-operation-group: knn.stats
x-version-added: '1.0'
description: Provides information about the current status of the k-NN plugin.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
parameters:
- $ref: '#/components/parameters/knn.stats::path.stat'
- $ref: '#/components/parameters/knn.stats::query.timeout'
responses:
'200':
$ref: '#/components/responses/knn.stats@200'
/_plugins/_knn/warmup/{index}:
get:
operationId: knn.warmup.0
x-operation-group: knn.warmup
x-version-added: '1.0'
description: Preloads native library files into memory, reducing initial search latency for specified indexes.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#warmup-operation
parameters:
- $ref: '#/components/parameters/knn.warmup::path.index'
responses:
'200':
$ref: '#/components/responses/knn.warmup@200'
/_plugins/_knn/{node_id}/stats:
get:
operationId: knn.stats.2
x-operation-group: knn.stats
x-version-added: '1.0'
description: Provides information about the current status of the k-NN plugin.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
parameters:
- $ref: '#/components/parameters/knn.stats::path.node_id'
- $ref: '#/components/parameters/knn.stats::query.timeout'
responses:
'200':
$ref: '#/components/responses/knn.stats@200'
/_plugins/_knn/{node_id}/stats/{stat}:
get:
operationId: knn.stats.3
x-operation-group: knn.stats
x-version-added: '1.0'
description: Provides information about the current status of the k-NN plugin.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
parameters:
- $ref: '#/components/parameters/knn.stats::path.node_id'
- $ref: '#/components/parameters/knn.stats::path.stat'
- $ref: '#/components/parameters/knn.stats::query.timeout'
responses:
'200':
$ref: '#/components/responses/knn.stats@200'
components:
requestBodies:
knn.search_models:
content:
application/json:
schema:
type: object
knn.train_model:
content:
application/json:
schema:
$ref: '../schemas/knn._common.yaml#/components/schemas/TrainedModel'
responses:
knn.delete_model@200:
content:
application/json:
schema:
$ref: '../schemas/knn._common.yaml#/components/schemas/DeletedModel'
knn.get_model@200:
content:
application/json:
schema:
type: object
knn.search_models@200:
content:
application/json:
schema:
$ref: '../schemas/_core.search.yaml#/components/schemas/ResponseBody'
knn.stats@200:
content:
application/json:
schema:
$ref: '../schemas/knn._common.yaml#/components/schemas/Stats'
knn.train_model@200:
content:
application/json:
schema:
type: object
properties:
model_id:
type: string
required:
- model_id
knn.warmup@200:
content:
application/json:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/ShardsOperationResponseBase'
parameters:
knn.delete_model::path.model_id:
name: model_id
in: path
description: The id of the model.
schema:
type: string
description: The id of the model.
required: true
knn.get_model::path.model_id:
name: model_id
in: path
description: The id of the model.
schema:
type: string
description: The id of the model.
required: true
knn.search_models::query._source:
name: _source
in: query
description: Set to `true` or `false` to return the `_source` field or not, or a list of fields to return.
style: form
schema:
type: array
items:
type: string
description: Set to `true` or `false` to return the `_source` field or not, or a list of fields to return.
explode: true
knn.search_models::query._source_excludes:
name: _source_excludes
in: query
description: List of fields to exclude from the returned `_source` field.
style: form
schema:
type: array
items:
type: string
description: List of fields to exclude from the returned `_source` field.
explode: true
knn.search_models::query._source_includes:
name: _source_includes
in: query
description: List of fields to extract and return from the `_source` field.
style: form
schema:
type: array
items:
type: string
description: List of fields to extract and return from the `_source` field.
explode: true
knn.search_models::query.allow_no_indices:
name: allow_no_indices
in: query
description: Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes `_all` string or when no indexes have been specified).
schema:
type: boolean
description: Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes `_all` string or when no indexes have been specified).
knn.search_models::query.allow_partial_search_results:
name: allow_partial_search_results
in: query
description: Indicate if an error should be returned if there is a partial search failure or timeout.
schema:
type: boolean
default: true
description: Indicate if an error should be returned if there is a partial search failure or timeout.
knn.search_models::query.analyze_wildcard:
name: analyze_wildcard
in: query
description: Specify whether wildcard and prefix queries should be analyzed.
schema:
type: boolean
default: false
description: Specify whether wildcard and prefix queries should be analyzed.
knn.search_models::query.analyzer:
name: analyzer
in: query
description: The analyzer to use for the query string.
schema:
type: string
description: The analyzer to use for the query string.
knn.search_models::query.batched_reduce_size:
name: batched_reduce_size
in: query
description: The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large.
schema:
type: integer
default: 512
description: The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large.
format: int32
knn.search_models::query.ccs_minimize_roundtrips:
name: ccs_minimize_roundtrips
in: query
description: Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
schema:
type: boolean
default: true
description: Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
knn.search_models::query.default_operator:
name: default_operator
in: query
description: The default operator for query string query (AND or OR).
schema:
$ref: '../schemas/knn._common.yaml#/components/schemas/DefaultOperator'
knn.search_models::query.df:
name: df
in: query
description: The field to use as default where no field prefix is given in the query string.
schema:
type: string
description: The field to use as default where no field prefix is given in the query string.
knn.search_models::query.docvalue_fields:
name: docvalue_fields
in: query
description: Comma-separated list of fields to return as the docvalue representation of a field for each hit.
style: form
schema:
type: array
items:
type: string
description: Comma-separated list of fields to return as the docvalue representation of a field for each hit.
explode: true
knn.search_models::query.expand_wildcards:
name: expand_wildcards
in: query
description: Whether to expand wildcard expression to concrete indexes that are open, closed or both.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/ExpandWildcards'
knn.search_models::query.explain:
name: explain
in: query
description: Specify whether to return detailed information about score computation as part of a hit.
schema:
type: boolean
description: Specify whether to return detailed information about score computation as part of a hit.
knn.search_models::query.from:
name: from
in: query
description: Starting offset.
schema:
type: integer
default: 0
description: Starting offset.
format: int32
knn.search_models::query.ignore_throttled:
name: ignore_throttled
in: query
description: Whether specified concrete, expanded or aliased indexes should be ignored when throttled.
schema:
type: boolean
description: Whether specified concrete, expanded or aliased indexes should be ignored when throttled.
knn.search_models::query.ignore_unavailable:
name: ignore_unavailable
in: query
description: Whether specified concrete indexes should be ignored when unavailable (missing or closed).
schema:
type: boolean
description: Whether specified concrete indexes should be ignored when unavailable (missing or closed).
knn.search_models::query.lenient:
name: lenient
in: query
description: Specify whether format-based query failures (such as providing text to a numeric field) should be ignored.
schema:
type: boolean
description: Specify whether format-based query failures (such as providing text to a numeric field) should be ignored.
knn.search_models::query.max_concurrent_shard_requests:
name: max_concurrent_shard_requests
in: query
description: The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests.
schema:
type: integer
default: 5
description: The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests.
format: int32
knn.search_models::query.pre_filter_shard_size:
name: pre_filter_shard_size
in: query
description: Threshold that enforces a pre-filter round-trip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter round-trip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method, that is if date filters are mandatory to match but the shard bounds and the query are disjoint.
schema:
type: integer
description: Threshold that enforces a pre-filter round-trip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter round-trip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method, that is if date filters are mandatory to match but the shard bounds and the query are disjoint.
format: int32
knn.search_models::query.preference:
name: preference
in: query
description: Specify the node or shard the operation should be performed on.
schema:
type: string
default: random
description: Specify the node or shard the operation should be performed on.
knn.search_models::query.q:
name: q
in: query
description: Query in the Lucene query string syntax.
schema:
type: string
description: Query in the Lucene query string syntax.
knn.search_models::query.request_cache:
name: request_cache
in: query
description: Specify if request cache should be used for this request or not, defaults to index level setting.
schema:
type: boolean
description: Specify if request cache should be used for this request or not, defaults to index level setting.
knn.search_models::query.rest_total_hits_as_int:
name: rest_total_hits_as_int
in: query
description: Indicates whether `hits.total` should be rendered as an integer or an object in the rest search response.
schema:
type: boolean
default: false
description: Indicates whether `hits.total` should be rendered as an integer or an object in the rest search response.
knn.search_models::query.routing:
name: routing
in: query
description: Comma-separated list of specific routing values.
style: form
schema:
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
explode: true
knn.search_models::query.scroll:
name: scroll
in: query
description: Specify how long a consistent view of the index should be maintained for scrolled search.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
knn.search_models::query.search_type:
name: search_type
in: query
description: Search operation type.
schema:
$ref: '../schemas/knn._common.yaml#/components/schemas/SearchType'
knn.search_models::query.seq_no_primary_term:
name: seq_no_primary_term
in: query
description: Specify whether to return sequence number and primary term of the last modification of each hit.
schema:
type: boolean
description: Specify whether to return sequence number and primary term of the last modification of each hit.
knn.search_models::query.size:
name: size
in: query
description: Number of hits to return.
schema:
type: integer
default: 10
description: Number of hits to return.
format: int32
knn.search_models::query.sort:
name: sort
in: query
description: Comma-separated list of <field>:<direction> pairs.
style: form
schema:
type: array
items:
type: string
description: Comma-separated list of <field>:<direction> pairs.
explode: true
knn.search_models::query.stats:
name: stats
in: query
description: Specific 'tag' of the request for logging and statistical purposes.
style: form
schema:
type: array
items:
type: string
description: Specific 'tag' of the request for logging and statistical purposes.
explode: true
knn.search_models::query.stored_fields:
name: stored_fields
in: query
description: Comma-separated list of stored fields to return.
style: form
schema:
type: array
items:
type: string
description: Comma-separated list of stored fields to return.
explode: true
knn.search_models::query.suggest_field:
name: suggest_field
in: query
description: Specify which field to use for suggestions.
schema:
type: string
description: Specify which field to use for suggestions.
knn.search_models::query.suggest_mode:
name: suggest_mode
in: query
description: Specify suggest mode.
schema:
$ref: '../schemas/knn._common.yaml#/components/schemas/SuggestMode'
knn.search_models::query.suggest_size:
name: suggest_size
in: query
description: How many suggestions to return in response.
schema:
type: integer
description: How many suggestions to return in response.
format: int32
knn.search_models::query.suggest_text:
name: suggest_text
in: query
description: The source text for which the suggestions should be returned.
schema:
type: string
description: The source text for which the suggestions should be returned.
knn.search_models::query.terminate_after:
name: terminate_after
in: query
description: The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
schema:
type: integer
description: The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
format: int32
knn.search_models::query.timeout:
name: timeout
in: query
description: Operation timeout.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
knn.search_models::query.track_scores:
name: track_scores
in: query
description: Whether to calculate and return scores even if they are not used for sorting.
schema:
type: boolean
description: Whether to calculate and return scores even if they are not used for sorting.
knn.search_models::query.track_total_hits:
name: track_total_hits
in: query
description: Indicate if the number of documents that match the query should be tracked.
schema:
type: boolean
description: Indicate if the number of documents that match the query should be tracked.
knn.search_models::query.typed_keys:
name: typed_keys
in: query
description: Specify whether aggregation and suggester names should be prefixed by their respective types in the response.
schema:
type: boolean
description: Specify whether aggregation and suggester names should be prefixed by their respective types in the response.
knn.search_models::query.version:
name: version
in: query
description: Whether to return document version as part of a hit.
schema:
type: boolean
description: Whether to return document version as part of a hit.
knn.stats::path.node_id:
name: node_id
in: path
description: Comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes.
schema:
type: array
description: Comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes.
items:
type: string
required: true
knn.stats::path.stat:
name: stat
in: path
description: Comma-separated list of stats to retrieve; use `_all` or empty string to retrieve all stats.
schema:
type: array
description: Comma-separated list of stats to retrieve; use `_all` or empty string to retrieve all stats.
items:
type: string
enum:
- cache_capacity_reached
- circuit_breaker_triggered
- eviction_count
- faiss_initialized
- graph_index_errors
- graph_index_requests
- graph_memory_usage
- graph_memory_usage_percentage
- graph_query_errors
- graph_query_requests
- graph_stats
- hit_count
- indexing_from_model_degraded
- indices_in_cache
- knn_query_requests
- knn_query_with_filter_requests
- load_exception_count
- load_success_count
- lucene_initialized
- max_distance_query_requests
- max_distance_query_with_filter_requests
- min_score_query_requests
- min_score_query_with_filter_requests
- miss_count
- model_index_status
- nmslib_initialized
- script_compilation_errors
- script_compilations
- script_query_errors
- script_query_requests
- total_load_time
- training_errors
- training_memory_usage
- training_memory_usage_percentage
- training_requests
required: true
knn.stats::query.timeout:
name: timeout
in: query
description: Operation timeout.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
knn.train_model::path.model_id:
name: model_id
in: path
description: The id of the model.
schema:
type: string
description: The id of the model.
required: true
knn.train_model::query.preference:
name: preference
in: query
description: Preferred node to execute training.
schema:
type: string
description: Preferred node to execute training.
knn.warmup::path.index:
name: index
in: path
description: Comma-separated list of indexes; use `_all` or empty string to perform the operation on all indexes.
schema:
type: array
description: Comma-separated list of indexes; use `_all` or empty string to perform the operation on all indexes.
items:
type: string
required: true