File tree Expand file tree Collapse file tree 4 files changed +37
-23
lines changed Expand file tree Collapse file tree 4 files changed +37
-23
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
114
114
- Fixed GeoDistanceSort schema ([ #805 ] ( https://github.com/opensearch-project/opensearch-api-specification/pull/805 ) )
115
115
- Fixed Aggregation schemas ([ #801 ] ( https://github.com/opensearch-project/opensearch-api-specification/pull/801 ) )
116
116
- Fixed FilterQueryRequestProcessor to use correct query type ([ #821 ] ( https://github.com/opensearch-project/opensearch-api-specification/pull/821 ) )
117
+ - Fixed ` knn.train_model ` 's request body ` method ` field to accept an object rather than a string ([ #814 ] ( https://github.com/opensearch-project/opensearch-api-specification/pull/814 ) )
117
118
118
119
### Changed
119
120
- Changed ` tasks._common:TaskInfo ` and ` tasks._common:TaskGroup ` to be composed of a ` tasks._common:TaskInfoBase ` ([ #683 ] ( https://github.com/opensearch-project/opensearch-api-specification/pull/683 ) )
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ components:
390
390
in : query
391
391
description : The default operator for query string query (AND or OR).
392
392
schema :
393
- $ref : ' ../schemas/knn. _common.yaml#/components/schemas/DefaultOperator '
393
+ $ref : ' ../schemas/_common.query_dsl. yaml#/components/schemas/Operator '
394
394
knn.search_models::query.df :
395
395
name : df
396
396
in : query
@@ -518,7 +518,7 @@ components:
518
518
in : query
519
519
description : Search operation type.
520
520
schema :
521
- $ref : ' ../schemas/knn. _common.yaml#/components/schemas/SearchType'
521
+ $ref : ' ../schemas/_common.yaml#/components/schemas/SearchType'
522
522
knn.search_models::query.seq_no_primary_term :
523
523
name : seq_no_primary_term
524
524
in : query
@@ -580,7 +580,7 @@ components:
580
580
in : query
581
581
description : Specify suggest mode.
582
582
schema :
583
- $ref : ' ../schemas/knn. _common.yaml#/components/schemas/SuggestMode'
583
+ $ref : ' ../schemas/_common.yaml#/components/schemas/SuggestMode'
584
584
knn.search_models::query.suggest_size :
585
585
name : suggest_size
586
586
in : query
Original file line number Diff line number Diff line change 6
6
paths : {}
7
7
components :
8
8
schemas :
9
- DefaultOperator :
10
- type : string
11
- description : The default operator for query string query (AND or OR).
12
- enum :
13
- - AND
14
- - OR
15
- SearchType :
16
- type : string
17
- description : Search operation type.
18
- enum :
19
- - dfs_query_then_fetch
20
- - query_then_fetch
21
- SuggestMode :
22
- type : string
23
- description : Specify suggest mode.
24
- enum :
25
- - always
26
- - missing
27
- - popular
28
9
Stats :
29
10
type : object
30
11
properties :
@@ -143,6 +124,20 @@ components:
143
124
$ref : ' _common.yaml#/components/schemas/ByteCount'
144
125
current_size_in_bytes :
145
126
$ref : ' _common.yaml#/components/schemas/ByteCount'
127
+ KnnMethod :
128
+ type : object
129
+ properties :
130
+ name :
131
+ type : string
132
+ space_type :
133
+ type : string
134
+ engine :
135
+ type : string
136
+ parameters :
137
+ type : object
138
+ additionalProperties : true
139
+ required :
140
+ - name
146
141
TrainedModel :
147
142
type : object
148
143
properties :
@@ -166,7 +161,7 @@ components:
166
161
compression_level :
167
162
type : string
168
163
method :
169
- type : string
164
+ $ref : ' #/components/schemas/KnnMethod '
170
165
spaceType :
171
166
type : string
172
167
required :
Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ chapters:
70
70
mode : on_disk
71
71
compression_level : 32x
72
72
spaceType : l2
73
+ method :
74
+ name : ivf
75
+ engine : faiss
76
+ parameters :
77
+ nlist : 9
78
+ encoder :
79
+ name : pq
80
+ parameters :
81
+ code_size : 3
73
82
response :
74
83
status : 200
75
84
output :
@@ -104,5 +113,14 @@ chapters:
104
113
mode : on_disk
105
114
compression_level : 32x
106
115
spaceType : l2
116
+ method :
117
+ name : ivf
118
+ engine : faiss
119
+ parameters :
120
+ nlist : 9
121
+ encoder :
122
+ name : pq
123
+ parameters :
124
+ code_size : 3
107
125
response :
108
126
status : 200
You can’t perform that action at this time.
0 commit comments