@azure/search-documents 12.1.0-beta.2 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +519 -2244
- package/dist/index.js.map +1 -1
- package/dist-esm/src/errorModels.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +7 -209
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +42 -315
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +0 -42
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +0 -4
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js +1 -1
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +100 -150
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +129 -687
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/models/parameters.js +1 -51
- package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/service/operations/dataSources.js +1 -4
- package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
- package/dist-esm/src/generated/service/operations/index.js +0 -1
- package/dist-esm/src/generated/service/operations/index.js.map +1 -1
- package/dist-esm/src/generated/service/operations/indexers.js +1 -29
- package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operations/skillsets.js +1 -30
- package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/index.js +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +2 -3
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/index.js +3 -3
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/searchClient.js +3 -10
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +3 -152
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +0 -47
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +39 -139
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +4 -3
- package/types/search-documents.d.ts +285 -1589
- package/dist-esm/src/generated/service/operations/aliases.js +0 -160
- package/dist-esm/src/generated/service/operations/aliases.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +0 -1
- package/dist-esm/src/generatedStringLiteralUnions.js +0 -4
- package/dist-esm/src/generatedStringLiteralUnions.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -42,12 +42,12 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
|
42
42
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
43
43
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
44
44
|
*/
|
|
45
|
-
/** Known values of {@link
|
|
46
|
-
var
|
|
47
|
-
(function (
|
|
48
|
-
/** Api Version '2024-
|
|
49
|
-
|
|
50
|
-
})(
|
|
45
|
+
/** Known values of {@link ApiVersion20240701} that the service accepts. */
|
|
46
|
+
var KnownApiVersion20240701$1;
|
|
47
|
+
(function (KnownApiVersion20240701) {
|
|
48
|
+
/** Api Version '2024-07-01' */
|
|
49
|
+
KnownApiVersion20240701["TwoThousandTwentyFour0701"] = "2024-07-01";
|
|
50
|
+
})(KnownApiVersion20240701$1 || (KnownApiVersion20240701$1 = {}));
|
|
51
51
|
/** Known values of {@link SemanticErrorMode} that the service accepts. */
|
|
52
52
|
exports.KnownSemanticErrorMode = void 0;
|
|
53
53
|
(function (KnownSemanticErrorMode) {
|
|
@@ -72,178 +72,6 @@ var KnownQueryCaptionType;
|
|
|
72
72
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
73
73
|
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
74
74
|
})(KnownQueryCaptionType || (KnownQueryCaptionType = {}));
|
|
75
|
-
/** Known values of {@link QueryDebugMode} that the service accepts. */
|
|
76
|
-
exports.KnownQueryDebugMode = void 0;
|
|
77
|
-
(function (KnownQueryDebugMode) {
|
|
78
|
-
/** No query debugging information will be returned. */
|
|
79
|
-
KnownQueryDebugMode["Disabled"] = "disabled";
|
|
80
|
-
/** Allows the user to further explore their reranked results. */
|
|
81
|
-
KnownQueryDebugMode["Semantic"] = "semantic";
|
|
82
|
-
})(exports.KnownQueryDebugMode || (exports.KnownQueryDebugMode = {}));
|
|
83
|
-
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
84
|
-
exports.KnownQueryLanguage = void 0;
|
|
85
|
-
(function (KnownQueryLanguage) {
|
|
86
|
-
/** Query language not specified. */
|
|
87
|
-
KnownQueryLanguage["None"] = "none";
|
|
88
|
-
/** Query language value for English (United States). */
|
|
89
|
-
KnownQueryLanguage["EnUs"] = "en-us";
|
|
90
|
-
/** Query language value for English (Great Britain). */
|
|
91
|
-
KnownQueryLanguage["EnGb"] = "en-gb";
|
|
92
|
-
/** Query language value for English (India). */
|
|
93
|
-
KnownQueryLanguage["EnIn"] = "en-in";
|
|
94
|
-
/** Query language value for English (Canada). */
|
|
95
|
-
KnownQueryLanguage["EnCa"] = "en-ca";
|
|
96
|
-
/** Query language value for English (Australia). */
|
|
97
|
-
KnownQueryLanguage["EnAu"] = "en-au";
|
|
98
|
-
/** Query language value for French (France). */
|
|
99
|
-
KnownQueryLanguage["FrFr"] = "fr-fr";
|
|
100
|
-
/** Query language value for French (Canada). */
|
|
101
|
-
KnownQueryLanguage["FrCa"] = "fr-ca";
|
|
102
|
-
/** Query language value for German (Germany). */
|
|
103
|
-
KnownQueryLanguage["DeDe"] = "de-de";
|
|
104
|
-
/** Query language value for Spanish (Spain). */
|
|
105
|
-
KnownQueryLanguage["EsEs"] = "es-es";
|
|
106
|
-
/** Query language value for Spanish (Mexico). */
|
|
107
|
-
KnownQueryLanguage["EsMx"] = "es-mx";
|
|
108
|
-
/** Query language value for Chinese (China). */
|
|
109
|
-
KnownQueryLanguage["ZhCn"] = "zh-cn";
|
|
110
|
-
/** Query language value for Chinese (Taiwan). */
|
|
111
|
-
KnownQueryLanguage["ZhTw"] = "zh-tw";
|
|
112
|
-
/** Query language value for Portuguese (Brazil). */
|
|
113
|
-
KnownQueryLanguage["PtBr"] = "pt-br";
|
|
114
|
-
/** Query language value for Portuguese (Portugal). */
|
|
115
|
-
KnownQueryLanguage["PtPt"] = "pt-pt";
|
|
116
|
-
/** Query language value for Italian (Italy). */
|
|
117
|
-
KnownQueryLanguage["ItIt"] = "it-it";
|
|
118
|
-
/** Query language value for Japanese (Japan). */
|
|
119
|
-
KnownQueryLanguage["JaJp"] = "ja-jp";
|
|
120
|
-
/** Query language value for Korean (Korea). */
|
|
121
|
-
KnownQueryLanguage["KoKr"] = "ko-kr";
|
|
122
|
-
/** Query language value for Russian (Russia). */
|
|
123
|
-
KnownQueryLanguage["RuRu"] = "ru-ru";
|
|
124
|
-
/** Query language value for Czech (Czech Republic). */
|
|
125
|
-
KnownQueryLanguage["CsCz"] = "cs-cz";
|
|
126
|
-
/** Query language value for Dutch (Belgium). */
|
|
127
|
-
KnownQueryLanguage["NlBe"] = "nl-be";
|
|
128
|
-
/** Query language value for Dutch (Netherlands). */
|
|
129
|
-
KnownQueryLanguage["NlNl"] = "nl-nl";
|
|
130
|
-
/** Query language value for Hungarian (Hungary). */
|
|
131
|
-
KnownQueryLanguage["HuHu"] = "hu-hu";
|
|
132
|
-
/** Query language value for Polish (Poland). */
|
|
133
|
-
KnownQueryLanguage["PlPl"] = "pl-pl";
|
|
134
|
-
/** Query language value for Swedish (Sweden). */
|
|
135
|
-
KnownQueryLanguage["SvSe"] = "sv-se";
|
|
136
|
-
/** Query language value for Turkish (Turkey). */
|
|
137
|
-
KnownQueryLanguage["TrTr"] = "tr-tr";
|
|
138
|
-
/** Query language value for Hindi (India). */
|
|
139
|
-
KnownQueryLanguage["HiIn"] = "hi-in";
|
|
140
|
-
/** Query language value for Arabic (Saudi Arabia). */
|
|
141
|
-
KnownQueryLanguage["ArSa"] = "ar-sa";
|
|
142
|
-
/** Query language value for Arabic (Egypt). */
|
|
143
|
-
KnownQueryLanguage["ArEg"] = "ar-eg";
|
|
144
|
-
/** Query language value for Arabic (Morocco). */
|
|
145
|
-
KnownQueryLanguage["ArMa"] = "ar-ma";
|
|
146
|
-
/** Query language value for Arabic (Kuwait). */
|
|
147
|
-
KnownQueryLanguage["ArKw"] = "ar-kw";
|
|
148
|
-
/** Query language value for Arabic (Jordan). */
|
|
149
|
-
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
150
|
-
/** Query language value for Danish (Denmark). */
|
|
151
|
-
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
152
|
-
/** Query language value for Norwegian (Norway). */
|
|
153
|
-
KnownQueryLanguage["NoNo"] = "no-no";
|
|
154
|
-
/** Query language value for Bulgarian (Bulgaria). */
|
|
155
|
-
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
156
|
-
/** Query language value for Croatian (Croatia). */
|
|
157
|
-
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
158
|
-
/** Query language value for Croatian (Bosnia and Herzegovina). */
|
|
159
|
-
KnownQueryLanguage["HrBa"] = "hr-ba";
|
|
160
|
-
/** Query language value for Malay (Malaysia). */
|
|
161
|
-
KnownQueryLanguage["MsMy"] = "ms-my";
|
|
162
|
-
/** Query language value for Malay (Brunei Darussalam). */
|
|
163
|
-
KnownQueryLanguage["MsBn"] = "ms-bn";
|
|
164
|
-
/** Query language value for Slovenian (Slovenia). */
|
|
165
|
-
KnownQueryLanguage["SlSl"] = "sl-sl";
|
|
166
|
-
/** Query language value for Tamil (India). */
|
|
167
|
-
KnownQueryLanguage["TaIn"] = "ta-in";
|
|
168
|
-
/** Query language value for Vietnamese (Viet Nam). */
|
|
169
|
-
KnownQueryLanguage["ViVn"] = "vi-vn";
|
|
170
|
-
/** Query language value for Greek (Greece). */
|
|
171
|
-
KnownQueryLanguage["ElGr"] = "el-gr";
|
|
172
|
-
/** Query language value for Romanian (Romania). */
|
|
173
|
-
KnownQueryLanguage["RoRo"] = "ro-ro";
|
|
174
|
-
/** Query language value for Icelandic (Iceland). */
|
|
175
|
-
KnownQueryLanguage["IsIs"] = "is-is";
|
|
176
|
-
/** Query language value for Indonesian (Indonesia). */
|
|
177
|
-
KnownQueryLanguage["IdId"] = "id-id";
|
|
178
|
-
/** Query language value for Thai (Thailand). */
|
|
179
|
-
KnownQueryLanguage["ThTh"] = "th-th";
|
|
180
|
-
/** Query language value for Lithuanian (Lithuania). */
|
|
181
|
-
KnownQueryLanguage["LtLt"] = "lt-lt";
|
|
182
|
-
/** Query language value for Ukrainian (Ukraine). */
|
|
183
|
-
KnownQueryLanguage["UkUa"] = "uk-ua";
|
|
184
|
-
/** Query language value for Latvian (Latvia). */
|
|
185
|
-
KnownQueryLanguage["LvLv"] = "lv-lv";
|
|
186
|
-
/** Query language value for Estonian (Estonia). */
|
|
187
|
-
KnownQueryLanguage["EtEe"] = "et-ee";
|
|
188
|
-
/** Query language value for Catalan. */
|
|
189
|
-
KnownQueryLanguage["CaEs"] = "ca-es";
|
|
190
|
-
/** Query language value for Finnish (Finland). */
|
|
191
|
-
KnownQueryLanguage["FiFi"] = "fi-fi";
|
|
192
|
-
/** Query language value for Serbian (Bosnia and Herzegovina). */
|
|
193
|
-
KnownQueryLanguage["SrBa"] = "sr-ba";
|
|
194
|
-
/** Query language value for Serbian (Montenegro). */
|
|
195
|
-
KnownQueryLanguage["SrMe"] = "sr-me";
|
|
196
|
-
/** Query language value for Serbian (Serbia). */
|
|
197
|
-
KnownQueryLanguage["SrRs"] = "sr-rs";
|
|
198
|
-
/** Query language value for Slovak (Slovakia). */
|
|
199
|
-
KnownQueryLanguage["SkSk"] = "sk-sk";
|
|
200
|
-
/** Query language value for Norwegian (Norway). */
|
|
201
|
-
KnownQueryLanguage["NbNo"] = "nb-no";
|
|
202
|
-
/** Query language value for Armenian (Armenia). */
|
|
203
|
-
KnownQueryLanguage["HyAm"] = "hy-am";
|
|
204
|
-
/** Query language value for Bengali (India). */
|
|
205
|
-
KnownQueryLanguage["BnIn"] = "bn-in";
|
|
206
|
-
/** Query language value for Basque. */
|
|
207
|
-
KnownQueryLanguage["EuEs"] = "eu-es";
|
|
208
|
-
/** Query language value for Galician. */
|
|
209
|
-
KnownQueryLanguage["GlEs"] = "gl-es";
|
|
210
|
-
/** Query language value for Gujarati (India). */
|
|
211
|
-
KnownQueryLanguage["GuIn"] = "gu-in";
|
|
212
|
-
/** Query language value for Hebrew (Israel). */
|
|
213
|
-
KnownQueryLanguage["HeIl"] = "he-il";
|
|
214
|
-
/** Query language value for Irish (Ireland). */
|
|
215
|
-
KnownQueryLanguage["GaIe"] = "ga-ie";
|
|
216
|
-
/** Query language value for Kannada (India). */
|
|
217
|
-
KnownQueryLanguage["KnIn"] = "kn-in";
|
|
218
|
-
/** Query language value for Malayalam (India). */
|
|
219
|
-
KnownQueryLanguage["MlIn"] = "ml-in";
|
|
220
|
-
/** Query language value for Marathi (India). */
|
|
221
|
-
KnownQueryLanguage["MrIn"] = "mr-in";
|
|
222
|
-
/** Query language value for Persian (U.A.E.). */
|
|
223
|
-
KnownQueryLanguage["FaAe"] = "fa-ae";
|
|
224
|
-
/** Query language value for Punjabi (India). */
|
|
225
|
-
KnownQueryLanguage["PaIn"] = "pa-in";
|
|
226
|
-
/** Query language value for Telugu (India). */
|
|
227
|
-
KnownQueryLanguage["TeIn"] = "te-in";
|
|
228
|
-
/** Query language value for Urdu (Pakistan). */
|
|
229
|
-
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
230
|
-
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
231
|
-
/** Known values of {@link Speller} that the service accepts. */
|
|
232
|
-
exports.KnownSpeller = void 0;
|
|
233
|
-
(function (KnownSpeller) {
|
|
234
|
-
/** Speller not enabled. */
|
|
235
|
-
KnownSpeller["None"] = "none";
|
|
236
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
237
|
-
KnownSpeller["Lexicon"] = "lexicon";
|
|
238
|
-
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
239
|
-
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
240
|
-
exports.KnownQuerySpellerType = void 0;
|
|
241
|
-
(function (KnownQuerySpellerType) {
|
|
242
|
-
/** Speller not enabled. */
|
|
243
|
-
KnownQuerySpellerType["None"] = "none";
|
|
244
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
245
|
-
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
246
|
-
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
247
75
|
/** Known values of {@link VectorQueryKind} that the service accepts. */
|
|
248
76
|
exports.KnownVectorQueryKind = void 0;
|
|
249
77
|
(function (KnownVectorQueryKind) {
|
|
@@ -251,39 +79,19 @@ exports.KnownVectorQueryKind = void 0;
|
|
|
251
79
|
KnownVectorQueryKind["Vector"] = "vector";
|
|
252
80
|
/** Vector query where a text value that needs to be vectorized is provided. */
|
|
253
81
|
KnownVectorQueryKind["Text"] = "text";
|
|
254
|
-
/** Vector query where an url that represents an image value that needs to be vectorized is provided. */
|
|
255
|
-
KnownVectorQueryKind["ImageUrl"] = "imageUrl";
|
|
256
|
-
/** Vector query where a base 64 encoded binary of an image that needs to be vectorized is provided. */
|
|
257
|
-
KnownVectorQueryKind["ImageBinary"] = "imageBinary";
|
|
258
82
|
})(exports.KnownVectorQueryKind || (exports.KnownVectorQueryKind = {}));
|
|
259
|
-
/** Known values of {@link VectorThresholdKind} that the service accepts. */
|
|
260
|
-
exports.KnownVectorThresholdKind = void 0;
|
|
261
|
-
(function (KnownVectorThresholdKind) {
|
|
262
|
-
/** The results of the vector query will be filtered based on the vector similarity metric. Note this is the canonical definition of similarity metric, not the 'distance' version. The threshold direction (larger or smaller) will be chosen automatically according to the metric used by the field. */
|
|
263
|
-
KnownVectorThresholdKind["VectorSimilarity"] = "vectorSimilarity";
|
|
264
|
-
/** The results of the vector query will filter based on the '@search.score' value. Note this is the @search.score returned as part of the search response. The threshold direction will be chosen for higher @search.score. */
|
|
265
|
-
KnownVectorThresholdKind["SearchScore"] = "searchScore";
|
|
266
|
-
})(exports.KnownVectorThresholdKind || (exports.KnownVectorThresholdKind = {}));
|
|
267
83
|
/** Known values of {@link VectorFilterMode} that the service accepts. */
|
|
268
|
-
|
|
84
|
+
exports.KnownVectorFilterMode = void 0;
|
|
269
85
|
(function (KnownVectorFilterMode) {
|
|
270
86
|
/** The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. */
|
|
271
87
|
KnownVectorFilterMode["PostFilter"] = "postFilter";
|
|
272
88
|
/** The filter will be applied before the search query. */
|
|
273
89
|
KnownVectorFilterMode["PreFilter"] = "preFilter";
|
|
274
|
-
})(KnownVectorFilterMode || (KnownVectorFilterMode = {}));
|
|
275
|
-
/** Known values of {@link HybridCountAndFacetMode} that the service accepts. */
|
|
276
|
-
exports.KnownHybridCountAndFacetMode = void 0;
|
|
277
|
-
(function (KnownHybridCountAndFacetMode) {
|
|
278
|
-
/** Only include documents that were matched within the 'maxTextRecallSize' retrieval window when computing 'count' and 'facets'. */
|
|
279
|
-
KnownHybridCountAndFacetMode["CountRetrievableResults"] = "countRetrievableResults";
|
|
280
|
-
/** Include all documents that were matched by the search query when computing 'count' and 'facets', regardless of whether or not those documents are within the 'maxTextRecallSize' retrieval window. */
|
|
281
|
-
KnownHybridCountAndFacetMode["CountAllResults"] = "countAllResults";
|
|
282
|
-
})(exports.KnownHybridCountAndFacetMode || (exports.KnownHybridCountAndFacetMode = {}));
|
|
90
|
+
})(exports.KnownVectorFilterMode || (exports.KnownVectorFilterMode = {}));
|
|
283
91
|
/** Known values of {@link SemanticErrorReason} that the service accepts. */
|
|
284
92
|
exports.KnownSemanticErrorReason = void 0;
|
|
285
93
|
(function (KnownSemanticErrorReason) {
|
|
286
|
-
/** If
|
|
94
|
+
/** If `semanticMaxWaitInMilliseconds` was set and the semantic processing duration exceeded that value. Only the base results were returned. */
|
|
287
95
|
KnownSemanticErrorReason["MaxWaitExceeded"] = "maxWaitExceeded";
|
|
288
96
|
/** The request was throttled. Only the base results were returned. */
|
|
289
97
|
KnownSemanticErrorReason["CapacityOverloaded"] = "capacityOverloaded";
|
|
@@ -298,16 +106,6 @@ exports.KnownSemanticSearchResultsType = void 0;
|
|
|
298
106
|
/** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */
|
|
299
107
|
KnownSemanticSearchResultsType["RerankedResults"] = "rerankedResults";
|
|
300
108
|
})(exports.KnownSemanticSearchResultsType || (exports.KnownSemanticSearchResultsType = {}));
|
|
301
|
-
/** Known values of {@link SemanticFieldState} that the service accepts. */
|
|
302
|
-
exports.KnownSemanticFieldState = void 0;
|
|
303
|
-
(function (KnownSemanticFieldState) {
|
|
304
|
-
/** The field was fully used for semantic enrichment. */
|
|
305
|
-
KnownSemanticFieldState["Used"] = "used";
|
|
306
|
-
/** The field was not used for semantic enrichment. */
|
|
307
|
-
KnownSemanticFieldState["Unused"] = "unused";
|
|
308
|
-
/** The field was partially used for semantic enrichment. */
|
|
309
|
-
KnownSemanticFieldState["Partial"] = "partial";
|
|
310
|
-
})(exports.KnownSemanticFieldState || (exports.KnownSemanticFieldState = {}));
|
|
311
109
|
|
|
312
110
|
/*
|
|
313
111
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -316,12 +114,12 @@ exports.KnownSemanticFieldState = void 0;
|
|
|
316
114
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
317
115
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
318
116
|
*/
|
|
319
|
-
/** Known values of {@link
|
|
320
|
-
var
|
|
321
|
-
(function (
|
|
322
|
-
/** Api Version '2024-
|
|
323
|
-
|
|
324
|
-
})(
|
|
117
|
+
/** Known values of {@link ApiVersion20240701} that the service accepts. */
|
|
118
|
+
var KnownApiVersion20240701;
|
|
119
|
+
(function (KnownApiVersion20240701) {
|
|
120
|
+
/** Api Version '2024-07-01' */
|
|
121
|
+
KnownApiVersion20240701["TwoThousandTwentyFour0701"] = "2024-07-01";
|
|
122
|
+
})(KnownApiVersion20240701 || (KnownApiVersion20240701 = {}));
|
|
325
123
|
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
326
124
|
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
327
125
|
(function (KnownSearchIndexerDataSourceType) {
|
|
@@ -337,8 +135,6 @@ exports.KnownSearchIndexerDataSourceType = void 0;
|
|
|
337
135
|
KnownSearchIndexerDataSourceType["MySql"] = "mysql";
|
|
338
136
|
/** Indicates an ADLS Gen2 datasource. */
|
|
339
137
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
340
|
-
/** Indicates a Microsoft Fabric OneLake datasource. */
|
|
341
|
-
KnownSearchIndexerDataSourceType["OneLake"] = "onelake";
|
|
342
138
|
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
343
139
|
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
344
140
|
exports.KnownBlobIndexerParsingMode = void 0;
|
|
@@ -392,20 +188,6 @@ exports.KnownIndexerExecutionEnvironment = void 0;
|
|
|
392
188
|
/** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
|
|
393
189
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
394
190
|
})(exports.KnownIndexerExecutionEnvironment || (exports.KnownIndexerExecutionEnvironment = {}));
|
|
395
|
-
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
396
|
-
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
397
|
-
(function (KnownIndexerExecutionStatusDetail) {
|
|
398
|
-
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
399
|
-
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
400
|
-
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
401
|
-
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
402
|
-
exports.KnownIndexingMode = void 0;
|
|
403
|
-
(function (KnownIndexingMode) {
|
|
404
|
-
/** The indexer is indexing all documents in the datasource. */
|
|
405
|
-
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
406
|
-
/** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
|
|
407
|
-
KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
|
|
408
|
-
})(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
|
|
409
191
|
/** Known values of {@link IndexProjectionMode} that the service accepts. */
|
|
410
192
|
exports.KnownIndexProjectionMode = void 0;
|
|
411
193
|
(function (KnownIndexProjectionMode) {
|
|
@@ -415,7 +197,7 @@ exports.KnownIndexProjectionMode = void 0;
|
|
|
415
197
|
KnownIndexProjectionMode["IncludeIndexingParentDocuments"] = "includeIndexingParentDocuments";
|
|
416
198
|
})(exports.KnownIndexProjectionMode || (exports.KnownIndexProjectionMode = {}));
|
|
417
199
|
/** Known values of {@link SearchFieldDataType} that the service accepts. */
|
|
418
|
-
|
|
200
|
+
exports.KnownSearchFieldDataType = void 0;
|
|
419
201
|
(function (KnownSearchFieldDataType) {
|
|
420
202
|
/** Indicates that a field contains a string. */
|
|
421
203
|
KnownSearchFieldDataType["String"] = "Edm.String";
|
|
@@ -443,9 +225,9 @@ var KnownSearchFieldDataType;
|
|
|
443
225
|
KnownSearchFieldDataType["SByte"] = "Edm.SByte";
|
|
444
226
|
/** Indicates that a field contains a 8-bit unsigned integer. This is only valid when used with Collection(Edm.Byte). */
|
|
445
227
|
KnownSearchFieldDataType["Byte"] = "Edm.Byte";
|
|
446
|
-
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
228
|
+
})(exports.KnownSearchFieldDataType || (exports.KnownSearchFieldDataType = {}));
|
|
447
229
|
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
448
|
-
|
|
230
|
+
var KnownLexicalAnalyzerName;
|
|
449
231
|
(function (KnownLexicalAnalyzerName) {
|
|
450
232
|
/** Microsoft analyzer for Arabic. */
|
|
451
233
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -621,7 +403,7 @@ exports.KnownLexicalAnalyzerName = void 0;
|
|
|
621
403
|
KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
|
|
622
404
|
/** Standard Lucene analyzer. */
|
|
623
405
|
KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
|
|
624
|
-
/** Standard ASCII Folding Lucene analyzer. See https:\//
|
|
406
|
+
/** Standard ASCII Folding Lucene analyzer. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */
|
|
625
407
|
KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
|
|
626
408
|
/** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordAnalyzer.html */
|
|
627
409
|
KnownLexicalAnalyzerName["Keyword"] = "keyword";
|
|
@@ -633,21 +415,7 @@ exports.KnownLexicalAnalyzerName = void 0;
|
|
|
633
415
|
KnownLexicalAnalyzerName["Stop"] = "stop";
|
|
634
416
|
/** An analyzer that uses the whitespace tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceAnalyzer.html */
|
|
635
417
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
636
|
-
})(
|
|
637
|
-
/** Known values of {@link LexicalNormalizerName} that the service accepts. */
|
|
638
|
-
exports.KnownNormalizerNames = void 0;
|
|
639
|
-
(function (KnownLexicalNormalizerName) {
|
|
640
|
-
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
|
|
641
|
-
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
642
|
-
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
|
|
643
|
-
KnownLexicalNormalizerName["Elision"] = "elision";
|
|
644
|
-
/** Normalizes token text to lowercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
|
|
645
|
-
KnownLexicalNormalizerName["Lowercase"] = "lowercase";
|
|
646
|
-
/** Standard normalizer, which consists of lowercase and asciifolding. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
|
|
647
|
-
KnownLexicalNormalizerName["Standard"] = "standard";
|
|
648
|
-
/** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
649
|
-
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
650
|
-
})(exports.KnownNormalizerNames || (exports.KnownNormalizerNames = {}));
|
|
418
|
+
})(KnownLexicalAnalyzerName || (KnownLexicalAnalyzerName = {}));
|
|
651
419
|
/** Known values of {@link VectorEncodingFormat} that the service accepts. */
|
|
652
420
|
exports.KnownVectorEncodingFormat = void 0;
|
|
653
421
|
(function (KnownVectorEncodingFormat) {
|
|
@@ -655,13 +423,13 @@ exports.KnownVectorEncodingFormat = void 0;
|
|
|
655
423
|
KnownVectorEncodingFormat["PackedBit"] = "packedBit";
|
|
656
424
|
})(exports.KnownVectorEncodingFormat || (exports.KnownVectorEncodingFormat = {}));
|
|
657
425
|
/** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
|
|
658
|
-
|
|
426
|
+
exports.KnownVectorSearchAlgorithmKind = void 0;
|
|
659
427
|
(function (KnownVectorSearchAlgorithmKind) {
|
|
660
428
|
/** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
|
|
661
429
|
KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
|
|
662
430
|
/** Exhaustive KNN algorithm which will perform brute-force search. */
|
|
663
431
|
KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
|
|
664
|
-
})(KnownVectorSearchAlgorithmKind || (KnownVectorSearchAlgorithmKind = {}));
|
|
432
|
+
})(exports.KnownVectorSearchAlgorithmKind || (exports.KnownVectorSearchAlgorithmKind = {}));
|
|
665
433
|
/** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */
|
|
666
434
|
exports.KnownVectorSearchVectorizerKind = void 0;
|
|
667
435
|
(function (KnownVectorSearchVectorizerKind) {
|
|
@@ -669,97 +437,17 @@ exports.KnownVectorSearchVectorizerKind = void 0;
|
|
|
669
437
|
KnownVectorSearchVectorizerKind["AzureOpenAI"] = "azureOpenAI";
|
|
670
438
|
/** Generate embeddings using a custom web endpoint at query time. */
|
|
671
439
|
KnownVectorSearchVectorizerKind["CustomWebApi"] = "customWebApi";
|
|
672
|
-
/** Generate embeddings for an image or text input at query time using the Azure AI Services Vision Vectorize API. */
|
|
673
|
-
KnownVectorSearchVectorizerKind["AIServicesVision"] = "aiServicesVision";
|
|
674
|
-
/** Generate embeddings using an Azure Machine Learning endpoint deployed via the Azure AI Studio Model Catalog at query time. */
|
|
675
|
-
KnownVectorSearchVectorizerKind["AML"] = "aml";
|
|
676
440
|
})(exports.KnownVectorSearchVectorizerKind || (exports.KnownVectorSearchVectorizerKind = {}));
|
|
677
441
|
/** Known values of {@link VectorSearchCompressionKind} that the service accepts. */
|
|
678
442
|
exports.KnownVectorSearchCompressionKind = void 0;
|
|
679
443
|
(function (KnownVectorSearchCompressionKind) {
|
|
680
444
|
/** Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size. */
|
|
681
445
|
KnownVectorSearchCompressionKind["ScalarQuantization"] = "scalarQuantization";
|
|
446
|
+
/** Binary Quantization, a type of compression method. In binary quantization, the original vectors values are compressed to the narrower binary type by discretizing and representing each component of a vector using binary values, thereby reducing the overall data size. */
|
|
447
|
+
KnownVectorSearchCompressionKind["BinaryQuantization"] = "binaryQuantization";
|
|
682
448
|
})(exports.KnownVectorSearchCompressionKind || (exports.KnownVectorSearchCompressionKind = {}));
|
|
683
|
-
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
684
|
-
exports.KnownTokenFilterName = void 0;
|
|
685
|
-
(function (KnownTokenFilterName) {
|
|
686
|
-
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */
|
|
687
|
-
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
688
|
-
/** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */
|
|
689
|
-
KnownTokenFilterName["Apostrophe"] = "apostrophe";
|
|
690
|
-
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
|
|
691
|
-
KnownTokenFilterName["AsciiFolding"] = "asciifolding";
|
|
692
|
-
/** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */
|
|
693
|
-
KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
|
|
694
|
-
/** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */
|
|
695
|
-
KnownTokenFilterName["CjkWidth"] = "cjk_width";
|
|
696
|
-
/** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */
|
|
697
|
-
KnownTokenFilterName["Classic"] = "classic";
|
|
698
|
-
/** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */
|
|
699
|
-
KnownTokenFilterName["CommonGram"] = "common_grams";
|
|
700
|
-
/** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */
|
|
701
|
-
KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
|
|
702
|
-
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
|
|
703
|
-
KnownTokenFilterName["Elision"] = "elision";
|
|
704
|
-
/** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */
|
|
705
|
-
KnownTokenFilterName["GermanNormalization"] = "german_normalization";
|
|
706
|
-
/** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */
|
|
707
|
-
KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
|
|
708
|
-
/** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */
|
|
709
|
-
KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
|
|
710
|
-
/** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */
|
|
711
|
-
KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
|
|
712
|
-
/** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */
|
|
713
|
-
KnownTokenFilterName["KStem"] = "kstem";
|
|
714
|
-
/** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */
|
|
715
|
-
KnownTokenFilterName["Length"] = "length";
|
|
716
|
-
/** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */
|
|
717
|
-
KnownTokenFilterName["Limit"] = "limit";
|
|
718
|
-
/** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
|
|
719
|
-
KnownTokenFilterName["Lowercase"] = "lowercase";
|
|
720
|
-
/** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */
|
|
721
|
-
KnownTokenFilterName["NGram"] = "nGram_v2";
|
|
722
|
-
/** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
|
|
723
|
-
KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
|
|
724
|
-
/** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
|
|
725
|
-
KnownTokenFilterName["Phonetic"] = "phonetic";
|
|
726
|
-
/** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
|
|
727
|
-
KnownTokenFilterName["PorterStem"] = "porter_stem";
|
|
728
|
-
/** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
|
|
729
|
-
KnownTokenFilterName["Reverse"] = "reverse";
|
|
730
|
-
/** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */
|
|
731
|
-
KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
|
|
732
|
-
/** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */
|
|
733
|
-
KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
|
|
734
|
-
/** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */
|
|
735
|
-
KnownTokenFilterName["Shingle"] = "shingle";
|
|
736
|
-
/** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */
|
|
737
|
-
KnownTokenFilterName["Snowball"] = "snowball";
|
|
738
|
-
/** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */
|
|
739
|
-
KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
|
|
740
|
-
/** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
|
|
741
|
-
KnownTokenFilterName["Stemmer"] = "stemmer";
|
|
742
|
-
/** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */
|
|
743
|
-
KnownTokenFilterName["Stopwords"] = "stopwords";
|
|
744
|
-
/** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */
|
|
745
|
-
KnownTokenFilterName["Trim"] = "trim";
|
|
746
|
-
/** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */
|
|
747
|
-
KnownTokenFilterName["Truncate"] = "truncate";
|
|
748
|
-
/** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */
|
|
749
|
-
KnownTokenFilterName["Unique"] = "unique";
|
|
750
|
-
/** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
751
|
-
KnownTokenFilterName["Uppercase"] = "uppercase";
|
|
752
|
-
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
753
|
-
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
754
|
-
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
755
|
-
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
756
|
-
exports.KnownCharFilterName = void 0;
|
|
757
|
-
(function (KnownCharFilterName) {
|
|
758
|
-
/** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */
|
|
759
|
-
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
760
|
-
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
761
449
|
/** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
|
|
762
|
-
|
|
450
|
+
exports.KnownVectorSearchAlgorithmMetric = void 0;
|
|
763
451
|
(function (KnownVectorSearchAlgorithmMetric) {
|
|
764
452
|
/** Measures the angle between vectors to quantify their similarity, disregarding magnitude. The smaller the angle, the closer the similarity. */
|
|
765
453
|
KnownVectorSearchAlgorithmMetric["Cosine"] = "cosine";
|
|
@@ -769,13 +457,13 @@ var KnownVectorSearchAlgorithmMetric;
|
|
|
769
457
|
KnownVectorSearchAlgorithmMetric["DotProduct"] = "dotProduct";
|
|
770
458
|
/** Only applicable to bit-packed binary data types. Determines dissimilarity by counting differing positions in binary vectors. The fewer differences, the closer the similarity. */
|
|
771
459
|
KnownVectorSearchAlgorithmMetric["Hamming"] = "hamming";
|
|
772
|
-
})(KnownVectorSearchAlgorithmMetric || (KnownVectorSearchAlgorithmMetric = {}));
|
|
773
|
-
/** Known values of {@link
|
|
774
|
-
exports.
|
|
775
|
-
(function (
|
|
460
|
+
})(exports.KnownVectorSearchAlgorithmMetric || (exports.KnownVectorSearchAlgorithmMetric = {}));
|
|
461
|
+
/** Known values of {@link VectorSearchCompressionTarget} that the service accepts. */
|
|
462
|
+
exports.KnownVectorSearchCompressionTarget = void 0;
|
|
463
|
+
(function (KnownVectorSearchCompressionTarget) {
|
|
776
464
|
/** Int8 */
|
|
777
|
-
|
|
778
|
-
})(exports.
|
|
465
|
+
KnownVectorSearchCompressionTarget["Int8"] = "int8";
|
|
466
|
+
})(exports.KnownVectorSearchCompressionTarget || (exports.KnownVectorSearchCompressionTarget = {}));
|
|
779
467
|
/** Known values of {@link AzureOpenAIModelName} that the service accepts. */
|
|
780
468
|
exports.KnownAzureOpenAIModelName = void 0;
|
|
781
469
|
(function (KnownAzureOpenAIModelName) {
|
|
@@ -785,25 +473,7 @@ exports.KnownAzureOpenAIModelName = void 0;
|
|
|
785
473
|
KnownAzureOpenAIModelName["TextEmbedding3Large"] = "text-embedding-3-large";
|
|
786
474
|
/** TextEmbedding3Small */
|
|
787
475
|
KnownAzureOpenAIModelName["TextEmbedding3Small"] = "text-embedding-3-small";
|
|
788
|
-
/** Experimental */
|
|
789
|
-
KnownAzureOpenAIModelName["Experimental"] = "experimental";
|
|
790
476
|
})(exports.KnownAzureOpenAIModelName || (exports.KnownAzureOpenAIModelName = {}));
|
|
791
|
-
/** Known values of {@link AIStudioModelCatalogName} that the service accepts. */
|
|
792
|
-
exports.KnownAIStudioModelCatalogName = void 0;
|
|
793
|
-
(function (KnownAIStudioModelCatalogName) {
|
|
794
|
-
/** OpenAIClipImageTextEmbeddingsVitBasePatch32 */
|
|
795
|
-
KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsVitBasePatch32"] = "OpenAI-CLIP-Image-Text-Embeddings-vit-base-patch32";
|
|
796
|
-
/** OpenAIClipImageTextEmbeddingsViTLargePatch14336 */
|
|
797
|
-
KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsViTLargePatch14336"] = "OpenAI-CLIP-Image-Text-Embeddings-ViT-Large-Patch14-336";
|
|
798
|
-
/** FacebookDinoV2ImageEmbeddingsViTBase */
|
|
799
|
-
KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTBase"] = "Facebook-DinoV2-Image-Embeddings-ViT-Base";
|
|
800
|
-
/** FacebookDinoV2ImageEmbeddingsViTGiant */
|
|
801
|
-
KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTGiant"] = "Facebook-DinoV2-Image-Embeddings-ViT-Giant";
|
|
802
|
-
/** CohereEmbedV3English */
|
|
803
|
-
KnownAIStudioModelCatalogName["CohereEmbedV3English"] = "Cohere-embed-v3-english";
|
|
804
|
-
/** CohereEmbedV3Multilingual */
|
|
805
|
-
KnownAIStudioModelCatalogName["CohereEmbedV3Multilingual"] = "Cohere-embed-v3-multilingual";
|
|
806
|
-
})(exports.KnownAIStudioModelCatalogName || (exports.KnownAIStudioModelCatalogName = {}));
|
|
807
477
|
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
808
478
|
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
809
479
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
@@ -1184,18 +854,18 @@ exports.KnownOcrSkillLanguage = void 0;
|
|
|
1184
854
|
/** Unknown (All) */
|
|
1185
855
|
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
1186
856
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
1187
|
-
/** Known values of {@link
|
|
1188
|
-
exports.
|
|
1189
|
-
(function (
|
|
857
|
+
/** Known values of {@link OcrLineEnding} that the service accepts. */
|
|
858
|
+
exports.KnownOcrLineEnding = void 0;
|
|
859
|
+
(function (KnownOcrLineEnding) {
|
|
1190
860
|
/** Lines are separated by a single space character. */
|
|
1191
|
-
|
|
861
|
+
KnownOcrLineEnding["Space"] = "space";
|
|
1192
862
|
/** Lines are separated by a carriage return ('\r') character. */
|
|
1193
|
-
|
|
863
|
+
KnownOcrLineEnding["CarriageReturn"] = "carriageReturn";
|
|
1194
864
|
/** Lines are separated by a single line feed ('\n') character. */
|
|
1195
|
-
|
|
865
|
+
KnownOcrLineEnding["LineFeed"] = "lineFeed";
|
|
1196
866
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
1197
|
-
|
|
1198
|
-
})(exports.
|
|
867
|
+
KnownOcrLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
868
|
+
})(exports.KnownOcrLineEnding || (exports.KnownOcrLineEnding = {}));
|
|
1199
869
|
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
1200
870
|
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
1201
871
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
@@ -1689,7 +1359,7 @@ exports.KnownTextTranslationSkillLanguage = void 0;
|
|
|
1689
1359
|
KnownTextTranslationSkillLanguage["Pa"] = "pa";
|
|
1690
1360
|
})(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
|
|
1691
1361
|
/** Known values of {@link LexicalTokenizerName} that the service accepts. */
|
|
1692
|
-
exports.
|
|
1362
|
+
exports.KnownTokenizerNames = void 0;
|
|
1693
1363
|
(function (KnownLexicalTokenizerName) {
|
|
1694
1364
|
/** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */
|
|
1695
1365
|
KnownLexicalTokenizerName["Classic"] = "classic";
|
|
@@ -1717,7 +1387,85 @@ exports.KnownLexicalTokenizerName = void 0;
|
|
|
1717
1387
|
KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
|
|
1718
1388
|
/** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
|
|
1719
1389
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
1720
|
-
})(exports.
|
|
1390
|
+
})(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
|
|
1391
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
1392
|
+
exports.KnownTokenFilterNames = void 0;
|
|
1393
|
+
(function (KnownTokenFilterName) {
|
|
1394
|
+
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */
|
|
1395
|
+
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
1396
|
+
/** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */
|
|
1397
|
+
KnownTokenFilterName["Apostrophe"] = "apostrophe";
|
|
1398
|
+
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
|
|
1399
|
+
KnownTokenFilterName["AsciiFolding"] = "asciifolding";
|
|
1400
|
+
/** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */
|
|
1401
|
+
KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
|
|
1402
|
+
/** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */
|
|
1403
|
+
KnownTokenFilterName["CjkWidth"] = "cjk_width";
|
|
1404
|
+
/** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */
|
|
1405
|
+
KnownTokenFilterName["Classic"] = "classic";
|
|
1406
|
+
/** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */
|
|
1407
|
+
KnownTokenFilterName["CommonGram"] = "common_grams";
|
|
1408
|
+
/** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */
|
|
1409
|
+
KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
|
|
1410
|
+
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
|
|
1411
|
+
KnownTokenFilterName["Elision"] = "elision";
|
|
1412
|
+
/** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */
|
|
1413
|
+
KnownTokenFilterName["GermanNormalization"] = "german_normalization";
|
|
1414
|
+
/** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */
|
|
1415
|
+
KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
|
|
1416
|
+
/** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */
|
|
1417
|
+
KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
|
|
1418
|
+
/** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */
|
|
1419
|
+
KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
|
|
1420
|
+
/** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */
|
|
1421
|
+
KnownTokenFilterName["KStem"] = "kstem";
|
|
1422
|
+
/** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */
|
|
1423
|
+
KnownTokenFilterName["Length"] = "length";
|
|
1424
|
+
/** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */
|
|
1425
|
+
KnownTokenFilterName["Limit"] = "limit";
|
|
1426
|
+
/** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
|
|
1427
|
+
KnownTokenFilterName["Lowercase"] = "lowercase";
|
|
1428
|
+
/** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */
|
|
1429
|
+
KnownTokenFilterName["NGram"] = "nGram_v2";
|
|
1430
|
+
/** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
|
|
1431
|
+
KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
|
|
1432
|
+
/** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
|
|
1433
|
+
KnownTokenFilterName["Phonetic"] = "phonetic";
|
|
1434
|
+
/** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
|
|
1435
|
+
KnownTokenFilterName["PorterStem"] = "porter_stem";
|
|
1436
|
+
/** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
|
|
1437
|
+
KnownTokenFilterName["Reverse"] = "reverse";
|
|
1438
|
+
/** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */
|
|
1439
|
+
KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
|
|
1440
|
+
/** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */
|
|
1441
|
+
KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
|
|
1442
|
+
/** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */
|
|
1443
|
+
KnownTokenFilterName["Shingle"] = "shingle";
|
|
1444
|
+
/** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */
|
|
1445
|
+
KnownTokenFilterName["Snowball"] = "snowball";
|
|
1446
|
+
/** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */
|
|
1447
|
+
KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
|
|
1448
|
+
/** Language specific stemming filter. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
|
|
1449
|
+
KnownTokenFilterName["Stemmer"] = "stemmer";
|
|
1450
|
+
/** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */
|
|
1451
|
+
KnownTokenFilterName["Stopwords"] = "stopwords";
|
|
1452
|
+
/** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */
|
|
1453
|
+
KnownTokenFilterName["Trim"] = "trim";
|
|
1454
|
+
/** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */
|
|
1455
|
+
KnownTokenFilterName["Truncate"] = "truncate";
|
|
1456
|
+
/** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */
|
|
1457
|
+
KnownTokenFilterName["Unique"] = "unique";
|
|
1458
|
+
/** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
1459
|
+
KnownTokenFilterName["Uppercase"] = "uppercase";
|
|
1460
|
+
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
1461
|
+
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
1462
|
+
})(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
|
|
1463
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
1464
|
+
exports.KnownCharFilterNames = void 0;
|
|
1465
|
+
(function (KnownCharFilterName) {
|
|
1466
|
+
/** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */
|
|
1467
|
+
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
1468
|
+
})(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
|
|
1721
1469
|
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
1722
1470
|
exports.KnownRegexFlags = void 0;
|
|
1723
1471
|
(function (KnownRegexFlags) {
|
|
@@ -2070,20 +1818,6 @@ const SearchDocumentsResult = {
|
|
|
2070
1818
|
className: "SearchRequest",
|
|
2071
1819
|
},
|
|
2072
1820
|
},
|
|
2073
|
-
semanticPartialResponseReason: {
|
|
2074
|
-
serializedName: "@search\\.semanticPartialResponseReason",
|
|
2075
|
-
readOnly: true,
|
|
2076
|
-
type: {
|
|
2077
|
-
name: "String",
|
|
2078
|
-
},
|
|
2079
|
-
},
|
|
2080
|
-
semanticPartialResponseType: {
|
|
2081
|
-
serializedName: "@search\\.semanticPartialResponseType",
|
|
2082
|
-
readOnly: true,
|
|
2083
|
-
type: {
|
|
2084
|
-
name: "String",
|
|
2085
|
-
},
|
|
2086
|
-
},
|
|
2087
1821
|
results: {
|
|
2088
1822
|
serializedName: "value",
|
|
2089
1823
|
required: true,
|
|
@@ -2105,6 +1839,20 @@ const SearchDocumentsResult = {
|
|
|
2105
1839
|
name: "String",
|
|
2106
1840
|
},
|
|
2107
1841
|
},
|
|
1842
|
+
semanticPartialResponseReason: {
|
|
1843
|
+
serializedName: "@search\\.semanticPartialResponseReason",
|
|
1844
|
+
readOnly: true,
|
|
1845
|
+
type: {
|
|
1846
|
+
name: "String",
|
|
1847
|
+
},
|
|
1848
|
+
},
|
|
1849
|
+
semanticPartialResponseType: {
|
|
1850
|
+
serializedName: "@search\\.semanticPartialResponseType",
|
|
1851
|
+
readOnly: true,
|
|
1852
|
+
type: {
|
|
1853
|
+
name: "String",
|
|
1854
|
+
},
|
|
1855
|
+
},
|
|
2108
1856
|
},
|
|
2109
1857
|
},
|
|
2110
1858
|
};
|
|
@@ -2260,40 +2008,6 @@ const SearchRequest = {
|
|
|
2260
2008
|
name: "String",
|
|
2261
2009
|
},
|
|
2262
2010
|
},
|
|
2263
|
-
semanticQuery: {
|
|
2264
|
-
serializedName: "semanticQuery",
|
|
2265
|
-
type: {
|
|
2266
|
-
name: "String",
|
|
2267
|
-
},
|
|
2268
|
-
},
|
|
2269
|
-
semanticConfigurationName: {
|
|
2270
|
-
serializedName: "semanticConfiguration",
|
|
2271
|
-
type: {
|
|
2272
|
-
name: "String",
|
|
2273
|
-
},
|
|
2274
|
-
},
|
|
2275
|
-
semanticErrorHandling: {
|
|
2276
|
-
serializedName: "semanticErrorHandling",
|
|
2277
|
-
type: {
|
|
2278
|
-
name: "String",
|
|
2279
|
-
},
|
|
2280
|
-
},
|
|
2281
|
-
semanticMaxWaitInMilliseconds: {
|
|
2282
|
-
constraints: {
|
|
2283
|
-
InclusiveMinimum: 700,
|
|
2284
|
-
},
|
|
2285
|
-
serializedName: "semanticMaxWaitInMilliseconds",
|
|
2286
|
-
nullable: true,
|
|
2287
|
-
type: {
|
|
2288
|
-
name: "Number",
|
|
2289
|
-
},
|
|
2290
|
-
},
|
|
2291
|
-
debug: {
|
|
2292
|
-
serializedName: "debug",
|
|
2293
|
-
type: {
|
|
2294
|
-
name: "String",
|
|
2295
|
-
},
|
|
2296
|
-
},
|
|
2297
2011
|
searchText: {
|
|
2298
2012
|
serializedName: "search",
|
|
2299
2013
|
type: {
|
|
@@ -2313,50 +2027,60 @@ const SearchRequest = {
|
|
|
2313
2027
|
allowedValues: ["any", "all"],
|
|
2314
2028
|
},
|
|
2315
2029
|
},
|
|
2316
|
-
|
|
2317
|
-
serializedName: "
|
|
2030
|
+
select: {
|
|
2031
|
+
serializedName: "select",
|
|
2318
2032
|
type: {
|
|
2319
2033
|
name: "String",
|
|
2320
2034
|
},
|
|
2321
2035
|
},
|
|
2322
|
-
|
|
2323
|
-
serializedName: "
|
|
2036
|
+
skip: {
|
|
2037
|
+
serializedName: "skip",
|
|
2324
2038
|
type: {
|
|
2325
|
-
name: "
|
|
2039
|
+
name: "Number",
|
|
2326
2040
|
},
|
|
2327
2041
|
},
|
|
2328
|
-
|
|
2329
|
-
serializedName: "
|
|
2042
|
+
top: {
|
|
2043
|
+
serializedName: "top",
|
|
2044
|
+
type: {
|
|
2045
|
+
name: "Number",
|
|
2046
|
+
},
|
|
2047
|
+
},
|
|
2048
|
+
semanticConfigurationName: {
|
|
2049
|
+
serializedName: "semanticConfiguration",
|
|
2330
2050
|
type: {
|
|
2331
2051
|
name: "String",
|
|
2332
2052
|
},
|
|
2333
2053
|
},
|
|
2334
|
-
|
|
2335
|
-
serializedName: "
|
|
2054
|
+
semanticErrorHandling: {
|
|
2055
|
+
serializedName: "semanticErrorHandling",
|
|
2336
2056
|
type: {
|
|
2337
2057
|
name: "String",
|
|
2338
2058
|
},
|
|
2339
2059
|
},
|
|
2340
|
-
|
|
2341
|
-
|
|
2060
|
+
semanticMaxWaitInMilliseconds: {
|
|
2061
|
+
constraints: {
|
|
2062
|
+
InclusiveMinimum: 700,
|
|
2063
|
+
},
|
|
2064
|
+
serializedName: "semanticMaxWaitInMilliseconds",
|
|
2065
|
+
nullable: true,
|
|
2342
2066
|
type: {
|
|
2343
2067
|
name: "Number",
|
|
2344
2068
|
},
|
|
2345
2069
|
},
|
|
2346
|
-
|
|
2347
|
-
serializedName: "
|
|
2070
|
+
semanticQuery: {
|
|
2071
|
+
serializedName: "semanticQuery",
|
|
2348
2072
|
type: {
|
|
2349
|
-
name: "
|
|
2073
|
+
name: "String",
|
|
2350
2074
|
},
|
|
2351
2075
|
},
|
|
2352
|
-
|
|
2353
|
-
serializedName: "
|
|
2076
|
+
answers: {
|
|
2077
|
+
serializedName: "answers",
|
|
2354
2078
|
type: {
|
|
2355
2079
|
name: "String",
|
|
2356
2080
|
},
|
|
2357
2081
|
},
|
|
2358
|
-
|
|
2359
|
-
serializedName: "
|
|
2082
|
+
captions: {
|
|
2083
|
+
serializedName: "captions",
|
|
2360
2084
|
type: {
|
|
2361
2085
|
name: "String",
|
|
2362
2086
|
},
|
|
@@ -2379,13 +2103,6 @@ const SearchRequest = {
|
|
|
2379
2103
|
name: "String",
|
|
2380
2104
|
},
|
|
2381
2105
|
},
|
|
2382
|
-
hybridSearch: {
|
|
2383
|
-
serializedName: "hybridSearch",
|
|
2384
|
-
type: {
|
|
2385
|
-
name: "Composite",
|
|
2386
|
-
className: "HybridSearch",
|
|
2387
|
-
},
|
|
2388
|
-
},
|
|
2389
2106
|
},
|
|
2390
2107
|
},
|
|
2391
2108
|
};
|
|
@@ -2436,53 +2153,6 @@ const VectorQuery = {
|
|
|
2436
2153
|
name: "Number",
|
|
2437
2154
|
},
|
|
2438
2155
|
},
|
|
2439
|
-
threshold: {
|
|
2440
|
-
serializedName: "threshold",
|
|
2441
|
-
type: {
|
|
2442
|
-
name: "Composite",
|
|
2443
|
-
className: "VectorThreshold",
|
|
2444
|
-
},
|
|
2445
|
-
},
|
|
2446
|
-
},
|
|
2447
|
-
},
|
|
2448
|
-
};
|
|
2449
|
-
const VectorThreshold = {
|
|
2450
|
-
type: {
|
|
2451
|
-
name: "Composite",
|
|
2452
|
-
className: "VectorThreshold",
|
|
2453
|
-
uberParent: "VectorThreshold",
|
|
2454
|
-
polymorphicDiscriminator: {
|
|
2455
|
-
serializedName: "kind",
|
|
2456
|
-
clientName: "kind",
|
|
2457
|
-
},
|
|
2458
|
-
modelProperties: {
|
|
2459
|
-
kind: {
|
|
2460
|
-
serializedName: "kind",
|
|
2461
|
-
required: true,
|
|
2462
|
-
type: {
|
|
2463
|
-
name: "String",
|
|
2464
|
-
},
|
|
2465
|
-
},
|
|
2466
|
-
},
|
|
2467
|
-
},
|
|
2468
|
-
};
|
|
2469
|
-
const HybridSearch = {
|
|
2470
|
-
type: {
|
|
2471
|
-
name: "Composite",
|
|
2472
|
-
className: "HybridSearch",
|
|
2473
|
-
modelProperties: {
|
|
2474
|
-
maxTextRecallSize: {
|
|
2475
|
-
serializedName: "maxTextRecallSize",
|
|
2476
|
-
type: {
|
|
2477
|
-
name: "Number",
|
|
2478
|
-
},
|
|
2479
|
-
},
|
|
2480
|
-
countAndFacetMode: {
|
|
2481
|
-
serializedName: "countAndFacetMode",
|
|
2482
|
-
type: {
|
|
2483
|
-
name: "String",
|
|
2484
|
-
},
|
|
2485
|
-
},
|
|
2486
2156
|
},
|
|
2487
2157
|
},
|
|
2488
2158
|
};
|
|
@@ -2532,20 +2202,6 @@ const SearchResult = {
|
|
|
2532
2202
|
},
|
|
2533
2203
|
},
|
|
2534
2204
|
},
|
|
2535
|
-
documentDebugInfo: {
|
|
2536
|
-
serializedName: "@search\\.documentDebugInfo",
|
|
2537
|
-
readOnly: true,
|
|
2538
|
-
nullable: true,
|
|
2539
|
-
type: {
|
|
2540
|
-
name: "Sequence",
|
|
2541
|
-
element: {
|
|
2542
|
-
type: {
|
|
2543
|
-
name: "Composite",
|
|
2544
|
-
className: "DocumentDebugInfo",
|
|
2545
|
-
},
|
|
2546
|
-
},
|
|
2547
|
-
},
|
|
2548
|
-
},
|
|
2549
2205
|
},
|
|
2550
2206
|
},
|
|
2551
2207
|
};
|
|
@@ -2573,120 +2229,6 @@ const QueryCaptionResult = {
|
|
|
2573
2229
|
},
|
|
2574
2230
|
},
|
|
2575
2231
|
};
|
|
2576
|
-
const DocumentDebugInfo = {
|
|
2577
|
-
type: {
|
|
2578
|
-
name: "Composite",
|
|
2579
|
-
className: "DocumentDebugInfo",
|
|
2580
|
-
modelProperties: {
|
|
2581
|
-
semantic: {
|
|
2582
|
-
serializedName: "semantic",
|
|
2583
|
-
type: {
|
|
2584
|
-
name: "Composite",
|
|
2585
|
-
className: "SemanticDebugInfo",
|
|
2586
|
-
},
|
|
2587
|
-
},
|
|
2588
|
-
},
|
|
2589
|
-
},
|
|
2590
|
-
};
|
|
2591
|
-
const SemanticDebugInfo = {
|
|
2592
|
-
type: {
|
|
2593
|
-
name: "Composite",
|
|
2594
|
-
className: "SemanticDebugInfo",
|
|
2595
|
-
modelProperties: {
|
|
2596
|
-
titleField: {
|
|
2597
|
-
serializedName: "titleField",
|
|
2598
|
-
type: {
|
|
2599
|
-
name: "Composite",
|
|
2600
|
-
className: "QueryResultDocumentSemanticField",
|
|
2601
|
-
},
|
|
2602
|
-
},
|
|
2603
|
-
contentFields: {
|
|
2604
|
-
serializedName: "contentFields",
|
|
2605
|
-
readOnly: true,
|
|
2606
|
-
type: {
|
|
2607
|
-
name: "Sequence",
|
|
2608
|
-
element: {
|
|
2609
|
-
type: {
|
|
2610
|
-
name: "Composite",
|
|
2611
|
-
className: "QueryResultDocumentSemanticField",
|
|
2612
|
-
},
|
|
2613
|
-
},
|
|
2614
|
-
},
|
|
2615
|
-
},
|
|
2616
|
-
keywordFields: {
|
|
2617
|
-
serializedName: "keywordFields",
|
|
2618
|
-
readOnly: true,
|
|
2619
|
-
type: {
|
|
2620
|
-
name: "Sequence",
|
|
2621
|
-
element: {
|
|
2622
|
-
type: {
|
|
2623
|
-
name: "Composite",
|
|
2624
|
-
className: "QueryResultDocumentSemanticField",
|
|
2625
|
-
},
|
|
2626
|
-
},
|
|
2627
|
-
},
|
|
2628
|
-
},
|
|
2629
|
-
rerankerInput: {
|
|
2630
|
-
serializedName: "rerankerInput",
|
|
2631
|
-
type: {
|
|
2632
|
-
name: "Composite",
|
|
2633
|
-
className: "QueryResultDocumentRerankerInput",
|
|
2634
|
-
},
|
|
2635
|
-
},
|
|
2636
|
-
},
|
|
2637
|
-
},
|
|
2638
|
-
};
|
|
2639
|
-
const QueryResultDocumentSemanticField = {
|
|
2640
|
-
type: {
|
|
2641
|
-
name: "Composite",
|
|
2642
|
-
className: "QueryResultDocumentSemanticField",
|
|
2643
|
-
modelProperties: {
|
|
2644
|
-
name: {
|
|
2645
|
-
serializedName: "name",
|
|
2646
|
-
readOnly: true,
|
|
2647
|
-
type: {
|
|
2648
|
-
name: "String",
|
|
2649
|
-
},
|
|
2650
|
-
},
|
|
2651
|
-
state: {
|
|
2652
|
-
serializedName: "state",
|
|
2653
|
-
readOnly: true,
|
|
2654
|
-
type: {
|
|
2655
|
-
name: "String",
|
|
2656
|
-
},
|
|
2657
|
-
},
|
|
2658
|
-
},
|
|
2659
|
-
},
|
|
2660
|
-
};
|
|
2661
|
-
const QueryResultDocumentRerankerInput = {
|
|
2662
|
-
type: {
|
|
2663
|
-
name: "Composite",
|
|
2664
|
-
className: "QueryResultDocumentRerankerInput",
|
|
2665
|
-
modelProperties: {
|
|
2666
|
-
title: {
|
|
2667
|
-
serializedName: "title",
|
|
2668
|
-
readOnly: true,
|
|
2669
|
-
type: {
|
|
2670
|
-
name: "String",
|
|
2671
|
-
},
|
|
2672
|
-
},
|
|
2673
|
-
content: {
|
|
2674
|
-
serializedName: "content",
|
|
2675
|
-
readOnly: true,
|
|
2676
|
-
type: {
|
|
2677
|
-
name: "String",
|
|
2678
|
-
},
|
|
2679
|
-
},
|
|
2680
|
-
keywords: {
|
|
2681
|
-
serializedName: "keywords",
|
|
2682
|
-
readOnly: true,
|
|
2683
|
-
type: {
|
|
2684
|
-
name: "String",
|
|
2685
|
-
},
|
|
2686
|
-
},
|
|
2687
|
-
},
|
|
2688
|
-
},
|
|
2689
|
-
};
|
|
2690
2232
|
const SuggestDocumentsResult = {
|
|
2691
2233
|
type: {
|
|
2692
2234
|
name: "Composite",
|
|
@@ -3069,77 +2611,10 @@ const VectorizableTextQuery = {
|
|
|
3069
2611
|
} }),
|
|
3070
2612
|
},
|
|
3071
2613
|
};
|
|
3072
|
-
const VectorizableImageUrlQuery = {
|
|
3073
|
-
serializedName: "imageUrl",
|
|
3074
|
-
type: {
|
|
3075
|
-
name: "Composite",
|
|
3076
|
-
className: "VectorizableImageUrlQuery",
|
|
3077
|
-
uberParent: "VectorQuery",
|
|
3078
|
-
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
3079
|
-
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { url: {
|
|
3080
|
-
serializedName: "url",
|
|
3081
|
-
type: {
|
|
3082
|
-
name: "String",
|
|
3083
|
-
},
|
|
3084
|
-
} }),
|
|
3085
|
-
},
|
|
3086
|
-
};
|
|
3087
|
-
const VectorizableImageBinaryQuery = {
|
|
3088
|
-
serializedName: "imageBinary",
|
|
3089
|
-
type: {
|
|
3090
|
-
name: "Composite",
|
|
3091
|
-
className: "VectorizableImageBinaryQuery",
|
|
3092
|
-
uberParent: "VectorQuery",
|
|
3093
|
-
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
3094
|
-
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { base64Image: {
|
|
3095
|
-
serializedName: "base64Image",
|
|
3096
|
-
type: {
|
|
3097
|
-
name: "String",
|
|
3098
|
-
},
|
|
3099
|
-
} }),
|
|
3100
|
-
},
|
|
3101
|
-
};
|
|
3102
|
-
const VectorSimilarityThreshold = {
|
|
3103
|
-
serializedName: "vectorSimilarity",
|
|
3104
|
-
type: {
|
|
3105
|
-
name: "Composite",
|
|
3106
|
-
className: "VectorSimilarityThreshold",
|
|
3107
|
-
uberParent: "VectorThreshold",
|
|
3108
|
-
polymorphicDiscriminator: VectorThreshold.type.polymorphicDiscriminator,
|
|
3109
|
-
modelProperties: Object.assign(Object.assign({}, VectorThreshold.type.modelProperties), { value: {
|
|
3110
|
-
serializedName: "value",
|
|
3111
|
-
required: true,
|
|
3112
|
-
type: {
|
|
3113
|
-
name: "Number",
|
|
3114
|
-
},
|
|
3115
|
-
} }),
|
|
3116
|
-
},
|
|
3117
|
-
};
|
|
3118
|
-
const SearchScoreThreshold = {
|
|
3119
|
-
serializedName: "searchScore",
|
|
3120
|
-
type: {
|
|
3121
|
-
name: "Composite",
|
|
3122
|
-
className: "SearchScoreThreshold",
|
|
3123
|
-
uberParent: "VectorThreshold",
|
|
3124
|
-
polymorphicDiscriminator: VectorThreshold.type.polymorphicDiscriminator,
|
|
3125
|
-
modelProperties: Object.assign(Object.assign({}, VectorThreshold.type.modelProperties), { value: {
|
|
3126
|
-
serializedName: "value",
|
|
3127
|
-
required: true,
|
|
3128
|
-
type: {
|
|
3129
|
-
name: "Number",
|
|
3130
|
-
},
|
|
3131
|
-
} }),
|
|
3132
|
-
},
|
|
3133
|
-
};
|
|
3134
2614
|
let discriminators$1 = {
|
|
3135
2615
|
VectorQuery: VectorQuery,
|
|
3136
|
-
VectorThreshold: VectorThreshold,
|
|
3137
2616
|
"VectorQuery.vector": VectorizedQuery,
|
|
3138
2617
|
"VectorQuery.text": VectorizableTextQuery,
|
|
3139
|
-
"VectorQuery.imageUrl": VectorizableImageUrlQuery,
|
|
3140
|
-
"VectorQuery.imageBinary": VectorizableImageBinaryQuery,
|
|
3141
|
-
"VectorThreshold.vectorSimilarity": VectorSimilarityThreshold,
|
|
3142
|
-
"VectorThreshold.searchScore": SearchScoreThreshold,
|
|
3143
2618
|
};
|
|
3144
2619
|
|
|
3145
2620
|
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -3147,33 +2622,23 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
3147
2622
|
AutocompleteItem: AutocompleteItem,
|
|
3148
2623
|
AutocompleteRequest: AutocompleteRequest,
|
|
3149
2624
|
AutocompleteResult: AutocompleteResult,
|
|
3150
|
-
DocumentDebugInfo: DocumentDebugInfo,
|
|
3151
2625
|
ErrorAdditionalInfo: ErrorAdditionalInfo$1,
|
|
3152
2626
|
ErrorDetail: ErrorDetail$1,
|
|
3153
2627
|
ErrorResponse: ErrorResponse$1,
|
|
3154
2628
|
FacetResult: FacetResult,
|
|
3155
|
-
HybridSearch: HybridSearch,
|
|
3156
2629
|
IndexAction: IndexAction,
|
|
3157
2630
|
IndexBatch: IndexBatch,
|
|
3158
2631
|
IndexDocumentsResult: IndexDocumentsResult,
|
|
3159
2632
|
IndexingResult: IndexingResult,
|
|
3160
2633
|
QueryAnswerResult: QueryAnswerResult,
|
|
3161
2634
|
QueryCaptionResult: QueryCaptionResult,
|
|
3162
|
-
QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
|
|
3163
|
-
QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
|
|
3164
2635
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
3165
2636
|
SearchRequest: SearchRequest,
|
|
3166
2637
|
SearchResult: SearchResult,
|
|
3167
|
-
SearchScoreThreshold: SearchScoreThreshold,
|
|
3168
|
-
SemanticDebugInfo: SemanticDebugInfo,
|
|
3169
2638
|
SuggestDocumentsResult: SuggestDocumentsResult,
|
|
3170
2639
|
SuggestRequest: SuggestRequest,
|
|
3171
2640
|
SuggestResult: SuggestResult,
|
|
3172
2641
|
VectorQuery: VectorQuery,
|
|
3173
|
-
VectorSimilarityThreshold: VectorSimilarityThreshold,
|
|
3174
|
-
VectorThreshold: VectorThreshold,
|
|
3175
|
-
VectorizableImageBinaryQuery: VectorizableImageBinaryQuery,
|
|
3176
|
-
VectorizableImageUrlQuery: VectorizableImageUrlQuery,
|
|
3177
2642
|
VectorizableTextQuery: VectorizableTextQuery,
|
|
3178
2643
|
VectorizedQuery: VectorizedQuery,
|
|
3179
2644
|
discriminators: discriminators$1
|
|
@@ -3495,48 +2960,6 @@ const semanticQuery = {
|
|
|
3495
2960
|
},
|
|
3496
2961
|
},
|
|
3497
2962
|
};
|
|
3498
|
-
const debug = {
|
|
3499
|
-
parameterPath: ["options", "searchOptions", "debug"],
|
|
3500
|
-
mapper: {
|
|
3501
|
-
serializedName: "debug",
|
|
3502
|
-
type: {
|
|
3503
|
-
name: "String",
|
|
3504
|
-
},
|
|
3505
|
-
},
|
|
3506
|
-
};
|
|
3507
|
-
const queryLanguage = {
|
|
3508
|
-
parameterPath: ["options", "searchOptions", "queryLanguage"],
|
|
3509
|
-
mapper: {
|
|
3510
|
-
serializedName: "queryLanguage",
|
|
3511
|
-
type: {
|
|
3512
|
-
name: "String",
|
|
3513
|
-
},
|
|
3514
|
-
},
|
|
3515
|
-
};
|
|
3516
|
-
const speller = {
|
|
3517
|
-
parameterPath: ["options", "searchOptions", "speller"],
|
|
3518
|
-
mapper: {
|
|
3519
|
-
serializedName: "speller",
|
|
3520
|
-
type: {
|
|
3521
|
-
name: "String",
|
|
3522
|
-
},
|
|
3523
|
-
},
|
|
3524
|
-
};
|
|
3525
|
-
const semanticFields = {
|
|
3526
|
-
parameterPath: ["options", "searchOptions", "semanticFields"],
|
|
3527
|
-
mapper: {
|
|
3528
|
-
serializedName: "semanticFields",
|
|
3529
|
-
type: {
|
|
3530
|
-
name: "Sequence",
|
|
3531
|
-
element: {
|
|
3532
|
-
type: {
|
|
3533
|
-
name: "String",
|
|
3534
|
-
},
|
|
3535
|
-
},
|
|
3536
|
-
},
|
|
3537
|
-
},
|
|
3538
|
-
collectionFormat: "CSV",
|
|
3539
|
-
};
|
|
3540
2963
|
const contentType$1 = {
|
|
3541
2964
|
parameterPath: ["options", "contentType"],
|
|
3542
2965
|
mapper: {
|
|
@@ -3832,7 +3255,7 @@ class DocumentsImpl {
|
|
|
3832
3255
|
* @param options The options parameters.
|
|
3833
3256
|
*/
|
|
3834
3257
|
get(key, options) {
|
|
3835
|
-
return this.client.sendOperationRequest({ key, options }, getOperationSpec$
|
|
3258
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
|
|
3836
3259
|
}
|
|
3837
3260
|
/**
|
|
3838
3261
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -3881,7 +3304,7 @@ class DocumentsImpl {
|
|
|
3881
3304
|
}
|
|
3882
3305
|
}
|
|
3883
3306
|
// Operation Specifications
|
|
3884
|
-
const serializer$
|
|
3307
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
|
|
3885
3308
|
const countOperationSpec = {
|
|
3886
3309
|
path: "/docs/$count",
|
|
3887
3310
|
httpMethod: "GET",
|
|
@@ -3896,7 +3319,7 @@ const countOperationSpec = {
|
|
|
3896
3319
|
queryParameters: [apiVersion$1],
|
|
3897
3320
|
urlParameters: [endpoint$1, indexName$1],
|
|
3898
3321
|
headerParameters: [accept$1],
|
|
3899
|
-
serializer: serializer$
|
|
3322
|
+
serializer: serializer$6,
|
|
3900
3323
|
};
|
|
3901
3324
|
const searchGetOperationSpec = {
|
|
3902
3325
|
path: "/docs",
|
|
@@ -3936,14 +3359,10 @@ const searchGetOperationSpec = {
|
|
|
3936
3359
|
answers,
|
|
3937
3360
|
captions,
|
|
3938
3361
|
semanticQuery,
|
|
3939
|
-
debug,
|
|
3940
|
-
queryLanguage,
|
|
3941
|
-
speller,
|
|
3942
|
-
semanticFields,
|
|
3943
3362
|
],
|
|
3944
3363
|
urlParameters: [endpoint$1, indexName$1],
|
|
3945
3364
|
headerParameters: [accept$1],
|
|
3946
|
-
serializer: serializer$
|
|
3365
|
+
serializer: serializer$6,
|
|
3947
3366
|
};
|
|
3948
3367
|
const searchPostOperationSpec = {
|
|
3949
3368
|
path: "/docs/search.post.search",
|
|
@@ -3961,9 +3380,9 @@ const searchPostOperationSpec = {
|
|
|
3961
3380
|
urlParameters: [endpoint$1, indexName$1],
|
|
3962
3381
|
headerParameters: [accept$1, contentType$1],
|
|
3963
3382
|
mediaType: "json",
|
|
3964
|
-
serializer: serializer$
|
|
3383
|
+
serializer: serializer$6,
|
|
3965
3384
|
};
|
|
3966
|
-
const getOperationSpec$
|
|
3385
|
+
const getOperationSpec$5 = {
|
|
3967
3386
|
path: "/docs('{key}')",
|
|
3968
3387
|
httpMethod: "GET",
|
|
3969
3388
|
responses: {
|
|
@@ -3979,7 +3398,7 @@ const getOperationSpec$6 = {
|
|
|
3979
3398
|
queryParameters: [apiVersion$1, selectedFields],
|
|
3980
3399
|
urlParameters: [endpoint$1, indexName$1, key],
|
|
3981
3400
|
headerParameters: [accept$1],
|
|
3982
|
-
serializer: serializer$
|
|
3401
|
+
serializer: serializer$6,
|
|
3983
3402
|
};
|
|
3984
3403
|
const suggestGetOperationSpec = {
|
|
3985
3404
|
path: "/docs/search.suggest",
|
|
@@ -4008,7 +3427,7 @@ const suggestGetOperationSpec = {
|
|
|
4008
3427
|
],
|
|
4009
3428
|
urlParameters: [endpoint$1, indexName$1],
|
|
4010
3429
|
headerParameters: [accept$1],
|
|
4011
|
-
serializer: serializer$
|
|
3430
|
+
serializer: serializer$6,
|
|
4012
3431
|
};
|
|
4013
3432
|
const suggestPostOperationSpec = {
|
|
4014
3433
|
path: "/docs/search.post.suggest",
|
|
@@ -4026,7 +3445,7 @@ const suggestPostOperationSpec = {
|
|
|
4026
3445
|
urlParameters: [endpoint$1, indexName$1],
|
|
4027
3446
|
headerParameters: [accept$1, contentType$1],
|
|
4028
3447
|
mediaType: "json",
|
|
4029
|
-
serializer: serializer$
|
|
3448
|
+
serializer: serializer$6,
|
|
4030
3449
|
};
|
|
4031
3450
|
const indexOperationSpec = {
|
|
4032
3451
|
path: "/docs/search.index",
|
|
@@ -4047,7 +3466,7 @@ const indexOperationSpec = {
|
|
|
4047
3466
|
urlParameters: [endpoint$1, indexName$1],
|
|
4048
3467
|
headerParameters: [accept$1, contentType$1],
|
|
4049
3468
|
mediaType: "json",
|
|
4050
|
-
serializer: serializer$
|
|
3469
|
+
serializer: serializer$6,
|
|
4051
3470
|
};
|
|
4052
3471
|
const autocompleteGetOperationSpec = {
|
|
4053
3472
|
path: "/docs/search.autocomplete",
|
|
@@ -4075,7 +3494,7 @@ const autocompleteGetOperationSpec = {
|
|
|
4075
3494
|
],
|
|
4076
3495
|
urlParameters: [endpoint$1, indexName$1],
|
|
4077
3496
|
headerParameters: [accept$1],
|
|
4078
|
-
serializer: serializer$
|
|
3497
|
+
serializer: serializer$6,
|
|
4079
3498
|
};
|
|
4080
3499
|
const autocompletePostOperationSpec = {
|
|
4081
3500
|
path: "/docs/search.post.autocomplete",
|
|
@@ -4093,7 +3512,7 @@ const autocompletePostOperationSpec = {
|
|
|
4093
3512
|
urlParameters: [endpoint$1, indexName$1],
|
|
4094
3513
|
headerParameters: [accept$1, contentType$1],
|
|
4095
3514
|
mediaType: "json",
|
|
4096
|
-
serializer: serializer$
|
|
3515
|
+
serializer: serializer$6,
|
|
4097
3516
|
};
|
|
4098
3517
|
|
|
4099
3518
|
/*
|
|
@@ -4130,7 +3549,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
|
|
|
4130
3549
|
const defaults = {
|
|
4131
3550
|
requestContentType: "application/json; charset=utf-8",
|
|
4132
3551
|
};
|
|
4133
|
-
const packageDetails = `azsdk-js-search-documents/12.1.0
|
|
3552
|
+
const packageDetails = `azsdk-js-search-documents/12.1.0`;
|
|
4134
3553
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4135
3554
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4136
3555
|
: `${packageDetails}`;
|
|
@@ -4441,7 +3860,7 @@ function isComplexField(field) {
|
|
|
4441
3860
|
* Defines values for TokenizerName.
|
|
4442
3861
|
* @readonly
|
|
4443
3862
|
*/
|
|
4444
|
-
|
|
3863
|
+
var KnownTokenizerNames;
|
|
4445
3864
|
(function (KnownTokenizerNames) {
|
|
4446
3865
|
/**
|
|
4447
3866
|
* Grammar-based tokenizer that is suitable for processing most European-language documents. See
|
|
@@ -4509,12 +3928,12 @@ exports.KnownTokenizerNames = void 0;
|
|
|
4509
3928
|
* http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html
|
|
4510
3929
|
*/
|
|
4511
3930
|
KnownTokenizerNames["Whitespace"] = "whitespace";
|
|
4512
|
-
})(
|
|
3931
|
+
})(KnownTokenizerNames || (KnownTokenizerNames = {}));
|
|
4513
3932
|
/**
|
|
4514
3933
|
* Defines values for TokenFilterName.
|
|
4515
3934
|
* @readonly
|
|
4516
3935
|
*/
|
|
4517
|
-
|
|
3936
|
+
var KnownTokenFilterNames;
|
|
4518
3937
|
(function (KnownTokenFilterNames) {
|
|
4519
3938
|
/**
|
|
4520
3939
|
* A token filter that applies the Arabic normalizer to normalize the orthography. See
|
|
@@ -4692,19 +4111,19 @@ exports.KnownTokenFilterNames = void 0;
|
|
|
4692
4111
|
* Splits words into subwords and performs optional transformations on subword groups.
|
|
4693
4112
|
*/
|
|
4694
4113
|
KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
|
|
4695
|
-
})(
|
|
4114
|
+
})(KnownTokenFilterNames || (KnownTokenFilterNames = {}));
|
|
4696
4115
|
/**
|
|
4697
4116
|
* Defines values for CharFilterName.
|
|
4698
4117
|
* @readonly
|
|
4699
4118
|
*/
|
|
4700
|
-
|
|
4119
|
+
var KnownCharFilterNames;
|
|
4701
4120
|
(function (KnownCharFilterNames) {
|
|
4702
4121
|
/**
|
|
4703
4122
|
* A character filter that attempts to strip out HTML constructs. See
|
|
4704
4123
|
* https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html
|
|
4705
4124
|
*/
|
|
4706
4125
|
KnownCharFilterNames["HtmlStrip"] = "html_strip";
|
|
4707
|
-
})(
|
|
4126
|
+
})(KnownCharFilterNames || (KnownCharFilterNames = {}));
|
|
4708
4127
|
/**
|
|
4709
4128
|
* Defines values for AnalyzerName.
|
|
4710
4129
|
* See https://docs.microsoft.com/rest/api/searchservice/Language-support
|
|
@@ -5088,74 +4507,34 @@ exports.KnownAnalyzerNames = void 0;
|
|
|
5088
4507
|
|
|
5089
4508
|
// Copyright (c) Microsoft Corporation.
|
|
5090
4509
|
// Licensed under the MIT license.
|
|
5091
|
-
const defaultServiceVersion = "2024-
|
|
4510
|
+
const defaultServiceVersion = "2024-07-01";
|
|
4511
|
+
const knownSkills = {
|
|
4512
|
+
"#Microsoft.Skills.Custom.WebApiSkill": true,
|
|
4513
|
+
"#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": true,
|
|
4514
|
+
"#Microsoft.Skills.Text.CustomEntityLookupSkill": true,
|
|
4515
|
+
"#Microsoft.Skills.Text.EntityRecognitionSkill": true,
|
|
4516
|
+
"#Microsoft.Skills.Text.KeyPhraseExtractionSkill": true,
|
|
4517
|
+
"#Microsoft.Skills.Text.LanguageDetectionSkill": true,
|
|
4518
|
+
"#Microsoft.Skills.Text.MergeSkill": true,
|
|
4519
|
+
"#Microsoft.Skills.Text.PIIDetectionSkill": true,
|
|
4520
|
+
"#Microsoft.Skills.Text.SentimentSkill": true,
|
|
4521
|
+
"#Microsoft.Skills.Text.SplitSkill": true,
|
|
4522
|
+
"#Microsoft.Skills.Text.TranslationSkill": true,
|
|
4523
|
+
"#Microsoft.Skills.Text.V3.EntityLinkingSkill": true,
|
|
4524
|
+
"#Microsoft.Skills.Text.V3.EntityRecognitionSkill": true,
|
|
4525
|
+
"#Microsoft.Skills.Text.V3.SentimentSkill": true,
|
|
4526
|
+
"#Microsoft.Skills.Util.ConditionalSkill": true,
|
|
4527
|
+
"#Microsoft.Skills.Util.DocumentExtractionSkill": true,
|
|
4528
|
+
"#Microsoft.Skills.Util.ShaperSkill": true,
|
|
4529
|
+
"#Microsoft.Skills.Vision.ImageAnalysisSkill": true,
|
|
4530
|
+
"#Microsoft.Skills.Vision.OcrSkill": true,
|
|
4531
|
+
};
|
|
5092
4532
|
function convertSkillsToPublic(skills) {
|
|
5093
4533
|
if (!skills) {
|
|
5094
4534
|
return skills;
|
|
5095
4535
|
}
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
switch (skill.odatatype) {
|
|
5099
|
-
case "#Microsoft.Skills.Util.ConditionalSkill":
|
|
5100
|
-
result.push(skill);
|
|
5101
|
-
break;
|
|
5102
|
-
case "#Microsoft.Skills.Text.KeyPhraseExtractionSkill":
|
|
5103
|
-
result.push(skill);
|
|
5104
|
-
break;
|
|
5105
|
-
case "#Microsoft.Skills.Vision.OcrSkill":
|
|
5106
|
-
result.push(skill);
|
|
5107
|
-
break;
|
|
5108
|
-
case "#Microsoft.Skills.Vision.ImageAnalysisSkill":
|
|
5109
|
-
result.push(skill);
|
|
5110
|
-
break;
|
|
5111
|
-
case "#Microsoft.Skills.Text.LanguageDetectionSkill":
|
|
5112
|
-
result.push(skill);
|
|
5113
|
-
break;
|
|
5114
|
-
case "#Microsoft.Skills.Util.ShaperSkill":
|
|
5115
|
-
result.push(skill);
|
|
5116
|
-
break;
|
|
5117
|
-
case "#Microsoft.Skills.Text.MergeSkill":
|
|
5118
|
-
result.push(skill);
|
|
5119
|
-
break;
|
|
5120
|
-
case "#Microsoft.Skills.Text.EntityRecognitionSkill":
|
|
5121
|
-
result.push(skill);
|
|
5122
|
-
break;
|
|
5123
|
-
case "#Microsoft.Skills.Text.SentimentSkill":
|
|
5124
|
-
result.push(skill);
|
|
5125
|
-
break;
|
|
5126
|
-
case "#Microsoft.Skills.Text.SplitSkill":
|
|
5127
|
-
result.push(skill);
|
|
5128
|
-
break;
|
|
5129
|
-
case "#Microsoft.Skills.Text.PIIDetectionSkill":
|
|
5130
|
-
result.push(skill);
|
|
5131
|
-
break;
|
|
5132
|
-
case "#Microsoft.Skills.Text.V3.EntityRecognitionSkill":
|
|
5133
|
-
result.push(skill);
|
|
5134
|
-
break;
|
|
5135
|
-
case "#Microsoft.Skills.Text.V3.EntityLinkingSkill":
|
|
5136
|
-
result.push(skill);
|
|
5137
|
-
break;
|
|
5138
|
-
case "#Microsoft.Skills.Text.V3.SentimentSkill":
|
|
5139
|
-
result.push(skill);
|
|
5140
|
-
break;
|
|
5141
|
-
case "#Microsoft.Skills.Text.TranslationSkill":
|
|
5142
|
-
result.push(skill);
|
|
5143
|
-
break;
|
|
5144
|
-
case "#Microsoft.Skills.Custom.WebApiSkill":
|
|
5145
|
-
result.push(skill);
|
|
5146
|
-
break;
|
|
5147
|
-
case "#Microsoft.Skills.Text.CustomEntityLookupSkill":
|
|
5148
|
-
result.push(skill);
|
|
5149
|
-
break;
|
|
5150
|
-
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
5151
|
-
result.push(skill);
|
|
5152
|
-
break;
|
|
5153
|
-
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
5154
|
-
result.push(skill);
|
|
5155
|
-
break;
|
|
5156
|
-
}
|
|
5157
|
-
}
|
|
5158
|
-
return result;
|
|
4536
|
+
// This validation has already GAed
|
|
4537
|
+
return skills.filter((skill) => knownSkills[skill.odatatype]);
|
|
5159
4538
|
}
|
|
5160
4539
|
function convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount) {
|
|
5161
4540
|
if (!cognitiveServicesAccount) {
|
|
@@ -5246,10 +4625,10 @@ function convertFieldsToPublic(fields) {
|
|
|
5246
4625
|
else {
|
|
5247
4626
|
const type = field.type;
|
|
5248
4627
|
const synonymMapNames = field.synonymMaps;
|
|
5249
|
-
const { retrievable, analyzer, searchAnalyzer, indexAnalyzer
|
|
4628
|
+
const { retrievable, analyzer, searchAnalyzer, indexAnalyzer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer"]);
|
|
5250
4629
|
const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
|
|
5251
4630
|
const result = Object.assign(Object.assign({}, restField), { type,
|
|
5252
|
-
hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer,
|
|
4631
|
+
hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, synonymMapNames });
|
|
5253
4632
|
return result;
|
|
5254
4633
|
}
|
|
5255
4634
|
});
|
|
@@ -5261,7 +4640,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
5261
4640
|
return {
|
|
5262
4641
|
name: field.name,
|
|
5263
4642
|
type: field.type,
|
|
5264
|
-
fields: convertFieldsToGenerated(field.fields),
|
|
4643
|
+
fields: field.fields ? convertFieldsToGenerated(field.fields) : field.fields,
|
|
5265
4644
|
};
|
|
5266
4645
|
}
|
|
5267
4646
|
else {
|
|
@@ -5269,7 +4648,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
5269
4648
|
const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
|
|
5270
4649
|
return Object.assign(Object.assign({}, restField), { retrievable,
|
|
5271
4650
|
// modify API defaults to use less storage for simple types
|
|
5272
|
-
searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames
|
|
4651
|
+
searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames });
|
|
5273
4652
|
}
|
|
5274
4653
|
});
|
|
5275
4654
|
}
|
|
@@ -5331,7 +4710,6 @@ function convertEncryptionKeyToPublic(encryptionKey) {
|
|
|
5331
4710
|
keyName: encryptionKey.keyName,
|
|
5332
4711
|
keyVersion: encryptionKey.keyVersion,
|
|
5333
4712
|
vaultUrl: encryptionKey.vaultUri,
|
|
5334
|
-
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
|
|
5335
4713
|
};
|
|
5336
4714
|
if (encryptionKey.accessCredentials) {
|
|
5337
4715
|
result.applicationId = encryptionKey.accessCredentials.applicationId;
|
|
@@ -5347,7 +4725,6 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
|
|
|
5347
4725
|
keyName: encryptionKey.keyName,
|
|
5348
4726
|
keyVersion: encryptionKey.keyVersion,
|
|
5349
4727
|
vaultUri: encryptionKey.vaultUrl,
|
|
5350
|
-
identity: encryptionKey.identity,
|
|
5351
4728
|
};
|
|
5352
4729
|
if (encryptionKey.applicationId) {
|
|
5353
4730
|
result.accessCredentials = {
|
|
@@ -5369,7 +4746,6 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
5369
4746
|
tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),
|
|
5370
4747
|
tokenFilters: generatedIndex.tokenFilters,
|
|
5371
4748
|
charFilters: generatedIndex.charFilters,
|
|
5372
|
-
normalizers: generatedIndex.normalizers,
|
|
5373
4749
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
5374
4750
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
5375
4751
|
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
@@ -5378,64 +4754,30 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
5378
4754
|
};
|
|
5379
4755
|
}
|
|
5380
4756
|
function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer) {
|
|
5381
|
-
var _a;
|
|
5382
4757
|
if (!generatedVectorizer) {
|
|
5383
4758
|
return generatedVectorizer;
|
|
5384
4759
|
}
|
|
5385
4760
|
switch (generatedVectorizer.kind) {
|
|
5386
4761
|
case "azureOpenAI": {
|
|
5387
|
-
const {
|
|
5388
|
-
const authIdentity = convertSearchIndexerDataIdentityToPublic(
|
|
5389
|
-
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), {
|
|
4762
|
+
const { parameters } = generatedVectorizer;
|
|
4763
|
+
const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
|
|
4764
|
+
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
|
|
5390
4765
|
return vectorizer;
|
|
5391
4766
|
}
|
|
5392
4767
|
case "customWebApi": {
|
|
5393
|
-
const {
|
|
5394
|
-
const authIdentity = convertSearchIndexerDataIdentityToPublic(
|
|
5395
|
-
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), {
|
|
5396
|
-
return vectorizer;
|
|
5397
|
-
}
|
|
5398
|
-
case "aiServicesVision": {
|
|
5399
|
-
const generatedVisionVectorizer = generatedVectorizer;
|
|
5400
|
-
const { aIServicesVisionParameters: generatedParameters } = generatedVisionVectorizer;
|
|
5401
|
-
const aIServicesVisionParameters = generatedParameters
|
|
5402
|
-
? Object.assign(Object.assign({}, generatedParameters), { modelVersion: (_a = generatedParameters.modelVersion) !== null && _a !== void 0 ? _a : undefined, resourceUri: generatedParameters.resourceUri, authIdentity: convertSearchIndexerDataIdentityToPublic(generatedParameters.authIdentity) }) : undefined;
|
|
5403
|
-
const vectorizer = Object.assign(Object.assign({}, generatedVisionVectorizer), { aIServicesVisionParameters });
|
|
5404
|
-
return vectorizer;
|
|
5405
|
-
}
|
|
5406
|
-
case "aml": {
|
|
5407
|
-
const generatedAMLVectorizer = generatedVectorizer;
|
|
5408
|
-
const vectorizer = Object.assign(Object.assign({}, generatedAMLVectorizer), { amlParameters: generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(generatedAMLVectorizer.aMLParameters) });
|
|
4768
|
+
const { parameters } = generatedVectorizer;
|
|
4769
|
+
const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
|
|
4770
|
+
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
|
|
5409
4771
|
return vectorizer;
|
|
5410
4772
|
}
|
|
5411
4773
|
}
|
|
5412
4774
|
logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
|
|
5413
4775
|
return generatedVectorizer;
|
|
5414
4776
|
}
|
|
5415
|
-
function
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
const { resourceId, authenticationKey, scoringUri } = aMLParameters;
|
|
5420
|
-
// Sensitive to case order
|
|
5421
|
-
switch (true) {
|
|
5422
|
-
case resourceId !== undefined && resourceId !== null: {
|
|
5423
|
-
return Object.assign(Object.assign({}, aMLParameters), { authKind: "token" });
|
|
5424
|
-
}
|
|
5425
|
-
case authenticationKey !== undefined && authenticationKey !== null: {
|
|
5426
|
-
return Object.assign(Object.assign({}, aMLParameters), { authKind: "key" });
|
|
5427
|
-
}
|
|
5428
|
-
case scoringUri !== undefined && scoringUri !== null: {
|
|
5429
|
-
return Object.assign(Object.assign({}, aMLParameters), { authKind: "none" });
|
|
5430
|
-
}
|
|
5431
|
-
}
|
|
5432
|
-
logger.warning("Unknown AML parameter kind");
|
|
5433
|
-
return aMLParameters;
|
|
5434
|
-
}
|
|
5435
|
-
function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
|
|
5436
|
-
var _a;
|
|
5437
|
-
if (!generatedAlgorithmConfiguration) {
|
|
5438
|
-
return generatedAlgorithmConfiguration;
|
|
4777
|
+
function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
|
|
4778
|
+
var _a;
|
|
4779
|
+
if (!generatedAlgorithmConfiguration) {
|
|
4780
|
+
return generatedAlgorithmConfiguration;
|
|
5439
4781
|
}
|
|
5440
4782
|
if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) {
|
|
5441
4783
|
const algorithmConfiguration = generatedAlgorithmConfiguration;
|
|
@@ -5453,13 +4795,12 @@ function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
|
|
|
5453
4795
|
}
|
|
5454
4796
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
5455
4797
|
const returnValues = results.map((result) => {
|
|
5456
|
-
const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions
|
|
4798
|
+
const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions"]);
|
|
5457
4799
|
const obj = {
|
|
5458
4800
|
score,
|
|
5459
4801
|
highlights,
|
|
5460
4802
|
rerankerScore,
|
|
5461
4803
|
captions,
|
|
5462
|
-
documentDebugInfo,
|
|
5463
4804
|
document: restProps,
|
|
5464
4805
|
};
|
|
5465
4806
|
return obj;
|
|
@@ -5486,19 +4827,11 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
5486
4827
|
return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
|
|
5487
4828
|
}
|
|
5488
4829
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
5489
|
-
const { skills, cognitiveServicesAccount,
|
|
5490
|
-
return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount),
|
|
4830
|
+
const { skills, cognitiveServicesAccount, encryptionKey, indexProjection } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "encryptionKey", "indexProjection"]);
|
|
4831
|
+
return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), encryptionKey: convertEncryptionKeyToPublic(encryptionKey), indexProjection: indexProjection });
|
|
5491
4832
|
}
|
|
5492
4833
|
function publicSkillsetToGeneratedSkillset(skillset) {
|
|
5493
|
-
return {
|
|
5494
|
-
name: skillset.name,
|
|
5495
|
-
description: skillset.description,
|
|
5496
|
-
etag: skillset.etag,
|
|
5497
|
-
skills: skillset.skills,
|
|
5498
|
-
cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount),
|
|
5499
|
-
knowledgeStore: skillset.knowledgeStore,
|
|
5500
|
-
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),
|
|
5501
|
-
};
|
|
4834
|
+
return Object.assign(Object.assign({}, skillset), { name: skillset.name, description: skillset.description, etag: skillset.etag, skills: skillset.skills, cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount), knowledgeStore: skillset.knowledgeStore, encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey) });
|
|
5502
4835
|
}
|
|
5503
4836
|
function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
5504
4837
|
const result = {
|
|
@@ -5531,7 +4864,7 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
|
|
|
5531
4864
|
const { parsingMode, dataToExtract, imageAction, pdfTextRotationAlgorithm, executionEnvironment, } = (_b = (_a = indexer.parameters) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : {};
|
|
5532
4865
|
const configuration = ((_c = indexer.parameters) === null || _c === void 0 ? void 0 : _c.configuration) && Object.assign(Object.assign({}, (_d = indexer.parameters) === null || _d === void 0 ? void 0 : _d.configuration), { parsingMode: parsingMode, dataToExtract: dataToExtract, imageAction: imageAction, pdfTextRotationAlgorithm: pdfTextRotationAlgorithm, executionEnvironment: executionEnvironment });
|
|
5533
4866
|
const parameters = Object.assign(Object.assign({}, indexer.parameters), { configuration });
|
|
5534
|
-
return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey)
|
|
4867
|
+
return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey) });
|
|
5535
4868
|
}
|
|
5536
4869
|
function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
5537
4870
|
return {
|
|
@@ -5542,7 +4875,6 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
|
5542
4875
|
connectionString: dataSource.connectionString,
|
|
5543
4876
|
},
|
|
5544
4877
|
container: dataSource.container,
|
|
5545
|
-
identity: dataSource.identity,
|
|
5546
4878
|
etag: dataSource.etag,
|
|
5547
4879
|
dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
|
|
5548
4880
|
dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
|
|
@@ -5556,7 +4888,6 @@ function generatedDataSourceToPublicDataSource(dataSource) {
|
|
|
5556
4888
|
type: dataSource.type,
|
|
5557
4889
|
connectionString: dataSource.credentials.connectionString,
|
|
5558
4890
|
container: dataSource.container,
|
|
5559
|
-
identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity),
|
|
5560
4891
|
etag: dataSource.etag,
|
|
5561
4892
|
dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
|
|
5562
4893
|
dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
|
|
@@ -5602,18 +4933,6 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
5602
4933
|
const offset = Math.floor(Math.random() * (max - min + 1));
|
|
5603
4934
|
return offset + min;
|
|
5604
4935
|
}
|
|
5605
|
-
function convertKnowledgeStoreToPublic(knowledgeStore) {
|
|
5606
|
-
if (!knowledgeStore) {
|
|
5607
|
-
return knowledgeStore;
|
|
5608
|
-
}
|
|
5609
|
-
return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
|
|
5610
|
-
}
|
|
5611
|
-
function convertSearchIndexerCacheToPublic(cache) {
|
|
5612
|
-
if (!cache) {
|
|
5613
|
-
return cache;
|
|
5614
|
-
}
|
|
5615
|
-
return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
|
|
5616
|
-
}
|
|
5617
4936
|
|
|
5618
4937
|
// Copyright (c) Microsoft Corporation.
|
|
5619
4938
|
// Licensed under the MIT license.
|
|
@@ -5704,7 +5023,6 @@ class SearchClient {
|
|
|
5704
5023
|
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
5705
5024
|
this.apiVersion = this.serviceVersion;
|
|
5706
5025
|
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
5707
|
-
this.pipeline = this.client.pipeline;
|
|
5708
5026
|
if (coreAuth.isTokenCredential(credential)) {
|
|
5709
5027
|
const scope = options.audience
|
|
5710
5028
|
? `${options.audience}/.default`
|
|
@@ -5803,10 +5121,10 @@ class SearchClient {
|
|
|
5803
5121
|
}
|
|
5804
5122
|
}
|
|
5805
5123
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
5806
|
-
const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions
|
|
5807
|
-
const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, {
|
|
5124
|
+
const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions } = _a, restOptions = tslib.__rest(_a, ["includeTotalCount", "orderBy", "searchFields", "select", "vectorSearchOptions", "semanticSearchOptions"]);
|
|
5125
|
+
const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { configurationName, errorMode, answers, captions } = _b, restSemanticOptions = tslib.__rest(_b, ["configurationName", "errorMode", "answers", "captions"]);
|
|
5808
5126
|
const _c = vectorSearchOptions !== null && vectorSearchOptions !== void 0 ? vectorSearchOptions : {}, { queries, filterMode } = _c, restVectorOptions = tslib.__rest(_c, ["queries", "filterMode"]);
|
|
5809
|
-
const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields),
|
|
5127
|
+
const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: queries === null || queries === void 0 ? void 0 : queries.map(this.convertVectorQuery.bind(this)), answers: this.convertQueryAnswers(answers), captions: this.convertQueryCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, vectorFilterMode: filterMode });
|
|
5810
5128
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
|
|
5811
5129
|
try {
|
|
5812
5130
|
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
|
|
@@ -6192,12 +5510,6 @@ class SearchClient {
|
|
|
6192
5510
|
}
|
|
6193
5511
|
return searchFields;
|
|
6194
5512
|
}
|
|
6195
|
-
convertSemanticFields(semanticFields) {
|
|
6196
|
-
if (semanticFields) {
|
|
6197
|
-
return semanticFields.join(",");
|
|
6198
|
-
}
|
|
6199
|
-
return semanticFields;
|
|
6200
|
-
}
|
|
6201
5513
|
convertOrderBy(orderBy) {
|
|
6202
5514
|
if (orderBy) {
|
|
6203
5515
|
return orderBy.join(",");
|
|
@@ -6286,13 +5598,6 @@ const SearchIndexerDataSource = {
|
|
|
6286
5598
|
className: "SearchIndexerDataContainer",
|
|
6287
5599
|
},
|
|
6288
5600
|
},
|
|
6289
|
-
identity: {
|
|
6290
|
-
serializedName: "identity",
|
|
6291
|
-
type: {
|
|
6292
|
-
name: "Composite",
|
|
6293
|
-
className: "SearchIndexerDataIdentity",
|
|
6294
|
-
},
|
|
6295
|
-
},
|
|
6296
5601
|
dataChangeDetectionPolicy: {
|
|
6297
5602
|
serializedName: "dataChangeDetectionPolicy",
|
|
6298
5603
|
type: {
|
|
@@ -6358,26 +5663,6 @@ const SearchIndexerDataContainer = {
|
|
|
6358
5663
|
},
|
|
6359
5664
|
},
|
|
6360
5665
|
};
|
|
6361
|
-
const SearchIndexerDataIdentity = {
|
|
6362
|
-
type: {
|
|
6363
|
-
name: "Composite",
|
|
6364
|
-
className: "SearchIndexerDataIdentity",
|
|
6365
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
6366
|
-
polymorphicDiscriminator: {
|
|
6367
|
-
serializedName: "@odata\\.type",
|
|
6368
|
-
clientName: "odatatype",
|
|
6369
|
-
},
|
|
6370
|
-
modelProperties: {
|
|
6371
|
-
odatatype: {
|
|
6372
|
-
serializedName: "@odata\\.type",
|
|
6373
|
-
required: true,
|
|
6374
|
-
type: {
|
|
6375
|
-
name: "String",
|
|
6376
|
-
},
|
|
6377
|
-
},
|
|
6378
|
-
},
|
|
6379
|
-
},
|
|
6380
|
-
};
|
|
6381
5666
|
const DataChangeDetectionPolicy = {
|
|
6382
5667
|
type: {
|
|
6383
5668
|
name: "Composite",
|
|
@@ -6451,13 +5736,6 @@ const SearchResourceEncryptionKey = {
|
|
|
6451
5736
|
className: "AzureActiveDirectoryApplicationCredentials",
|
|
6452
5737
|
},
|
|
6453
5738
|
},
|
|
6454
|
-
identity: {
|
|
6455
|
-
serializedName: "identity",
|
|
6456
|
-
type: {
|
|
6457
|
-
name: "Composite",
|
|
6458
|
-
className: "SearchIndexerDataIdentity",
|
|
6459
|
-
},
|
|
6460
|
-
},
|
|
6461
5739
|
},
|
|
6462
5740
|
},
|
|
6463
5741
|
};
|
|
@@ -6597,36 +5875,6 @@ const ListDataSourcesResult = {
|
|
|
6597
5875
|
},
|
|
6598
5876
|
},
|
|
6599
5877
|
};
|
|
6600
|
-
const DocumentKeysOrIds = {
|
|
6601
|
-
type: {
|
|
6602
|
-
name: "Composite",
|
|
6603
|
-
className: "DocumentKeysOrIds",
|
|
6604
|
-
modelProperties: {
|
|
6605
|
-
documentKeys: {
|
|
6606
|
-
serializedName: "documentKeys",
|
|
6607
|
-
type: {
|
|
6608
|
-
name: "Sequence",
|
|
6609
|
-
element: {
|
|
6610
|
-
type: {
|
|
6611
|
-
name: "String",
|
|
6612
|
-
},
|
|
6613
|
-
},
|
|
6614
|
-
},
|
|
6615
|
-
},
|
|
6616
|
-
datasourceDocumentIds: {
|
|
6617
|
-
serializedName: "datasourceDocumentIds",
|
|
6618
|
-
type: {
|
|
6619
|
-
name: "Sequence",
|
|
6620
|
-
element: {
|
|
6621
|
-
type: {
|
|
6622
|
-
name: "String",
|
|
6623
|
-
},
|
|
6624
|
-
},
|
|
6625
|
-
},
|
|
6626
|
-
},
|
|
6627
|
-
},
|
|
6628
|
-
},
|
|
6629
|
-
};
|
|
6630
5878
|
const SearchIndexer = {
|
|
6631
5879
|
type: {
|
|
6632
5880
|
name: "Composite",
|
|
@@ -6724,13 +5972,6 @@ const SearchIndexer = {
|
|
|
6724
5972
|
className: "SearchResourceEncryptionKey",
|
|
6725
5973
|
},
|
|
6726
5974
|
},
|
|
6727
|
-
cache: {
|
|
6728
|
-
serializedName: "cache",
|
|
6729
|
-
type: {
|
|
6730
|
-
name: "Composite",
|
|
6731
|
-
className: "SearchIndexerCache",
|
|
6732
|
-
},
|
|
6733
|
-
},
|
|
6734
5975
|
},
|
|
6735
5976
|
},
|
|
6736
5977
|
};
|
|
@@ -6962,34 +6203,6 @@ const FieldMappingFunction = {
|
|
|
6962
6203
|
},
|
|
6963
6204
|
},
|
|
6964
6205
|
};
|
|
6965
|
-
const SearchIndexerCache = {
|
|
6966
|
-
type: {
|
|
6967
|
-
name: "Composite",
|
|
6968
|
-
className: "SearchIndexerCache",
|
|
6969
|
-
modelProperties: {
|
|
6970
|
-
storageConnectionString: {
|
|
6971
|
-
serializedName: "storageConnectionString",
|
|
6972
|
-
type: {
|
|
6973
|
-
name: "String",
|
|
6974
|
-
},
|
|
6975
|
-
},
|
|
6976
|
-
enableReprocessing: {
|
|
6977
|
-
serializedName: "enableReprocessing",
|
|
6978
|
-
nullable: true,
|
|
6979
|
-
type: {
|
|
6980
|
-
name: "Boolean",
|
|
6981
|
-
},
|
|
6982
|
-
},
|
|
6983
|
-
identity: {
|
|
6984
|
-
serializedName: "identity",
|
|
6985
|
-
type: {
|
|
6986
|
-
name: "Composite",
|
|
6987
|
-
className: "SearchIndexerDataIdentity",
|
|
6988
|
-
},
|
|
6989
|
-
},
|
|
6990
|
-
},
|
|
6991
|
-
},
|
|
6992
|
-
};
|
|
6993
6206
|
const ListIndexersResult = {
|
|
6994
6207
|
type: {
|
|
6995
6208
|
name: "Composite",
|
|
@@ -7071,20 +6284,6 @@ const IndexerExecutionResult = {
|
|
|
7071
6284
|
allowedValues: ["transientFailure", "success", "inProgress", "reset"],
|
|
7072
6285
|
},
|
|
7073
6286
|
},
|
|
7074
|
-
statusDetail: {
|
|
7075
|
-
serializedName: "statusDetail",
|
|
7076
|
-
readOnly: true,
|
|
7077
|
-
type: {
|
|
7078
|
-
name: "String",
|
|
7079
|
-
},
|
|
7080
|
-
},
|
|
7081
|
-
currentState: {
|
|
7082
|
-
serializedName: "currentState",
|
|
7083
|
-
type: {
|
|
7084
|
-
name: "Composite",
|
|
7085
|
-
className: "IndexerState",
|
|
7086
|
-
},
|
|
7087
|
-
},
|
|
7088
6287
|
errorMessage: {
|
|
7089
6288
|
serializedName: "errorMessage",
|
|
7090
6289
|
readOnly: true,
|
|
@@ -7168,73 +6367,6 @@ const IndexerExecutionResult = {
|
|
|
7168
6367
|
},
|
|
7169
6368
|
},
|
|
7170
6369
|
};
|
|
7171
|
-
const IndexerState = {
|
|
7172
|
-
type: {
|
|
7173
|
-
name: "Composite",
|
|
7174
|
-
className: "IndexerState",
|
|
7175
|
-
modelProperties: {
|
|
7176
|
-
mode: {
|
|
7177
|
-
serializedName: "mode",
|
|
7178
|
-
readOnly: true,
|
|
7179
|
-
type: {
|
|
7180
|
-
name: "String",
|
|
7181
|
-
},
|
|
7182
|
-
},
|
|
7183
|
-
allDocumentsInitialChangeTrackingState: {
|
|
7184
|
-
serializedName: "allDocsInitialChangeTrackingState",
|
|
7185
|
-
readOnly: true,
|
|
7186
|
-
type: {
|
|
7187
|
-
name: "String",
|
|
7188
|
-
},
|
|
7189
|
-
},
|
|
7190
|
-
allDocumentsFinalChangeTrackingState: {
|
|
7191
|
-
serializedName: "allDocsFinalChangeTrackingState",
|
|
7192
|
-
readOnly: true,
|
|
7193
|
-
type: {
|
|
7194
|
-
name: "String",
|
|
7195
|
-
},
|
|
7196
|
-
},
|
|
7197
|
-
resetDocumentsInitialChangeTrackingState: {
|
|
7198
|
-
serializedName: "resetDocsInitialChangeTrackingState",
|
|
7199
|
-
readOnly: true,
|
|
7200
|
-
type: {
|
|
7201
|
-
name: "String",
|
|
7202
|
-
},
|
|
7203
|
-
},
|
|
7204
|
-
resetDocumentsFinalChangeTrackingState: {
|
|
7205
|
-
serializedName: "resetDocsFinalChangeTrackingState",
|
|
7206
|
-
readOnly: true,
|
|
7207
|
-
type: {
|
|
7208
|
-
name: "String",
|
|
7209
|
-
},
|
|
7210
|
-
},
|
|
7211
|
-
resetDocumentKeys: {
|
|
7212
|
-
serializedName: "resetDocumentKeys",
|
|
7213
|
-
readOnly: true,
|
|
7214
|
-
type: {
|
|
7215
|
-
name: "Sequence",
|
|
7216
|
-
element: {
|
|
7217
|
-
type: {
|
|
7218
|
-
name: "String",
|
|
7219
|
-
},
|
|
7220
|
-
},
|
|
7221
|
-
},
|
|
7222
|
-
},
|
|
7223
|
-
resetDatasourceDocumentIds: {
|
|
7224
|
-
serializedName: "resetDatasourceDocumentIds",
|
|
7225
|
-
readOnly: true,
|
|
7226
|
-
type: {
|
|
7227
|
-
name: "Sequence",
|
|
7228
|
-
element: {
|
|
7229
|
-
type: {
|
|
7230
|
-
name: "String",
|
|
7231
|
-
},
|
|
7232
|
-
},
|
|
7233
|
-
},
|
|
7234
|
-
},
|
|
7235
|
-
},
|
|
7236
|
-
},
|
|
7237
|
-
};
|
|
7238
6370
|
const SearchIndexerError = {
|
|
7239
6371
|
type: {
|
|
7240
6372
|
name: "Composite",
|
|
@@ -7405,11 +6537,11 @@ const SearchIndexerSkillset = {
|
|
|
7405
6537
|
className: "SearchIndexerKnowledgeStore",
|
|
7406
6538
|
},
|
|
7407
6539
|
},
|
|
7408
|
-
|
|
6540
|
+
indexProjection: {
|
|
7409
6541
|
serializedName: "indexProjections",
|
|
7410
6542
|
type: {
|
|
7411
6543
|
name: "Composite",
|
|
7412
|
-
className: "
|
|
6544
|
+
className: "SearchIndexerIndexProjection",
|
|
7413
6545
|
},
|
|
7414
6546
|
},
|
|
7415
6547
|
etag: {
|
|
@@ -7603,20 +6735,6 @@ const SearchIndexerKnowledgeStore = {
|
|
|
7603
6735
|
},
|
|
7604
6736
|
},
|
|
7605
6737
|
},
|
|
7606
|
-
identity: {
|
|
7607
|
-
serializedName: "identity",
|
|
7608
|
-
type: {
|
|
7609
|
-
name: "Composite",
|
|
7610
|
-
className: "SearchIndexerDataIdentity",
|
|
7611
|
-
},
|
|
7612
|
-
},
|
|
7613
|
-
parameters: {
|
|
7614
|
-
serializedName: "parameters",
|
|
7615
|
-
type: {
|
|
7616
|
-
name: "Composite",
|
|
7617
|
-
className: "SearchIndexerKnowledgeStoreParameters",
|
|
7618
|
-
},
|
|
7619
|
-
},
|
|
7620
6738
|
},
|
|
7621
6739
|
},
|
|
7622
6740
|
};
|
|
@@ -7708,26 +6826,10 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
|
|
|
7708
6826
|
},
|
|
7709
6827
|
},
|
|
7710
6828
|
};
|
|
7711
|
-
const
|
|
7712
|
-
type: {
|
|
7713
|
-
name: "Composite",
|
|
7714
|
-
className: "SearchIndexerKnowledgeStoreParameters",
|
|
7715
|
-
additionalProperties: { type: { name: "Object" } },
|
|
7716
|
-
modelProperties: {
|
|
7717
|
-
synthesizeGeneratedKeyName: {
|
|
7718
|
-
defaultValue: false,
|
|
7719
|
-
serializedName: "synthesizeGeneratedKeyName",
|
|
7720
|
-
type: {
|
|
7721
|
-
name: "Boolean",
|
|
7722
|
-
},
|
|
7723
|
-
},
|
|
7724
|
-
},
|
|
7725
|
-
},
|
|
7726
|
-
};
|
|
7727
|
-
const SearchIndexerIndexProjections = {
|
|
6829
|
+
const SearchIndexerIndexProjection = {
|
|
7728
6830
|
type: {
|
|
7729
6831
|
name: "Composite",
|
|
7730
|
-
className: "
|
|
6832
|
+
className: "SearchIndexerIndexProjection",
|
|
7731
6833
|
modelProperties: {
|
|
7732
6834
|
selectors: {
|
|
7733
6835
|
serializedName: "selectors",
|
|
@@ -7746,7 +6848,7 @@ const SearchIndexerIndexProjections = {
|
|
|
7746
6848
|
serializedName: "parameters",
|
|
7747
6849
|
type: {
|
|
7748
6850
|
name: "Composite",
|
|
7749
|
-
className: "
|
|
6851
|
+
className: "SearchIndexerIndexProjectionParameters",
|
|
7750
6852
|
},
|
|
7751
6853
|
},
|
|
7752
6854
|
},
|
|
@@ -7794,10 +6896,10 @@ const SearchIndexerIndexProjectionSelector = {
|
|
|
7794
6896
|
},
|
|
7795
6897
|
},
|
|
7796
6898
|
};
|
|
7797
|
-
const
|
|
6899
|
+
const SearchIndexerIndexProjectionParameters = {
|
|
7798
6900
|
type: {
|
|
7799
6901
|
name: "Composite",
|
|
7800
|
-
className: "
|
|
6902
|
+
className: "SearchIndexerIndexProjectionParameters",
|
|
7801
6903
|
additionalProperties: { type: { name: "Object" } },
|
|
7802
6904
|
modelProperties: {
|
|
7803
6905
|
projectionMode: {
|
|
@@ -7831,25 +6933,6 @@ const ListSkillsetsResult = {
|
|
|
7831
6933
|
},
|
|
7832
6934
|
},
|
|
7833
6935
|
};
|
|
7834
|
-
const SkillNames = {
|
|
7835
|
-
type: {
|
|
7836
|
-
name: "Composite",
|
|
7837
|
-
className: "SkillNames",
|
|
7838
|
-
modelProperties: {
|
|
7839
|
-
skillNames: {
|
|
7840
|
-
serializedName: "skillNames",
|
|
7841
|
-
type: {
|
|
7842
|
-
name: "Sequence",
|
|
7843
|
-
element: {
|
|
7844
|
-
type: {
|
|
7845
|
-
name: "String",
|
|
7846
|
-
},
|
|
7847
|
-
},
|
|
7848
|
-
},
|
|
7849
|
-
},
|
|
7850
|
-
},
|
|
7851
|
-
},
|
|
7852
|
-
};
|
|
7853
6936
|
const SynonymMap = {
|
|
7854
6937
|
type: {
|
|
7855
6938
|
name: "Composite",
|
|
@@ -8025,18 +7108,6 @@ const SearchIndex = {
|
|
|
8025
7108
|
},
|
|
8026
7109
|
},
|
|
8027
7110
|
},
|
|
8028
|
-
normalizers: {
|
|
8029
|
-
serializedName: "normalizers",
|
|
8030
|
-
type: {
|
|
8031
|
-
name: "Sequence",
|
|
8032
|
-
element: {
|
|
8033
|
-
type: {
|
|
8034
|
-
name: "Composite",
|
|
8035
|
-
className: "LexicalNormalizer",
|
|
8036
|
-
},
|
|
8037
|
-
},
|
|
8038
|
-
},
|
|
8039
|
-
},
|
|
8040
7111
|
encryptionKey: {
|
|
8041
7112
|
serializedName: "encryptionKey",
|
|
8042
7113
|
type: {
|
|
@@ -8156,13 +7227,6 @@ const SearchField = {
|
|
|
8156
7227
|
name: "String",
|
|
8157
7228
|
},
|
|
8158
7229
|
},
|
|
8159
|
-
normalizer: {
|
|
8160
|
-
serializedName: "normalizer",
|
|
8161
|
-
nullable: true,
|
|
8162
|
-
type: {
|
|
8163
|
-
name: "String",
|
|
8164
|
-
},
|
|
8165
|
-
},
|
|
8166
7230
|
vectorSearchDimensions: {
|
|
8167
7231
|
constraints: {
|
|
8168
7232
|
InclusiveMaximum: 2048,
|
|
@@ -8488,33 +7552,6 @@ const CharFilter = {
|
|
|
8488
7552
|
},
|
|
8489
7553
|
},
|
|
8490
7554
|
};
|
|
8491
|
-
const LexicalNormalizer = {
|
|
8492
|
-
type: {
|
|
8493
|
-
name: "Composite",
|
|
8494
|
-
className: "LexicalNormalizer",
|
|
8495
|
-
uberParent: "LexicalNormalizer",
|
|
8496
|
-
polymorphicDiscriminator: {
|
|
8497
|
-
serializedName: "@odata\\.type",
|
|
8498
|
-
clientName: "odatatype",
|
|
8499
|
-
},
|
|
8500
|
-
modelProperties: {
|
|
8501
|
-
odatatype: {
|
|
8502
|
-
serializedName: "@odata\\.type",
|
|
8503
|
-
required: true,
|
|
8504
|
-
type: {
|
|
8505
|
-
name: "String",
|
|
8506
|
-
},
|
|
8507
|
-
},
|
|
8508
|
-
name: {
|
|
8509
|
-
serializedName: "name",
|
|
8510
|
-
required: true,
|
|
8511
|
-
type: {
|
|
8512
|
-
name: "String",
|
|
8513
|
-
},
|
|
8514
|
-
},
|
|
8515
|
-
},
|
|
8516
|
-
},
|
|
8517
|
-
};
|
|
8518
7555
|
const Similarity = {
|
|
8519
7556
|
type: {
|
|
8520
7557
|
name: "Composite",
|
|
@@ -8685,7 +7722,7 @@ const VectorSearch = {
|
|
|
8685
7722
|
element: {
|
|
8686
7723
|
type: {
|
|
8687
7724
|
name: "Composite",
|
|
8688
|
-
className: "
|
|
7725
|
+
className: "VectorSearchCompression",
|
|
8689
7726
|
},
|
|
8690
7727
|
},
|
|
8691
7728
|
},
|
|
@@ -8712,13 +7749,13 @@ const VectorSearchProfile = {
|
|
|
8712
7749
|
name: "String",
|
|
8713
7750
|
},
|
|
8714
7751
|
},
|
|
8715
|
-
|
|
7752
|
+
vectorizerName: {
|
|
8716
7753
|
serializedName: "vectorizer",
|
|
8717
7754
|
type: {
|
|
8718
7755
|
name: "String",
|
|
8719
7756
|
},
|
|
8720
7757
|
},
|
|
8721
|
-
|
|
7758
|
+
compressionName: {
|
|
8722
7759
|
serializedName: "compression",
|
|
8723
7760
|
type: {
|
|
8724
7761
|
name: "String",
|
|
@@ -8764,7 +7801,7 @@ const VectorSearchVectorizer = {
|
|
|
8764
7801
|
clientName: "kind",
|
|
8765
7802
|
},
|
|
8766
7803
|
modelProperties: {
|
|
8767
|
-
|
|
7804
|
+
vectorizerName: {
|
|
8768
7805
|
serializedName: "name",
|
|
8769
7806
|
required: true,
|
|
8770
7807
|
type: {
|
|
@@ -8781,17 +7818,17 @@ const VectorSearchVectorizer = {
|
|
|
8781
7818
|
},
|
|
8782
7819
|
},
|
|
8783
7820
|
};
|
|
8784
|
-
const
|
|
7821
|
+
const VectorSearchCompression = {
|
|
8785
7822
|
type: {
|
|
8786
7823
|
name: "Composite",
|
|
8787
|
-
className: "
|
|
8788
|
-
uberParent: "
|
|
7824
|
+
className: "VectorSearchCompression",
|
|
7825
|
+
uberParent: "VectorSearchCompression",
|
|
8789
7826
|
polymorphicDiscriminator: {
|
|
8790
7827
|
serializedName: "kind",
|
|
8791
7828
|
clientName: "kind",
|
|
8792
7829
|
},
|
|
8793
7830
|
modelProperties: {
|
|
8794
|
-
|
|
7831
|
+
compressionName: {
|
|
8795
7832
|
serializedName: "name",
|
|
8796
7833
|
required: true,
|
|
8797
7834
|
type: {
|
|
@@ -8900,12 +7937,6 @@ const AnalyzeRequest = {
|
|
|
8900
7937
|
name: "String",
|
|
8901
7938
|
},
|
|
8902
7939
|
},
|
|
8903
|
-
normalizer: {
|
|
8904
|
-
serializedName: "normalizer",
|
|
8905
|
-
type: {
|
|
8906
|
-
name: "String",
|
|
8907
|
-
},
|
|
8908
|
-
},
|
|
8909
7940
|
tokenFilters: {
|
|
8910
7941
|
serializedName: "tokenFilters",
|
|
8911
7942
|
type: {
|
|
@@ -8992,71 +8023,16 @@ const AnalyzedTokenInfo = {
|
|
|
8992
8023
|
},
|
|
8993
8024
|
},
|
|
8994
8025
|
};
|
|
8995
|
-
const
|
|
8026
|
+
const ServiceStatistics = {
|
|
8996
8027
|
type: {
|
|
8997
8028
|
name: "Composite",
|
|
8998
|
-
className: "
|
|
8029
|
+
className: "ServiceStatistics",
|
|
8999
8030
|
modelProperties: {
|
|
9000
|
-
|
|
9001
|
-
serializedName: "
|
|
9002
|
-
required: true,
|
|
8031
|
+
counters: {
|
|
8032
|
+
serializedName: "counters",
|
|
9003
8033
|
type: {
|
|
9004
|
-
name: "
|
|
9005
|
-
|
|
9006
|
-
},
|
|
9007
|
-
indexes: {
|
|
9008
|
-
serializedName: "indexes",
|
|
9009
|
-
required: true,
|
|
9010
|
-
type: {
|
|
9011
|
-
name: "Sequence",
|
|
9012
|
-
element: {
|
|
9013
|
-
type: {
|
|
9014
|
-
name: "String",
|
|
9015
|
-
},
|
|
9016
|
-
},
|
|
9017
|
-
},
|
|
9018
|
-
},
|
|
9019
|
-
etag: {
|
|
9020
|
-
serializedName: "@odata\\.etag",
|
|
9021
|
-
type: {
|
|
9022
|
-
name: "String",
|
|
9023
|
-
},
|
|
9024
|
-
},
|
|
9025
|
-
},
|
|
9026
|
-
},
|
|
9027
|
-
};
|
|
9028
|
-
const ListAliasesResult = {
|
|
9029
|
-
type: {
|
|
9030
|
-
name: "Composite",
|
|
9031
|
-
className: "ListAliasesResult",
|
|
9032
|
-
modelProperties: {
|
|
9033
|
-
aliases: {
|
|
9034
|
-
serializedName: "value",
|
|
9035
|
-
required: true,
|
|
9036
|
-
readOnly: true,
|
|
9037
|
-
type: {
|
|
9038
|
-
name: "Sequence",
|
|
9039
|
-
element: {
|
|
9040
|
-
type: {
|
|
9041
|
-
name: "Composite",
|
|
9042
|
-
className: "SearchAlias",
|
|
9043
|
-
},
|
|
9044
|
-
},
|
|
9045
|
-
},
|
|
9046
|
-
},
|
|
9047
|
-
},
|
|
9048
|
-
},
|
|
9049
|
-
};
|
|
9050
|
-
const ServiceStatistics = {
|
|
9051
|
-
type: {
|
|
9052
|
-
name: "Composite",
|
|
9053
|
-
className: "ServiceStatistics",
|
|
9054
|
-
modelProperties: {
|
|
9055
|
-
counters: {
|
|
9056
|
-
serializedName: "counters",
|
|
9057
|
-
type: {
|
|
9058
|
-
name: "Composite",
|
|
9059
|
-
className: "ServiceCounters",
|
|
8034
|
+
name: "Composite",
|
|
8035
|
+
className: "ServiceCounters",
|
|
9060
8036
|
},
|
|
9061
8037
|
},
|
|
9062
8038
|
limits: {
|
|
@@ -9074,13 +8050,6 @@ const ServiceCounters = {
|
|
|
9074
8050
|
name: "Composite",
|
|
9075
8051
|
className: "ServiceCounters",
|
|
9076
8052
|
modelProperties: {
|
|
9077
|
-
aliasCounter: {
|
|
9078
|
-
serializedName: "aliasesCount",
|
|
9079
|
-
type: {
|
|
9080
|
-
name: "Composite",
|
|
9081
|
-
className: "ResourceCounter",
|
|
9082
|
-
},
|
|
9083
|
-
},
|
|
9084
8053
|
documentCounter: {
|
|
9085
8054
|
serializedName: "documentCount",
|
|
9086
8055
|
type: {
|
|
@@ -9195,7 +8164,7 @@ const ServiceLimits = {
|
|
|
9195
8164
|
name: "Number",
|
|
9196
8165
|
},
|
|
9197
8166
|
},
|
|
9198
|
-
|
|
8167
|
+
maxStoragePerIndexInBytes: {
|
|
9199
8168
|
serializedName: "maxStoragePerIndex",
|
|
9200
8169
|
nullable: true,
|
|
9201
8170
|
type: {
|
|
@@ -9291,7 +8260,7 @@ const AzureOpenAIParameters = {
|
|
|
9291
8260
|
name: "Composite",
|
|
9292
8261
|
className: "AzureOpenAIParameters",
|
|
9293
8262
|
modelProperties: {
|
|
9294
|
-
|
|
8263
|
+
resourceUrl: {
|
|
9295
8264
|
serializedName: "resourceUri",
|
|
9296
8265
|
type: {
|
|
9297
8266
|
name: "String",
|
|
@@ -9325,10 +8294,30 @@ const AzureOpenAIParameters = {
|
|
|
9325
8294
|
},
|
|
9326
8295
|
},
|
|
9327
8296
|
};
|
|
9328
|
-
const
|
|
8297
|
+
const SearchIndexerDataIdentity = {
|
|
8298
|
+
type: {
|
|
8299
|
+
name: "Composite",
|
|
8300
|
+
className: "SearchIndexerDataIdentity",
|
|
8301
|
+
uberParent: "SearchIndexerDataIdentity",
|
|
8302
|
+
polymorphicDiscriminator: {
|
|
8303
|
+
serializedName: "@odata\\.type",
|
|
8304
|
+
clientName: "odatatype",
|
|
8305
|
+
},
|
|
8306
|
+
modelProperties: {
|
|
8307
|
+
odatatype: {
|
|
8308
|
+
serializedName: "@odata\\.type",
|
|
8309
|
+
required: true,
|
|
8310
|
+
type: {
|
|
8311
|
+
name: "String",
|
|
8312
|
+
},
|
|
8313
|
+
},
|
|
8314
|
+
},
|
|
8315
|
+
},
|
|
8316
|
+
};
|
|
8317
|
+
const WebApiParameters = {
|
|
9329
8318
|
type: {
|
|
9330
8319
|
name: "Composite",
|
|
9331
|
-
className: "
|
|
8320
|
+
className: "WebApiParameters",
|
|
9332
8321
|
modelProperties: {
|
|
9333
8322
|
uri: {
|
|
9334
8323
|
serializedName: "uri",
|
|
@@ -9372,92 +8361,6 @@ const CustomWebApiParameters = {
|
|
|
9372
8361
|
},
|
|
9373
8362
|
},
|
|
9374
8363
|
};
|
|
9375
|
-
const AIServicesVisionParameters = {
|
|
9376
|
-
type: {
|
|
9377
|
-
name: "Composite",
|
|
9378
|
-
className: "AIServicesVisionParameters",
|
|
9379
|
-
modelProperties: {
|
|
9380
|
-
modelVersion: {
|
|
9381
|
-
serializedName: "modelVersion",
|
|
9382
|
-
required: true,
|
|
9383
|
-
nullable: true,
|
|
9384
|
-
type: {
|
|
9385
|
-
name: "String",
|
|
9386
|
-
},
|
|
9387
|
-
},
|
|
9388
|
-
resourceUri: {
|
|
9389
|
-
serializedName: "resourceUri",
|
|
9390
|
-
required: true,
|
|
9391
|
-
type: {
|
|
9392
|
-
name: "String",
|
|
9393
|
-
},
|
|
9394
|
-
},
|
|
9395
|
-
apiKey: {
|
|
9396
|
-
serializedName: "apiKey",
|
|
9397
|
-
type: {
|
|
9398
|
-
name: "String",
|
|
9399
|
-
},
|
|
9400
|
-
},
|
|
9401
|
-
authIdentity: {
|
|
9402
|
-
serializedName: "authIdentity",
|
|
9403
|
-
type: {
|
|
9404
|
-
name: "Composite",
|
|
9405
|
-
className: "SearchIndexerDataIdentity",
|
|
9406
|
-
},
|
|
9407
|
-
},
|
|
9408
|
-
},
|
|
9409
|
-
},
|
|
9410
|
-
};
|
|
9411
|
-
const AMLParameters = {
|
|
9412
|
-
type: {
|
|
9413
|
-
name: "Composite",
|
|
9414
|
-
className: "AMLParameters",
|
|
9415
|
-
modelProperties: {
|
|
9416
|
-
scoringUri: {
|
|
9417
|
-
serializedName: "uri",
|
|
9418
|
-
required: true,
|
|
9419
|
-
nullable: true,
|
|
9420
|
-
type: {
|
|
9421
|
-
name: "String",
|
|
9422
|
-
},
|
|
9423
|
-
},
|
|
9424
|
-
authenticationKey: {
|
|
9425
|
-
serializedName: "key",
|
|
9426
|
-
nullable: true,
|
|
9427
|
-
type: {
|
|
9428
|
-
name: "String",
|
|
9429
|
-
},
|
|
9430
|
-
},
|
|
9431
|
-
resourceId: {
|
|
9432
|
-
serializedName: "resourceId",
|
|
9433
|
-
nullable: true,
|
|
9434
|
-
type: {
|
|
9435
|
-
name: "String",
|
|
9436
|
-
},
|
|
9437
|
-
},
|
|
9438
|
-
timeout: {
|
|
9439
|
-
serializedName: "timeout",
|
|
9440
|
-
nullable: true,
|
|
9441
|
-
type: {
|
|
9442
|
-
name: "TimeSpan",
|
|
9443
|
-
},
|
|
9444
|
-
},
|
|
9445
|
-
region: {
|
|
9446
|
-
serializedName: "region",
|
|
9447
|
-
nullable: true,
|
|
9448
|
-
type: {
|
|
9449
|
-
name: "String",
|
|
9450
|
-
},
|
|
9451
|
-
},
|
|
9452
|
-
modelName: {
|
|
9453
|
-
serializedName: "modelName",
|
|
9454
|
-
type: {
|
|
9455
|
-
name: "String",
|
|
9456
|
-
},
|
|
9457
|
-
},
|
|
9458
|
-
},
|
|
9459
|
-
},
|
|
9460
|
-
};
|
|
9461
8364
|
const DistanceScoringParameters = {
|
|
9462
8365
|
type: {
|
|
9463
8366
|
name: "Composite",
|
|
@@ -9538,6 +8441,22 @@ const TagScoringParameters = {
|
|
|
9538
8441
|
},
|
|
9539
8442
|
},
|
|
9540
8443
|
};
|
|
8444
|
+
const SearchIndexerKnowledgeStoreParameters = {
|
|
8445
|
+
type: {
|
|
8446
|
+
name: "Composite",
|
|
8447
|
+
className: "SearchIndexerKnowledgeStoreParameters",
|
|
8448
|
+
additionalProperties: { type: { name: "Object" } },
|
|
8449
|
+
modelProperties: {
|
|
8450
|
+
synthesizeGeneratedKeyName: {
|
|
8451
|
+
defaultValue: false,
|
|
8452
|
+
serializedName: "synthesizeGeneratedKeyName",
|
|
8453
|
+
type: {
|
|
8454
|
+
name: "Boolean",
|
|
8455
|
+
},
|
|
8456
|
+
},
|
|
8457
|
+
},
|
|
8458
|
+
},
|
|
8459
|
+
};
|
|
9541
8460
|
const CustomEntity = {
|
|
9542
8461
|
type: {
|
|
9543
8462
|
name: "Composite",
|
|
@@ -9672,32 +8591,6 @@ const CustomEntityAlias = {
|
|
|
9672
8591
|
},
|
|
9673
8592
|
},
|
|
9674
8593
|
};
|
|
9675
|
-
const SearchIndexerDataNoneIdentity = {
|
|
9676
|
-
serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
|
|
9677
|
-
type: {
|
|
9678
|
-
name: "Composite",
|
|
9679
|
-
className: "SearchIndexerDataNoneIdentity",
|
|
9680
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
9681
|
-
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
9682
|
-
modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties),
|
|
9683
|
-
},
|
|
9684
|
-
};
|
|
9685
|
-
const SearchIndexerDataUserAssignedIdentity = {
|
|
9686
|
-
serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
|
|
9687
|
-
type: {
|
|
9688
|
-
name: "Composite",
|
|
9689
|
-
className: "SearchIndexerDataUserAssignedIdentity",
|
|
9690
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
9691
|
-
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
9692
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
|
|
9693
|
-
serializedName: "userAssignedIdentity",
|
|
9694
|
-
required: true,
|
|
9695
|
-
type: {
|
|
9696
|
-
name: "String",
|
|
9697
|
-
},
|
|
9698
|
-
} }),
|
|
9699
|
-
},
|
|
9700
|
-
};
|
|
9701
8594
|
const HighWaterMarkChangeDetectionPolicy = {
|
|
9702
8595
|
serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
|
|
9703
8596
|
type: {
|
|
@@ -9744,16 +8637,6 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
|
|
|
9744
8637
|
} }),
|
|
9745
8638
|
},
|
|
9746
8639
|
};
|
|
9747
|
-
const NativeBlobSoftDeleteDeletionDetectionPolicy = {
|
|
9748
|
-
serializedName: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
9749
|
-
type: {
|
|
9750
|
-
name: "Composite",
|
|
9751
|
-
className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
9752
|
-
uberParent: "DataDeletionDetectionPolicy",
|
|
9753
|
-
polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
|
|
9754
|
-
modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties),
|
|
9755
|
-
},
|
|
9756
|
-
};
|
|
9757
8640
|
const ConditionalSkill = {
|
|
9758
8641
|
serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
|
|
9759
8642
|
type: {
|
|
@@ -10275,29 +9158,7 @@ const WebApiSkill = {
|
|
|
10275
9158
|
className: "WebApiSkill",
|
|
10276
9159
|
uberParent: "SearchIndexerSkill",
|
|
10277
9160
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
10278
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), {
|
|
10279
|
-
serializedName: "uri",
|
|
10280
|
-
required: true,
|
|
10281
|
-
type: {
|
|
10282
|
-
name: "String",
|
|
10283
|
-
},
|
|
10284
|
-
}, httpHeaders: {
|
|
10285
|
-
serializedName: "httpHeaders",
|
|
10286
|
-
type: {
|
|
10287
|
-
name: "Dictionary",
|
|
10288
|
-
value: { type: { name: "String" } },
|
|
10289
|
-
},
|
|
10290
|
-
}, httpMethod: {
|
|
10291
|
-
serializedName: "httpMethod",
|
|
10292
|
-
type: {
|
|
10293
|
-
name: "String",
|
|
10294
|
-
},
|
|
10295
|
-
}, timeout: {
|
|
10296
|
-
serializedName: "timeout",
|
|
10297
|
-
type: {
|
|
10298
|
-
name: "TimeSpan",
|
|
10299
|
-
},
|
|
10300
|
-
}, batchSize: {
|
|
9161
|
+
modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), WebApiParameters.type.modelProperties), { batchSize: {
|
|
10301
9162
|
serializedName: "batchSize",
|
|
10302
9163
|
nullable: true,
|
|
10303
9164
|
type: {
|
|
@@ -10309,60 +9170,18 @@ const WebApiSkill = {
|
|
|
10309
9170
|
type: {
|
|
10310
9171
|
name: "Number",
|
|
10311
9172
|
},
|
|
10312
|
-
}, authResourceId: {
|
|
10313
|
-
serializedName: "authResourceId",
|
|
10314
|
-
nullable: true,
|
|
10315
|
-
type: {
|
|
10316
|
-
name: "String",
|
|
10317
|
-
},
|
|
10318
|
-
}, authIdentity: {
|
|
10319
|
-
serializedName: "authIdentity",
|
|
10320
|
-
type: {
|
|
10321
|
-
name: "Composite",
|
|
10322
|
-
className: "SearchIndexerDataIdentity",
|
|
10323
|
-
},
|
|
10324
9173
|
} }),
|
|
10325
9174
|
},
|
|
10326
9175
|
};
|
|
10327
|
-
const
|
|
10328
|
-
serializedName: "#Microsoft.Skills.
|
|
9176
|
+
const AzureOpenAIEmbeddingSkill = {
|
|
9177
|
+
serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
|
|
10329
9178
|
type: {
|
|
10330
9179
|
name: "Composite",
|
|
10331
|
-
className: "
|
|
9180
|
+
className: "AzureOpenAIEmbeddingSkill",
|
|
10332
9181
|
uberParent: "SearchIndexerSkill",
|
|
10333
9182
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
10334
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), {
|
|
10335
|
-
serializedName: "
|
|
10336
|
-
nullable: true,
|
|
10337
|
-
type: {
|
|
10338
|
-
name: "String",
|
|
10339
|
-
},
|
|
10340
|
-
}, authenticationKey: {
|
|
10341
|
-
serializedName: "key",
|
|
10342
|
-
nullable: true,
|
|
10343
|
-
type: {
|
|
10344
|
-
name: "String",
|
|
10345
|
-
},
|
|
10346
|
-
}, resourceId: {
|
|
10347
|
-
serializedName: "resourceId",
|
|
10348
|
-
nullable: true,
|
|
10349
|
-
type: {
|
|
10350
|
-
name: "String",
|
|
10351
|
-
},
|
|
10352
|
-
}, timeout: {
|
|
10353
|
-
serializedName: "timeout",
|
|
10354
|
-
nullable: true,
|
|
10355
|
-
type: {
|
|
10356
|
-
name: "TimeSpan",
|
|
10357
|
-
},
|
|
10358
|
-
}, region: {
|
|
10359
|
-
serializedName: "region",
|
|
10360
|
-
nullable: true,
|
|
10361
|
-
type: {
|
|
10362
|
-
name: "String",
|
|
10363
|
-
},
|
|
10364
|
-
}, degreeOfParallelism: {
|
|
10365
|
-
serializedName: "degreeOfParallelism",
|
|
9183
|
+
modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), AzureOpenAIParameters.type.modelProperties), { dimensions: {
|
|
9184
|
+
serializedName: "dimensions",
|
|
10366
9185
|
nullable: true,
|
|
10367
9186
|
type: {
|
|
10368
9187
|
name: "Number",
|
|
@@ -10370,41 +9189,8 @@ const AzureMachineLearningSkill = {
|
|
|
10370
9189
|
} }),
|
|
10371
9190
|
},
|
|
10372
9191
|
};
|
|
10373
|
-
const
|
|
10374
|
-
serializedName: "#Microsoft.
|
|
10375
|
-
type: {
|
|
10376
|
-
name: "Composite",
|
|
10377
|
-
className: "AzureOpenAIEmbeddingSkill",
|
|
10378
|
-
uberParent: "SearchIndexerSkill",
|
|
10379
|
-
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
10380
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), AzureOpenAIParameters.type.modelProperties), { dimensions: {
|
|
10381
|
-
serializedName: "dimensions",
|
|
10382
|
-
nullable: true,
|
|
10383
|
-
type: {
|
|
10384
|
-
name: "Number",
|
|
10385
|
-
},
|
|
10386
|
-
} }),
|
|
10387
|
-
},
|
|
10388
|
-
};
|
|
10389
|
-
const VisionVectorizeSkill = {
|
|
10390
|
-
serializedName: "#Microsoft.Skills.Vision.VectorizeSkill",
|
|
10391
|
-
type: {
|
|
10392
|
-
name: "Composite",
|
|
10393
|
-
className: "VisionVectorizeSkill",
|
|
10394
|
-
uberParent: "SearchIndexerSkill",
|
|
10395
|
-
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
10396
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { modelVersion: {
|
|
10397
|
-
serializedName: "modelVersion",
|
|
10398
|
-
required: true,
|
|
10399
|
-
nullable: true,
|
|
10400
|
-
type: {
|
|
10401
|
-
name: "String",
|
|
10402
|
-
},
|
|
10403
|
-
} }),
|
|
10404
|
-
},
|
|
10405
|
-
};
|
|
10406
|
-
const DefaultCognitiveServicesAccount = {
|
|
10407
|
-
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
9192
|
+
const DefaultCognitiveServicesAccount = {
|
|
9193
|
+
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
10408
9194
|
type: {
|
|
10409
9195
|
name: "Composite",
|
|
10410
9196
|
className: "DefaultCognitiveServicesAccount",
|
|
@@ -11949,36 +10735,6 @@ const PatternReplaceCharFilter = {
|
|
|
11949
10735
|
} }),
|
|
11950
10736
|
},
|
|
11951
10737
|
};
|
|
11952
|
-
const CustomNormalizer = {
|
|
11953
|
-
serializedName: "#Microsoft.Azure.Search.CustomNormalizer",
|
|
11954
|
-
type: {
|
|
11955
|
-
name: "Composite",
|
|
11956
|
-
className: "CustomNormalizer",
|
|
11957
|
-
uberParent: "LexicalNormalizer",
|
|
11958
|
-
polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
|
|
11959
|
-
modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
|
|
11960
|
-
serializedName: "tokenFilters",
|
|
11961
|
-
type: {
|
|
11962
|
-
name: "Sequence",
|
|
11963
|
-
element: {
|
|
11964
|
-
type: {
|
|
11965
|
-
name: "String",
|
|
11966
|
-
},
|
|
11967
|
-
},
|
|
11968
|
-
},
|
|
11969
|
-
}, charFilters: {
|
|
11970
|
-
serializedName: "charFilters",
|
|
11971
|
-
type: {
|
|
11972
|
-
name: "Sequence",
|
|
11973
|
-
element: {
|
|
11974
|
-
type: {
|
|
11975
|
-
name: "String",
|
|
11976
|
-
},
|
|
11977
|
-
},
|
|
11978
|
-
},
|
|
11979
|
-
} }),
|
|
11980
|
-
},
|
|
11981
|
-
};
|
|
11982
10738
|
const ClassicSimilarity = {
|
|
11983
10739
|
serializedName: "#Microsoft.Azure.Search.ClassicSimilarity",
|
|
11984
10740
|
type: {
|
|
@@ -12050,7 +10806,7 @@ const AzureOpenAIVectorizer = {
|
|
|
12050
10806
|
className: "AzureOpenAIVectorizer",
|
|
12051
10807
|
uberParent: "VectorSearchVectorizer",
|
|
12052
10808
|
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
12053
|
-
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), {
|
|
10809
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { parameters: {
|
|
12054
10810
|
serializedName: "azureOpenAIParameters",
|
|
12055
10811
|
type: {
|
|
12056
10812
|
name: "Composite",
|
|
@@ -12059,66 +10815,70 @@ const AzureOpenAIVectorizer = {
|
|
|
12059
10815
|
} }),
|
|
12060
10816
|
},
|
|
12061
10817
|
};
|
|
12062
|
-
const
|
|
10818
|
+
const WebApiVectorizer = {
|
|
12063
10819
|
serializedName: "customWebApi",
|
|
12064
10820
|
type: {
|
|
12065
10821
|
name: "Composite",
|
|
12066
|
-
className: "
|
|
10822
|
+
className: "WebApiVectorizer",
|
|
12067
10823
|
uberParent: "VectorSearchVectorizer",
|
|
12068
10824
|
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
12069
|
-
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), {
|
|
10825
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { parameters: {
|
|
12070
10826
|
serializedName: "customWebApiParameters",
|
|
12071
10827
|
type: {
|
|
12072
10828
|
name: "Composite",
|
|
12073
|
-
className: "
|
|
10829
|
+
className: "WebApiParameters",
|
|
12074
10830
|
},
|
|
12075
10831
|
} }),
|
|
12076
10832
|
},
|
|
12077
10833
|
};
|
|
12078
|
-
const
|
|
12079
|
-
serializedName: "
|
|
10834
|
+
const ScalarQuantizationCompression = {
|
|
10835
|
+
serializedName: "scalarQuantization",
|
|
12080
10836
|
type: {
|
|
12081
10837
|
name: "Composite",
|
|
12082
|
-
className: "
|
|
12083
|
-
uberParent: "
|
|
12084
|
-
polymorphicDiscriminator:
|
|
12085
|
-
modelProperties: Object.assign(Object.assign({},
|
|
12086
|
-
serializedName: "
|
|
10838
|
+
className: "ScalarQuantizationCompression",
|
|
10839
|
+
uberParent: "VectorSearchCompression",
|
|
10840
|
+
polymorphicDiscriminator: VectorSearchCompression.type.polymorphicDiscriminator,
|
|
10841
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchCompression.type.modelProperties), { parameters: {
|
|
10842
|
+
serializedName: "scalarQuantizationParameters",
|
|
12087
10843
|
type: {
|
|
12088
10844
|
name: "Composite",
|
|
12089
|
-
className: "
|
|
10845
|
+
className: "ScalarQuantizationParameters",
|
|
12090
10846
|
},
|
|
12091
10847
|
} }),
|
|
12092
10848
|
},
|
|
12093
10849
|
};
|
|
12094
|
-
const
|
|
12095
|
-
serializedName: "
|
|
10850
|
+
const BinaryQuantizationCompression = {
|
|
10851
|
+
serializedName: "binaryQuantization",
|
|
12096
10852
|
type: {
|
|
12097
10853
|
name: "Composite",
|
|
12098
|
-
className: "
|
|
12099
|
-
uberParent: "
|
|
12100
|
-
polymorphicDiscriminator:
|
|
12101
|
-
modelProperties: Object.assign(
|
|
12102
|
-
serializedName: "amlParameters",
|
|
12103
|
-
type: {
|
|
12104
|
-
name: "Composite",
|
|
12105
|
-
className: "AMLParameters",
|
|
12106
|
-
},
|
|
12107
|
-
} }),
|
|
10854
|
+
className: "BinaryQuantizationCompression",
|
|
10855
|
+
uberParent: "VectorSearchCompression",
|
|
10856
|
+
polymorphicDiscriminator: VectorSearchCompression.type.polymorphicDiscriminator,
|
|
10857
|
+
modelProperties: Object.assign({}, VectorSearchCompression.type.modelProperties),
|
|
12108
10858
|
},
|
|
12109
10859
|
};
|
|
12110
|
-
const
|
|
12111
|
-
serializedName: "
|
|
10860
|
+
const SearchIndexerDataNoneIdentity = {
|
|
10861
|
+
serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
|
|
12112
10862
|
type: {
|
|
12113
10863
|
name: "Composite",
|
|
12114
|
-
className: "
|
|
12115
|
-
uberParent: "
|
|
12116
|
-
polymorphicDiscriminator:
|
|
12117
|
-
modelProperties: Object.assign(
|
|
12118
|
-
|
|
10864
|
+
className: "SearchIndexerDataNoneIdentity",
|
|
10865
|
+
uberParent: "SearchIndexerDataIdentity",
|
|
10866
|
+
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
10867
|
+
modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties),
|
|
10868
|
+
},
|
|
10869
|
+
};
|
|
10870
|
+
const SearchIndexerDataUserAssignedIdentity = {
|
|
10871
|
+
serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
|
|
10872
|
+
type: {
|
|
10873
|
+
name: "Composite",
|
|
10874
|
+
className: "SearchIndexerDataUserAssignedIdentity",
|
|
10875
|
+
uberParent: "SearchIndexerDataIdentity",
|
|
10876
|
+
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
10877
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { resourceId: {
|
|
10878
|
+
serializedName: "userAssignedIdentity",
|
|
10879
|
+
required: true,
|
|
12119
10880
|
type: {
|
|
12120
|
-
name: "
|
|
12121
|
-
className: "ScalarQuantizationParameters",
|
|
10881
|
+
name: "String",
|
|
12122
10882
|
},
|
|
12123
10883
|
} }),
|
|
12124
10884
|
},
|
|
@@ -12140,7 +10900,6 @@ const SearchIndexerKnowledgeStoreFileProjectionSelector = {
|
|
|
12140
10900
|
},
|
|
12141
10901
|
};
|
|
12142
10902
|
let discriminators = {
|
|
12143
|
-
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
12144
10903
|
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
12145
10904
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
12146
10905
|
SearchIndexerSkill: SearchIndexerSkill,
|
|
@@ -12150,17 +10909,14 @@ let discriminators = {
|
|
|
12150
10909
|
LexicalTokenizer: LexicalTokenizer,
|
|
12151
10910
|
TokenFilter: TokenFilter,
|
|
12152
10911
|
CharFilter: CharFilter,
|
|
12153
|
-
LexicalNormalizer: LexicalNormalizer,
|
|
12154
10912
|
Similarity: Similarity,
|
|
12155
10913
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
12156
10914
|
VectorSearchVectorizer: VectorSearchVectorizer,
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
|
|
10915
|
+
VectorSearchCompression: VectorSearchCompression,
|
|
10916
|
+
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
12160
10917
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
|
|
12161
10918
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
|
|
12162
10919
|
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
|
|
12163
|
-
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
|
|
12164
10920
|
"SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
|
|
12165
10921
|
"SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
|
|
12166
10922
|
"SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
|
|
@@ -12179,9 +10935,7 @@ let discriminators = {
|
|
|
12179
10935
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
12180
10936
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
12181
10937
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
12182
|
-
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
12183
10938
|
"SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
|
|
12184
|
-
"SearchIndexerSkill.#Microsoft.Skills.Vision.VectorizeSkill": VisionVectorizeSkill,
|
|
12185
10939
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
12186
10940
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
12187
10941
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -12231,35 +10985,30 @@ let discriminators = {
|
|
|
12231
10985
|
"TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter,
|
|
12232
10986
|
"CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter,
|
|
12233
10987
|
"CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
|
|
12234
|
-
"LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
|
|
12235
10988
|
"Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
|
|
12236
10989
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
|
|
12237
10990
|
"VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
|
|
12238
10991
|
"VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration,
|
|
12239
10992
|
"VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
|
|
12240
|
-
"VectorSearchVectorizer.customWebApi":
|
|
12241
|
-
"
|
|
12242
|
-
"
|
|
12243
|
-
"
|
|
10993
|
+
"VectorSearchVectorizer.customWebApi": WebApiVectorizer,
|
|
10994
|
+
"VectorSearchCompression.scalarQuantization": ScalarQuantizationCompression,
|
|
10995
|
+
"VectorSearchCompression.binaryQuantization": BinaryQuantizationCompression,
|
|
10996
|
+
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
|
|
10997
|
+
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
|
|
12244
10998
|
};
|
|
12245
10999
|
|
|
12246
11000
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
12247
11001
|
__proto__: null,
|
|
12248
|
-
AIServicesVisionParameters: AIServicesVisionParameters,
|
|
12249
|
-
AIServicesVisionVectorizer: AIServicesVisionVectorizer,
|
|
12250
|
-
AMLParameters: AMLParameters,
|
|
12251
|
-
AMLVectorizer: AMLVectorizer,
|
|
12252
11002
|
AnalyzeRequest: AnalyzeRequest,
|
|
12253
11003
|
AnalyzeResult: AnalyzeResult,
|
|
12254
11004
|
AnalyzedTokenInfo: AnalyzedTokenInfo,
|
|
12255
11005
|
AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
|
|
12256
11006
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
12257
|
-
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
12258
11007
|
AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
|
|
12259
11008
|
AzureOpenAIParameters: AzureOpenAIParameters,
|
|
12260
11009
|
AzureOpenAIVectorizer: AzureOpenAIVectorizer,
|
|
12261
11010
|
BM25Similarity: BM25Similarity,
|
|
12262
|
-
|
|
11011
|
+
BinaryQuantizationCompression: BinaryQuantizationCompression,
|
|
12263
11012
|
CharFilter: CharFilter,
|
|
12264
11013
|
CjkBigramTokenFilter: CjkBigramTokenFilter,
|
|
12265
11014
|
ClassicSimilarity: ClassicSimilarity,
|
|
@@ -12273,9 +11022,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12273
11022
|
CustomEntity: CustomEntity,
|
|
12274
11023
|
CustomEntityAlias: CustomEntityAlias,
|
|
12275
11024
|
CustomEntityLookupSkill: CustomEntityLookupSkill,
|
|
12276
|
-
CustomNormalizer: CustomNormalizer,
|
|
12277
|
-
CustomVectorizer: CustomVectorizer,
|
|
12278
|
-
CustomWebApiParameters: CustomWebApiParameters,
|
|
12279
11025
|
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
12280
11026
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
12281
11027
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -12284,7 +11030,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12284
11030
|
DistanceScoringFunction: DistanceScoringFunction,
|
|
12285
11031
|
DistanceScoringParameters: DistanceScoringParameters,
|
|
12286
11032
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
12287
|
-
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
12288
11033
|
EdgeNGramTokenFilter: EdgeNGramTokenFilter,
|
|
12289
11034
|
EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
|
|
12290
11035
|
EdgeNGramTokenizer: EdgeNGramTokenizer,
|
|
@@ -12307,7 +11052,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12307
11052
|
HnswParameters: HnswParameters,
|
|
12308
11053
|
ImageAnalysisSkill: ImageAnalysisSkill,
|
|
12309
11054
|
IndexerExecutionResult: IndexerExecutionResult,
|
|
12310
|
-
IndexerState: IndexerState,
|
|
12311
11055
|
IndexingParameters: IndexingParameters,
|
|
12312
11056
|
IndexingParametersConfiguration: IndexingParametersConfiguration,
|
|
12313
11057
|
IndexingSchedule: IndexingSchedule,
|
|
@@ -12320,10 +11064,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12320
11064
|
LanguageDetectionSkill: LanguageDetectionSkill,
|
|
12321
11065
|
LengthTokenFilter: LengthTokenFilter,
|
|
12322
11066
|
LexicalAnalyzer: LexicalAnalyzer,
|
|
12323
|
-
LexicalNormalizer: LexicalNormalizer,
|
|
12324
11067
|
LexicalTokenizer: LexicalTokenizer,
|
|
12325
11068
|
LimitTokenFilter: LimitTokenFilter,
|
|
12326
|
-
ListAliasesResult: ListAliasesResult,
|
|
12327
11069
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
12328
11070
|
ListIndexersResult: ListIndexersResult,
|
|
12329
11071
|
ListIndexesResult: ListIndexesResult,
|
|
@@ -12341,7 +11083,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12341
11083
|
NGramTokenFilter: NGramTokenFilter,
|
|
12342
11084
|
NGramTokenFilterV2: NGramTokenFilterV2,
|
|
12343
11085
|
NGramTokenizer: NGramTokenizer,
|
|
12344
|
-
NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
|
|
12345
11086
|
OcrSkill: OcrSkill,
|
|
12346
11087
|
OutputFieldMappingEntry: OutputFieldMappingEntry,
|
|
12347
11088
|
PIIDetectionSkill: PIIDetectionSkill,
|
|
@@ -12353,24 +11094,22 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12353
11094
|
PatternTokenizer: PatternTokenizer,
|
|
12354
11095
|
PhoneticTokenFilter: PhoneticTokenFilter,
|
|
12355
11096
|
ResourceCounter: ResourceCounter,
|
|
12356
|
-
|
|
11097
|
+
ScalarQuantizationCompression: ScalarQuantizationCompression,
|
|
12357
11098
|
ScalarQuantizationParameters: ScalarQuantizationParameters,
|
|
12358
11099
|
ScoringFunction: ScoringFunction,
|
|
12359
11100
|
ScoringProfile: ScoringProfile,
|
|
12360
|
-
SearchAlias: SearchAlias,
|
|
12361
11101
|
SearchField: SearchField,
|
|
12362
11102
|
SearchIndex: SearchIndex,
|
|
12363
11103
|
SearchIndexer: SearchIndexer,
|
|
12364
|
-
SearchIndexerCache: SearchIndexerCache,
|
|
12365
11104
|
SearchIndexerDataContainer: SearchIndexerDataContainer,
|
|
12366
11105
|
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
12367
11106
|
SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
|
|
12368
11107
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
12369
11108
|
SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
|
|
12370
11109
|
SearchIndexerError: SearchIndexerError,
|
|
11110
|
+
SearchIndexerIndexProjection: SearchIndexerIndexProjection,
|
|
11111
|
+
SearchIndexerIndexProjectionParameters: SearchIndexerIndexProjectionParameters,
|
|
12371
11112
|
SearchIndexerIndexProjectionSelector: SearchIndexerIndexProjectionSelector,
|
|
12372
|
-
SearchIndexerIndexProjections: SearchIndexerIndexProjections,
|
|
12373
|
-
SearchIndexerIndexProjectionsParameters: SearchIndexerIndexProjectionsParameters,
|
|
12374
11113
|
SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
|
|
12375
11114
|
SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
|
|
12376
11115
|
SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
|
|
@@ -12397,7 +11136,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12397
11136
|
ShaperSkill: ShaperSkill,
|
|
12398
11137
|
ShingleTokenFilter: ShingleTokenFilter,
|
|
12399
11138
|
Similarity: Similarity,
|
|
12400
|
-
SkillNames: SkillNames,
|
|
12401
11139
|
SnowballTokenFilter: SnowballTokenFilter,
|
|
12402
11140
|
SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
|
|
12403
11141
|
SplitSkill: SplitSkill,
|
|
@@ -12419,10 +11157,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12419
11157
|
UniqueTokenFilter: UniqueTokenFilter,
|
|
12420
11158
|
VectorSearch: VectorSearch,
|
|
12421
11159
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
11160
|
+
VectorSearchCompression: VectorSearchCompression,
|
|
12422
11161
|
VectorSearchProfile: VectorSearchProfile,
|
|
12423
11162
|
VectorSearchVectorizer: VectorSearchVectorizer,
|
|
12424
|
-
|
|
11163
|
+
WebApiParameters: WebApiParameters,
|
|
12425
11164
|
WebApiSkill: WebApiSkill,
|
|
11165
|
+
WebApiVectorizer: WebApiVectorizer,
|
|
12426
11166
|
WordDelimiterTokenFilter: WordDelimiterTokenFilter,
|
|
12427
11167
|
discriminators: discriminators
|
|
12428
11168
|
});
|
|
@@ -12520,15 +11260,6 @@ const apiVersion = {
|
|
|
12520
11260
|
},
|
|
12521
11261
|
},
|
|
12522
11262
|
};
|
|
12523
|
-
const skipIndexerResetRequirementForCache = {
|
|
12524
|
-
parameterPath: ["options", "skipIndexerResetRequirementForCache"],
|
|
12525
|
-
mapper: {
|
|
12526
|
-
serializedName: "ignoreResetRequirements",
|
|
12527
|
-
type: {
|
|
12528
|
-
name: "Boolean",
|
|
12529
|
-
},
|
|
12530
|
-
},
|
|
12531
|
-
};
|
|
12532
11263
|
const select = {
|
|
12533
11264
|
parameterPath: ["options", "select"],
|
|
12534
11265
|
mapper: {
|
|
@@ -12548,33 +11279,10 @@ const indexerName = {
|
|
|
12548
11279
|
},
|
|
12549
11280
|
},
|
|
12550
11281
|
};
|
|
12551
|
-
const keysOrIds = {
|
|
12552
|
-
parameterPath: ["options", "keysOrIds"],
|
|
12553
|
-
mapper: DocumentKeysOrIds,
|
|
12554
|
-
};
|
|
12555
|
-
const overwrite = {
|
|
12556
|
-
parameterPath: ["options", "overwrite"],
|
|
12557
|
-
mapper: {
|
|
12558
|
-
defaultValue: false,
|
|
12559
|
-
serializedName: "overwrite",
|
|
12560
|
-
type: {
|
|
12561
|
-
name: "Boolean",
|
|
12562
|
-
},
|
|
12563
|
-
},
|
|
12564
|
-
};
|
|
12565
11282
|
const indexer = {
|
|
12566
11283
|
parameterPath: "indexer",
|
|
12567
11284
|
mapper: SearchIndexer,
|
|
12568
11285
|
};
|
|
12569
|
-
const disableCacheReprocessingChangeDetection = {
|
|
12570
|
-
parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
|
|
12571
|
-
mapper: {
|
|
12572
|
-
serializedName: "disableCacheReprocessingChangeDetection",
|
|
12573
|
-
type: {
|
|
12574
|
-
name: "Boolean",
|
|
12575
|
-
},
|
|
12576
|
-
},
|
|
12577
|
-
};
|
|
12578
11286
|
const skillset = {
|
|
12579
11287
|
parameterPath: "skillset",
|
|
12580
11288
|
mapper: SearchIndexerSkillset,
|
|
@@ -12589,10 +11297,6 @@ const skillsetName = {
|
|
|
12589
11297
|
},
|
|
12590
11298
|
},
|
|
12591
11299
|
};
|
|
12592
|
-
const skillNames = {
|
|
12593
|
-
parameterPath: "skillNames",
|
|
12594
|
-
mapper: SkillNames,
|
|
12595
|
-
};
|
|
12596
11300
|
const synonymMap = {
|
|
12597
11301
|
parameterPath: "synonymMap",
|
|
12598
11302
|
mapper: SynonymMap,
|
|
@@ -12634,20 +11338,6 @@ const request = {
|
|
|
12634
11338
|
parameterPath: "request",
|
|
12635
11339
|
mapper: AnalyzeRequest,
|
|
12636
11340
|
};
|
|
12637
|
-
const alias = {
|
|
12638
|
-
parameterPath: "alias",
|
|
12639
|
-
mapper: SearchAlias,
|
|
12640
|
-
};
|
|
12641
|
-
const aliasName = {
|
|
12642
|
-
parameterPath: "aliasName",
|
|
12643
|
-
mapper: {
|
|
12644
|
-
serializedName: "aliasName",
|
|
12645
|
-
required: true,
|
|
12646
|
-
type: {
|
|
12647
|
-
name: "String",
|
|
12648
|
-
},
|
|
12649
|
-
},
|
|
12650
|
-
};
|
|
12651
11341
|
|
|
12652
11342
|
/*
|
|
12653
11343
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -12672,7 +11362,7 @@ class DataSourcesImpl {
|
|
|
12672
11362
|
* @param options The options parameters.
|
|
12673
11363
|
*/
|
|
12674
11364
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
12675
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$
|
|
11365
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
12676
11366
|
}
|
|
12677
11367
|
/**
|
|
12678
11368
|
* Deletes a datasource.
|
|
@@ -12680,7 +11370,7 @@ class DataSourcesImpl {
|
|
|
12680
11370
|
* @param options The options parameters.
|
|
12681
11371
|
*/
|
|
12682
11372
|
delete(dataSourceName, options) {
|
|
12683
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$
|
|
11373
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
12684
11374
|
}
|
|
12685
11375
|
/**
|
|
12686
11376
|
* Retrieves a datasource definition.
|
|
@@ -12688,14 +11378,14 @@ class DataSourcesImpl {
|
|
|
12688
11378
|
* @param options The options parameters.
|
|
12689
11379
|
*/
|
|
12690
11380
|
get(dataSourceName, options) {
|
|
12691
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
11381
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
12692
11382
|
}
|
|
12693
11383
|
/**
|
|
12694
11384
|
* Lists all datasources available for a search service.
|
|
12695
11385
|
* @param options The options parameters.
|
|
12696
11386
|
*/
|
|
12697
11387
|
list(options) {
|
|
12698
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11388
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
12699
11389
|
}
|
|
12700
11390
|
/**
|
|
12701
11391
|
* Creates a new datasource.
|
|
@@ -12703,12 +11393,12 @@ class DataSourcesImpl {
|
|
|
12703
11393
|
* @param options The options parameters.
|
|
12704
11394
|
*/
|
|
12705
11395
|
create(dataSource, options) {
|
|
12706
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$
|
|
11396
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
12707
11397
|
}
|
|
12708
11398
|
}
|
|
12709
11399
|
// Operation Specifications
|
|
12710
|
-
const serializer$
|
|
12711
|
-
const createOrUpdateOperationSpec$
|
|
11400
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11401
|
+
const createOrUpdateOperationSpec$4 = {
|
|
12712
11402
|
path: "/datasources('{dataSourceName}')",
|
|
12713
11403
|
httpMethod: "PUT",
|
|
12714
11404
|
responses: {
|
|
@@ -12723,10 +11413,7 @@ const createOrUpdateOperationSpec$5 = {
|
|
|
12723
11413
|
},
|
|
12724
11414
|
},
|
|
12725
11415
|
requestBody: dataSource,
|
|
12726
|
-
queryParameters: [
|
|
12727
|
-
apiVersion,
|
|
12728
|
-
skipIndexerResetRequirementForCache,
|
|
12729
|
-
],
|
|
11416
|
+
queryParameters: [apiVersion],
|
|
12730
11417
|
urlParameters: [endpoint, dataSourceName],
|
|
12731
11418
|
headerParameters: [
|
|
12732
11419
|
contentType,
|
|
@@ -12736,9 +11423,9 @@ const createOrUpdateOperationSpec$5 = {
|
|
|
12736
11423
|
prefer,
|
|
12737
11424
|
],
|
|
12738
11425
|
mediaType: "json",
|
|
12739
|
-
serializer: serializer$
|
|
11426
|
+
serializer: serializer$5,
|
|
12740
11427
|
};
|
|
12741
|
-
const deleteOperationSpec$
|
|
11428
|
+
const deleteOperationSpec$4 = {
|
|
12742
11429
|
path: "/datasources('{dataSourceName}')",
|
|
12743
11430
|
httpMethod: "DELETE",
|
|
12744
11431
|
responses: {
|
|
@@ -12755,9 +11442,9 @@ const deleteOperationSpec$5 = {
|
|
|
12755
11442
|
ifMatch,
|
|
12756
11443
|
ifNoneMatch,
|
|
12757
11444
|
],
|
|
12758
|
-
serializer: serializer$
|
|
11445
|
+
serializer: serializer$5,
|
|
12759
11446
|
};
|
|
12760
|
-
const getOperationSpec$
|
|
11447
|
+
const getOperationSpec$4 = {
|
|
12761
11448
|
path: "/datasources('{dataSourceName}')",
|
|
12762
11449
|
httpMethod: "GET",
|
|
12763
11450
|
responses: {
|
|
@@ -12771,9 +11458,9 @@ const getOperationSpec$5 = {
|
|
|
12771
11458
|
queryParameters: [apiVersion],
|
|
12772
11459
|
urlParameters: [endpoint, dataSourceName],
|
|
12773
11460
|
headerParameters: [accept],
|
|
12774
|
-
serializer: serializer$
|
|
11461
|
+
serializer: serializer$5,
|
|
12775
11462
|
};
|
|
12776
|
-
const listOperationSpec$
|
|
11463
|
+
const listOperationSpec$4 = {
|
|
12777
11464
|
path: "/datasources",
|
|
12778
11465
|
httpMethod: "GET",
|
|
12779
11466
|
responses: {
|
|
@@ -12787,9 +11474,9 @@ const listOperationSpec$5 = {
|
|
|
12787
11474
|
queryParameters: [apiVersion, select],
|
|
12788
11475
|
urlParameters: [endpoint],
|
|
12789
11476
|
headerParameters: [accept],
|
|
12790
|
-
serializer: serializer$
|
|
11477
|
+
serializer: serializer$5,
|
|
12791
11478
|
};
|
|
12792
|
-
const createOperationSpec$
|
|
11479
|
+
const createOperationSpec$4 = {
|
|
12793
11480
|
path: "/datasources",
|
|
12794
11481
|
httpMethod: "POST",
|
|
12795
11482
|
responses: {
|
|
@@ -12805,7 +11492,7 @@ const createOperationSpec$5 = {
|
|
|
12805
11492
|
urlParameters: [endpoint],
|
|
12806
11493
|
headerParameters: [contentType, accept],
|
|
12807
11494
|
mediaType: "json",
|
|
12808
|
-
serializer: serializer$
|
|
11495
|
+
serializer: serializer$5,
|
|
12809
11496
|
};
|
|
12810
11497
|
|
|
12811
11498
|
/*
|
|
@@ -12832,14 +11519,6 @@ class IndexersImpl {
|
|
|
12832
11519
|
reset(indexerName, options) {
|
|
12833
11520
|
return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
|
|
12834
11521
|
}
|
|
12835
|
-
/**
|
|
12836
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
12837
|
-
* @param indexerName The name of the indexer to reset documents for.
|
|
12838
|
-
* @param options The options parameters.
|
|
12839
|
-
*/
|
|
12840
|
-
resetDocs(indexerName, options) {
|
|
12841
|
-
return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
|
|
12842
|
-
}
|
|
12843
11522
|
/**
|
|
12844
11523
|
* Runs an indexer on-demand.
|
|
12845
11524
|
* @param indexerName The name of the indexer to run.
|
|
@@ -12855,7 +11534,7 @@ class IndexersImpl {
|
|
|
12855
11534
|
* @param options The options parameters.
|
|
12856
11535
|
*/
|
|
12857
11536
|
createOrUpdate(indexerName, indexer, options) {
|
|
12858
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
11537
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
12859
11538
|
}
|
|
12860
11539
|
/**
|
|
12861
11540
|
* Deletes an indexer.
|
|
@@ -12863,7 +11542,7 @@ class IndexersImpl {
|
|
|
12863
11542
|
* @param options The options parameters.
|
|
12864
11543
|
*/
|
|
12865
11544
|
delete(indexerName, options) {
|
|
12866
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
11545
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
12867
11546
|
}
|
|
12868
11547
|
/**
|
|
12869
11548
|
* Retrieves an indexer definition.
|
|
@@ -12871,14 +11550,14 @@ class IndexersImpl {
|
|
|
12871
11550
|
* @param options The options parameters.
|
|
12872
11551
|
*/
|
|
12873
11552
|
get(indexerName, options) {
|
|
12874
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
11553
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
12875
11554
|
}
|
|
12876
11555
|
/**
|
|
12877
11556
|
* Lists all indexers available for a search service.
|
|
12878
11557
|
* @param options The options parameters.
|
|
12879
11558
|
*/
|
|
12880
11559
|
list(options) {
|
|
12881
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11560
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
12882
11561
|
}
|
|
12883
11562
|
/**
|
|
12884
11563
|
* Creates a new indexer.
|
|
@@ -12886,7 +11565,7 @@ class IndexersImpl {
|
|
|
12886
11565
|
* @param options The options parameters.
|
|
12887
11566
|
*/
|
|
12888
11567
|
create(indexer, options) {
|
|
12889
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
11568
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
12890
11569
|
}
|
|
12891
11570
|
/**
|
|
12892
11571
|
* Returns the current status and execution history of an indexer.
|
|
@@ -12898,7 +11577,7 @@ class IndexersImpl {
|
|
|
12898
11577
|
}
|
|
12899
11578
|
}
|
|
12900
11579
|
// Operation Specifications
|
|
12901
|
-
const serializer$
|
|
11580
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
12902
11581
|
const resetOperationSpec = {
|
|
12903
11582
|
path: "/indexers('{indexerName}')/search.reset",
|
|
12904
11583
|
httpMethod: "POST",
|
|
@@ -12911,23 +11590,7 @@ const resetOperationSpec = {
|
|
|
12911
11590
|
queryParameters: [apiVersion],
|
|
12912
11591
|
urlParameters: [endpoint, indexerName],
|
|
12913
11592
|
headerParameters: [accept],
|
|
12914
|
-
serializer: serializer$
|
|
12915
|
-
};
|
|
12916
|
-
const resetDocsOperationSpec = {
|
|
12917
|
-
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
12918
|
-
httpMethod: "POST",
|
|
12919
|
-
responses: {
|
|
12920
|
-
204: {},
|
|
12921
|
-
default: {
|
|
12922
|
-
bodyMapper: ErrorResponse,
|
|
12923
|
-
},
|
|
12924
|
-
},
|
|
12925
|
-
requestBody: keysOrIds,
|
|
12926
|
-
queryParameters: [apiVersion, overwrite],
|
|
12927
|
-
urlParameters: [endpoint, indexerName],
|
|
12928
|
-
headerParameters: [contentType, accept],
|
|
12929
|
-
mediaType: "json",
|
|
12930
|
-
serializer: serializer$5,
|
|
11593
|
+
serializer: serializer$4,
|
|
12931
11594
|
};
|
|
12932
11595
|
const runOperationSpec = {
|
|
12933
11596
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -12941,9 +11604,9 @@ const runOperationSpec = {
|
|
|
12941
11604
|
queryParameters: [apiVersion],
|
|
12942
11605
|
urlParameters: [endpoint, indexerName],
|
|
12943
11606
|
headerParameters: [accept],
|
|
12944
|
-
serializer: serializer$
|
|
11607
|
+
serializer: serializer$4,
|
|
12945
11608
|
};
|
|
12946
|
-
const createOrUpdateOperationSpec$
|
|
11609
|
+
const createOrUpdateOperationSpec$3 = {
|
|
12947
11610
|
path: "/indexers('{indexerName}')",
|
|
12948
11611
|
httpMethod: "PUT",
|
|
12949
11612
|
responses: {
|
|
@@ -12958,11 +11621,7 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
12958
11621
|
},
|
|
12959
11622
|
},
|
|
12960
11623
|
requestBody: indexer,
|
|
12961
|
-
queryParameters: [
|
|
12962
|
-
apiVersion,
|
|
12963
|
-
skipIndexerResetRequirementForCache,
|
|
12964
|
-
disableCacheReprocessingChangeDetection,
|
|
12965
|
-
],
|
|
11624
|
+
queryParameters: [apiVersion],
|
|
12966
11625
|
urlParameters: [endpoint, indexerName],
|
|
12967
11626
|
headerParameters: [
|
|
12968
11627
|
contentType,
|
|
@@ -12972,9 +11631,9 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
12972
11631
|
prefer,
|
|
12973
11632
|
],
|
|
12974
11633
|
mediaType: "json",
|
|
12975
|
-
serializer: serializer$
|
|
11634
|
+
serializer: serializer$4,
|
|
12976
11635
|
};
|
|
12977
|
-
const deleteOperationSpec$
|
|
11636
|
+
const deleteOperationSpec$3 = {
|
|
12978
11637
|
path: "/indexers('{indexerName}')",
|
|
12979
11638
|
httpMethod: "DELETE",
|
|
12980
11639
|
responses: {
|
|
@@ -12991,9 +11650,9 @@ const deleteOperationSpec$4 = {
|
|
|
12991
11650
|
ifMatch,
|
|
12992
11651
|
ifNoneMatch,
|
|
12993
11652
|
],
|
|
12994
|
-
serializer: serializer$
|
|
11653
|
+
serializer: serializer$4,
|
|
12995
11654
|
};
|
|
12996
|
-
const getOperationSpec$
|
|
11655
|
+
const getOperationSpec$3 = {
|
|
12997
11656
|
path: "/indexers('{indexerName}')",
|
|
12998
11657
|
httpMethod: "GET",
|
|
12999
11658
|
responses: {
|
|
@@ -13007,9 +11666,9 @@ const getOperationSpec$4 = {
|
|
|
13007
11666
|
queryParameters: [apiVersion],
|
|
13008
11667
|
urlParameters: [endpoint, indexerName],
|
|
13009
11668
|
headerParameters: [accept],
|
|
13010
|
-
serializer: serializer$
|
|
11669
|
+
serializer: serializer$4,
|
|
13011
11670
|
};
|
|
13012
|
-
const listOperationSpec$
|
|
11671
|
+
const listOperationSpec$3 = {
|
|
13013
11672
|
path: "/indexers",
|
|
13014
11673
|
httpMethod: "GET",
|
|
13015
11674
|
responses: {
|
|
@@ -13023,9 +11682,9 @@ const listOperationSpec$4 = {
|
|
|
13023
11682
|
queryParameters: [apiVersion, select],
|
|
13024
11683
|
urlParameters: [endpoint],
|
|
13025
11684
|
headerParameters: [accept],
|
|
13026
|
-
serializer: serializer$
|
|
11685
|
+
serializer: serializer$4,
|
|
13027
11686
|
};
|
|
13028
|
-
const createOperationSpec$
|
|
11687
|
+
const createOperationSpec$3 = {
|
|
13029
11688
|
path: "/indexers",
|
|
13030
11689
|
httpMethod: "POST",
|
|
13031
11690
|
responses: {
|
|
@@ -13041,7 +11700,7 @@ const createOperationSpec$4 = {
|
|
|
13041
11700
|
urlParameters: [endpoint],
|
|
13042
11701
|
headerParameters: [contentType, accept],
|
|
13043
11702
|
mediaType: "json",
|
|
13044
|
-
serializer: serializer$
|
|
11703
|
+
serializer: serializer$4,
|
|
13045
11704
|
};
|
|
13046
11705
|
const getStatusOperationSpec = {
|
|
13047
11706
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -13057,7 +11716,7 @@ const getStatusOperationSpec = {
|
|
|
13057
11716
|
queryParameters: [apiVersion],
|
|
13058
11717
|
urlParameters: [endpoint, indexerName],
|
|
13059
11718
|
headerParameters: [accept],
|
|
13060
|
-
serializer: serializer$
|
|
11719
|
+
serializer: serializer$4,
|
|
13061
11720
|
};
|
|
13062
11721
|
|
|
13063
11722
|
/*
|
|
@@ -13083,7 +11742,7 @@ class SkillsetsImpl {
|
|
|
13083
11742
|
* @param options The options parameters.
|
|
13084
11743
|
*/
|
|
13085
11744
|
createOrUpdate(skillsetName, skillset, options) {
|
|
13086
|
-
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$
|
|
11745
|
+
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
|
|
13087
11746
|
}
|
|
13088
11747
|
/**
|
|
13089
11748
|
* Deletes a skillset in a search service.
|
|
@@ -13091,7 +11750,7 @@ class SkillsetsImpl {
|
|
|
13091
11750
|
* @param options The options parameters.
|
|
13092
11751
|
*/
|
|
13093
11752
|
delete(skillsetName, options) {
|
|
13094
|
-
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$
|
|
11753
|
+
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
|
|
13095
11754
|
}
|
|
13096
11755
|
/**
|
|
13097
11756
|
* Retrieves a skillset in a search service.
|
|
@@ -13099,14 +11758,14 @@ class SkillsetsImpl {
|
|
|
13099
11758
|
* @param options The options parameters.
|
|
13100
11759
|
*/
|
|
13101
11760
|
get(skillsetName, options) {
|
|
13102
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
11761
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
13103
11762
|
}
|
|
13104
11763
|
/**
|
|
13105
11764
|
* List all skillsets in a search service.
|
|
13106
11765
|
* @param options The options parameters.
|
|
13107
11766
|
*/
|
|
13108
11767
|
list(options) {
|
|
13109
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11768
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
13110
11769
|
}
|
|
13111
11770
|
/**
|
|
13112
11771
|
* Creates a new skillset in a search service.
|
|
@@ -13114,21 +11773,12 @@ class SkillsetsImpl {
|
|
|
13114
11773
|
* @param options The options parameters.
|
|
13115
11774
|
*/
|
|
13116
11775
|
create(skillset, options) {
|
|
13117
|
-
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$
|
|
13118
|
-
}
|
|
13119
|
-
/**
|
|
13120
|
-
* Reset an existing skillset in a search service.
|
|
13121
|
-
* @param skillsetName The name of the skillset to reset.
|
|
13122
|
-
* @param skillNames The names of skills to reset.
|
|
13123
|
-
* @param options The options parameters.
|
|
13124
|
-
*/
|
|
13125
|
-
resetSkills(skillsetName, skillNames, options) {
|
|
13126
|
-
return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
|
|
11776
|
+
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
|
|
13127
11777
|
}
|
|
13128
11778
|
}
|
|
13129
11779
|
// Operation Specifications
|
|
13130
|
-
const serializer$
|
|
13131
|
-
const createOrUpdateOperationSpec$
|
|
11780
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11781
|
+
const createOrUpdateOperationSpec$2 = {
|
|
13132
11782
|
path: "/skillsets('{skillsetName}')",
|
|
13133
11783
|
httpMethod: "PUT",
|
|
13134
11784
|
responses: {
|
|
@@ -13143,11 +11793,7 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
13143
11793
|
},
|
|
13144
11794
|
},
|
|
13145
11795
|
requestBody: skillset,
|
|
13146
|
-
queryParameters: [
|
|
13147
|
-
apiVersion,
|
|
13148
|
-
skipIndexerResetRequirementForCache,
|
|
13149
|
-
disableCacheReprocessingChangeDetection,
|
|
13150
|
-
],
|
|
11796
|
+
queryParameters: [apiVersion],
|
|
13151
11797
|
urlParameters: [endpoint, skillsetName],
|
|
13152
11798
|
headerParameters: [
|
|
13153
11799
|
contentType,
|
|
@@ -13157,9 +11803,9 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
13157
11803
|
prefer,
|
|
13158
11804
|
],
|
|
13159
11805
|
mediaType: "json",
|
|
13160
|
-
serializer: serializer$
|
|
11806
|
+
serializer: serializer$3,
|
|
13161
11807
|
};
|
|
13162
|
-
const deleteOperationSpec$
|
|
11808
|
+
const deleteOperationSpec$2 = {
|
|
13163
11809
|
path: "/skillsets('{skillsetName}')",
|
|
13164
11810
|
httpMethod: "DELETE",
|
|
13165
11811
|
responses: {
|
|
@@ -13176,9 +11822,9 @@ const deleteOperationSpec$3 = {
|
|
|
13176
11822
|
ifMatch,
|
|
13177
11823
|
ifNoneMatch,
|
|
13178
11824
|
],
|
|
13179
|
-
serializer: serializer$
|
|
11825
|
+
serializer: serializer$3,
|
|
13180
11826
|
};
|
|
13181
|
-
const getOperationSpec$
|
|
11827
|
+
const getOperationSpec$2 = {
|
|
13182
11828
|
path: "/skillsets('{skillsetName}')",
|
|
13183
11829
|
httpMethod: "GET",
|
|
13184
11830
|
responses: {
|
|
@@ -13192,9 +11838,9 @@ const getOperationSpec$3 = {
|
|
|
13192
11838
|
queryParameters: [apiVersion],
|
|
13193
11839
|
urlParameters: [endpoint, skillsetName],
|
|
13194
11840
|
headerParameters: [accept],
|
|
13195
|
-
serializer: serializer$
|
|
11841
|
+
serializer: serializer$3,
|
|
13196
11842
|
};
|
|
13197
|
-
const listOperationSpec$
|
|
11843
|
+
const listOperationSpec$2 = {
|
|
13198
11844
|
path: "/skillsets",
|
|
13199
11845
|
httpMethod: "GET",
|
|
13200
11846
|
responses: {
|
|
@@ -13208,9 +11854,9 @@ const listOperationSpec$3 = {
|
|
|
13208
11854
|
queryParameters: [apiVersion, select],
|
|
13209
11855
|
urlParameters: [endpoint],
|
|
13210
11856
|
headerParameters: [accept],
|
|
13211
|
-
serializer: serializer$
|
|
11857
|
+
serializer: serializer$3,
|
|
13212
11858
|
};
|
|
13213
|
-
const createOperationSpec$
|
|
11859
|
+
const createOperationSpec$2 = {
|
|
13214
11860
|
path: "/skillsets",
|
|
13215
11861
|
httpMethod: "POST",
|
|
13216
11862
|
responses: {
|
|
@@ -13226,23 +11872,7 @@ const createOperationSpec$3 = {
|
|
|
13226
11872
|
urlParameters: [endpoint],
|
|
13227
11873
|
headerParameters: [contentType, accept],
|
|
13228
11874
|
mediaType: "json",
|
|
13229
|
-
serializer: serializer$
|
|
13230
|
-
};
|
|
13231
|
-
const resetSkillsOperationSpec = {
|
|
13232
|
-
path: "/skillsets('{skillsetName}')/search.resetskills",
|
|
13233
|
-
httpMethod: "POST",
|
|
13234
|
-
responses: {
|
|
13235
|
-
204: {},
|
|
13236
|
-
default: {
|
|
13237
|
-
bodyMapper: ErrorResponse,
|
|
13238
|
-
},
|
|
13239
|
-
},
|
|
13240
|
-
requestBody: skillNames,
|
|
13241
|
-
queryParameters: [apiVersion],
|
|
13242
|
-
urlParameters: [endpoint, skillsetName],
|
|
13243
|
-
headerParameters: [contentType, accept],
|
|
13244
|
-
mediaType: "json",
|
|
13245
|
-
serializer: serializer$4,
|
|
11875
|
+
serializer: serializer$3,
|
|
13246
11876
|
};
|
|
13247
11877
|
|
|
13248
11878
|
/*
|
|
@@ -13268,7 +11898,7 @@ class SynonymMapsImpl {
|
|
|
13268
11898
|
* @param options The options parameters.
|
|
13269
11899
|
*/
|
|
13270
11900
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
13271
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
11901
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
13272
11902
|
}
|
|
13273
11903
|
/**
|
|
13274
11904
|
* Deletes a synonym map.
|
|
@@ -13276,7 +11906,7 @@ class SynonymMapsImpl {
|
|
|
13276
11906
|
* @param options The options parameters.
|
|
13277
11907
|
*/
|
|
13278
11908
|
delete(synonymMapName, options) {
|
|
13279
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
11909
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
13280
11910
|
}
|
|
13281
11911
|
/**
|
|
13282
11912
|
* Retrieves a synonym map definition.
|
|
@@ -13284,14 +11914,14 @@ class SynonymMapsImpl {
|
|
|
13284
11914
|
* @param options The options parameters.
|
|
13285
11915
|
*/
|
|
13286
11916
|
get(synonymMapName, options) {
|
|
13287
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
11917
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
13288
11918
|
}
|
|
13289
11919
|
/**
|
|
13290
11920
|
* Lists all synonym maps available for a search service.
|
|
13291
11921
|
* @param options The options parameters.
|
|
13292
11922
|
*/
|
|
13293
11923
|
list(options) {
|
|
13294
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11924
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
13295
11925
|
}
|
|
13296
11926
|
/**
|
|
13297
11927
|
* Creates a new synonym map.
|
|
@@ -13299,12 +11929,12 @@ class SynonymMapsImpl {
|
|
|
13299
11929
|
* @param options The options parameters.
|
|
13300
11930
|
*/
|
|
13301
11931
|
create(synonymMap, options) {
|
|
13302
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
11932
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
13303
11933
|
}
|
|
13304
11934
|
}
|
|
13305
11935
|
// Operation Specifications
|
|
13306
|
-
const serializer$
|
|
13307
|
-
const createOrUpdateOperationSpec$
|
|
11936
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11937
|
+
const createOrUpdateOperationSpec$1 = {
|
|
13308
11938
|
path: "/synonymmaps('{synonymMapName}')",
|
|
13309
11939
|
httpMethod: "PUT",
|
|
13310
11940
|
responses: {
|
|
@@ -13329,219 +11959,10 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
13329
11959
|
prefer,
|
|
13330
11960
|
],
|
|
13331
11961
|
mediaType: "json",
|
|
13332
|
-
serializer: serializer$3,
|
|
13333
|
-
};
|
|
13334
|
-
const deleteOperationSpec$2 = {
|
|
13335
|
-
path: "/synonymmaps('{synonymMapName}')",
|
|
13336
|
-
httpMethod: "DELETE",
|
|
13337
|
-
responses: {
|
|
13338
|
-
204: {},
|
|
13339
|
-
404: {},
|
|
13340
|
-
default: {
|
|
13341
|
-
bodyMapper: ErrorResponse,
|
|
13342
|
-
},
|
|
13343
|
-
},
|
|
13344
|
-
queryParameters: [apiVersion],
|
|
13345
|
-
urlParameters: [endpoint, synonymMapName],
|
|
13346
|
-
headerParameters: [
|
|
13347
|
-
accept,
|
|
13348
|
-
ifMatch,
|
|
13349
|
-
ifNoneMatch,
|
|
13350
|
-
],
|
|
13351
|
-
serializer: serializer$3,
|
|
13352
|
-
};
|
|
13353
|
-
const getOperationSpec$2 = {
|
|
13354
|
-
path: "/synonymmaps('{synonymMapName}')",
|
|
13355
|
-
httpMethod: "GET",
|
|
13356
|
-
responses: {
|
|
13357
|
-
200: {
|
|
13358
|
-
bodyMapper: SynonymMap,
|
|
13359
|
-
},
|
|
13360
|
-
default: {
|
|
13361
|
-
bodyMapper: ErrorResponse,
|
|
13362
|
-
},
|
|
13363
|
-
},
|
|
13364
|
-
queryParameters: [apiVersion],
|
|
13365
|
-
urlParameters: [endpoint, synonymMapName],
|
|
13366
|
-
headerParameters: [accept],
|
|
13367
|
-
serializer: serializer$3,
|
|
13368
|
-
};
|
|
13369
|
-
const listOperationSpec$2 = {
|
|
13370
|
-
path: "/synonymmaps",
|
|
13371
|
-
httpMethod: "GET",
|
|
13372
|
-
responses: {
|
|
13373
|
-
200: {
|
|
13374
|
-
bodyMapper: ListSynonymMapsResult,
|
|
13375
|
-
},
|
|
13376
|
-
default: {
|
|
13377
|
-
bodyMapper: ErrorResponse,
|
|
13378
|
-
},
|
|
13379
|
-
},
|
|
13380
|
-
queryParameters: [apiVersion, select],
|
|
13381
|
-
urlParameters: [endpoint],
|
|
13382
|
-
headerParameters: [accept],
|
|
13383
|
-
serializer: serializer$3,
|
|
13384
|
-
};
|
|
13385
|
-
const createOperationSpec$2 = {
|
|
13386
|
-
path: "/synonymmaps",
|
|
13387
|
-
httpMethod: "POST",
|
|
13388
|
-
responses: {
|
|
13389
|
-
201: {
|
|
13390
|
-
bodyMapper: SynonymMap,
|
|
13391
|
-
},
|
|
13392
|
-
default: {
|
|
13393
|
-
bodyMapper: ErrorResponse,
|
|
13394
|
-
},
|
|
13395
|
-
},
|
|
13396
|
-
requestBody: synonymMap,
|
|
13397
|
-
queryParameters: [apiVersion],
|
|
13398
|
-
urlParameters: [endpoint],
|
|
13399
|
-
headerParameters: [contentType, accept],
|
|
13400
|
-
mediaType: "json",
|
|
13401
|
-
serializer: serializer$3,
|
|
13402
|
-
};
|
|
13403
|
-
|
|
13404
|
-
/*
|
|
13405
|
-
* Copyright (c) Microsoft Corporation.
|
|
13406
|
-
* Licensed under the MIT License.
|
|
13407
|
-
*
|
|
13408
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13409
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
13410
|
-
*/
|
|
13411
|
-
/** Class containing Indexes operations. */
|
|
13412
|
-
class IndexesImpl {
|
|
13413
|
-
/**
|
|
13414
|
-
* Initialize a new instance of the class Indexes class.
|
|
13415
|
-
* @param client Reference to the service client
|
|
13416
|
-
*/
|
|
13417
|
-
constructor(client) {
|
|
13418
|
-
this.client = client;
|
|
13419
|
-
}
|
|
13420
|
-
/**
|
|
13421
|
-
* Creates a new search index.
|
|
13422
|
-
* @param index The definition of the index to create.
|
|
13423
|
-
* @param options The options parameters.
|
|
13424
|
-
*/
|
|
13425
|
-
create(index, options) {
|
|
13426
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec$1);
|
|
13427
|
-
}
|
|
13428
|
-
/**
|
|
13429
|
-
* Lists all indexes available for a search service.
|
|
13430
|
-
* @param options The options parameters.
|
|
13431
|
-
*/
|
|
13432
|
-
list(options) {
|
|
13433
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
13434
|
-
}
|
|
13435
|
-
/**
|
|
13436
|
-
* Creates a new search index or updates an index if it already exists.
|
|
13437
|
-
* @param indexName The definition of the index to create or update.
|
|
13438
|
-
* @param index The definition of the index to create or update.
|
|
13439
|
-
* @param options The options parameters.
|
|
13440
|
-
*/
|
|
13441
|
-
createOrUpdate(indexName, index, options) {
|
|
13442
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$1);
|
|
13443
|
-
}
|
|
13444
|
-
/**
|
|
13445
|
-
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
13446
|
-
* recovery option. Make sure you have a master copy of your index definition, data ingestion code, and
|
|
13447
|
-
* a backup of the primary data source in case you need to re-build the index.
|
|
13448
|
-
* @param indexName The name of the index to delete.
|
|
13449
|
-
* @param options The options parameters.
|
|
13450
|
-
*/
|
|
13451
|
-
delete(indexName, options) {
|
|
13452
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$1);
|
|
13453
|
-
}
|
|
13454
|
-
/**
|
|
13455
|
-
* Retrieves an index definition.
|
|
13456
|
-
* @param indexName The name of the index to retrieve.
|
|
13457
|
-
* @param options The options parameters.
|
|
13458
|
-
*/
|
|
13459
|
-
get(indexName, options) {
|
|
13460
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$1);
|
|
13461
|
-
}
|
|
13462
|
-
/**
|
|
13463
|
-
* Returns statistics for the given index, including a document count and storage usage.
|
|
13464
|
-
* @param indexName The name of the index for which to retrieve statistics.
|
|
13465
|
-
* @param options The options parameters.
|
|
13466
|
-
*/
|
|
13467
|
-
getStatistics(indexName, options) {
|
|
13468
|
-
return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
|
|
13469
|
-
}
|
|
13470
|
-
/**
|
|
13471
|
-
* Shows how an analyzer breaks text into tokens.
|
|
13472
|
-
* @param indexName The name of the index for which to test an analyzer.
|
|
13473
|
-
* @param request The text and analyzer or analysis components to test.
|
|
13474
|
-
* @param options The options parameters.
|
|
13475
|
-
*/
|
|
13476
|
-
analyze(indexName, request, options) {
|
|
13477
|
-
return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
|
|
13478
|
-
}
|
|
13479
|
-
}
|
|
13480
|
-
// Operation Specifications
|
|
13481
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
13482
|
-
const createOperationSpec$1 = {
|
|
13483
|
-
path: "/indexes",
|
|
13484
|
-
httpMethod: "POST",
|
|
13485
|
-
responses: {
|
|
13486
|
-
201: {
|
|
13487
|
-
bodyMapper: SearchIndex,
|
|
13488
|
-
},
|
|
13489
|
-
default: {
|
|
13490
|
-
bodyMapper: ErrorResponse,
|
|
13491
|
-
},
|
|
13492
|
-
},
|
|
13493
|
-
requestBody: index,
|
|
13494
|
-
queryParameters: [apiVersion],
|
|
13495
|
-
urlParameters: [endpoint],
|
|
13496
|
-
headerParameters: [contentType, accept],
|
|
13497
|
-
mediaType: "json",
|
|
13498
|
-
serializer: serializer$2,
|
|
13499
|
-
};
|
|
13500
|
-
const listOperationSpec$1 = {
|
|
13501
|
-
path: "/indexes",
|
|
13502
|
-
httpMethod: "GET",
|
|
13503
|
-
responses: {
|
|
13504
|
-
200: {
|
|
13505
|
-
bodyMapper: ListIndexesResult,
|
|
13506
|
-
},
|
|
13507
|
-
default: {
|
|
13508
|
-
bodyMapper: ErrorResponse,
|
|
13509
|
-
},
|
|
13510
|
-
},
|
|
13511
|
-
queryParameters: [apiVersion, select],
|
|
13512
|
-
urlParameters: [endpoint],
|
|
13513
|
-
headerParameters: [accept],
|
|
13514
|
-
serializer: serializer$2,
|
|
13515
|
-
};
|
|
13516
|
-
const createOrUpdateOperationSpec$1 = {
|
|
13517
|
-
path: "/indexes('{indexName}')",
|
|
13518
|
-
httpMethod: "PUT",
|
|
13519
|
-
responses: {
|
|
13520
|
-
200: {
|
|
13521
|
-
bodyMapper: SearchIndex,
|
|
13522
|
-
},
|
|
13523
|
-
201: {
|
|
13524
|
-
bodyMapper: SearchIndex,
|
|
13525
|
-
},
|
|
13526
|
-
default: {
|
|
13527
|
-
bodyMapper: ErrorResponse,
|
|
13528
|
-
},
|
|
13529
|
-
},
|
|
13530
|
-
requestBody: index,
|
|
13531
|
-
queryParameters: [apiVersion, allowIndexDowntime],
|
|
13532
|
-
urlParameters: [endpoint, indexName],
|
|
13533
|
-
headerParameters: [
|
|
13534
|
-
contentType,
|
|
13535
|
-
accept,
|
|
13536
|
-
ifMatch,
|
|
13537
|
-
ifNoneMatch,
|
|
13538
|
-
prefer,
|
|
13539
|
-
],
|
|
13540
|
-
mediaType: "json",
|
|
13541
11962
|
serializer: serializer$2,
|
|
13542
11963
|
};
|
|
13543
11964
|
const deleteOperationSpec$1 = {
|
|
13544
|
-
path: "/
|
|
11965
|
+
path: "/synonymmaps('{synonymMapName}')",
|
|
13545
11966
|
httpMethod: "DELETE",
|
|
13546
11967
|
responses: {
|
|
13547
11968
|
204: {},
|
|
@@ -13551,7 +11972,7 @@ const deleteOperationSpec$1 = {
|
|
|
13551
11972
|
},
|
|
13552
11973
|
},
|
|
13553
11974
|
queryParameters: [apiVersion],
|
|
13554
|
-
urlParameters: [endpoint,
|
|
11975
|
+
urlParameters: [endpoint, synonymMapName],
|
|
13555
11976
|
headerParameters: [
|
|
13556
11977
|
accept,
|
|
13557
11978
|
ifMatch,
|
|
@@ -13560,51 +11981,51 @@ const deleteOperationSpec$1 = {
|
|
|
13560
11981
|
serializer: serializer$2,
|
|
13561
11982
|
};
|
|
13562
11983
|
const getOperationSpec$1 = {
|
|
13563
|
-
path: "/
|
|
11984
|
+
path: "/synonymmaps('{synonymMapName}')",
|
|
13564
11985
|
httpMethod: "GET",
|
|
13565
11986
|
responses: {
|
|
13566
11987
|
200: {
|
|
13567
|
-
bodyMapper:
|
|
11988
|
+
bodyMapper: SynonymMap,
|
|
13568
11989
|
},
|
|
13569
11990
|
default: {
|
|
13570
11991
|
bodyMapper: ErrorResponse,
|
|
13571
11992
|
},
|
|
13572
11993
|
},
|
|
13573
11994
|
queryParameters: [apiVersion],
|
|
13574
|
-
urlParameters: [endpoint,
|
|
11995
|
+
urlParameters: [endpoint, synonymMapName],
|
|
13575
11996
|
headerParameters: [accept],
|
|
13576
11997
|
serializer: serializer$2,
|
|
13577
11998
|
};
|
|
13578
|
-
const
|
|
13579
|
-
path: "/
|
|
11999
|
+
const listOperationSpec$1 = {
|
|
12000
|
+
path: "/synonymmaps",
|
|
13580
12001
|
httpMethod: "GET",
|
|
13581
12002
|
responses: {
|
|
13582
12003
|
200: {
|
|
13583
|
-
bodyMapper:
|
|
12004
|
+
bodyMapper: ListSynonymMapsResult,
|
|
13584
12005
|
},
|
|
13585
12006
|
default: {
|
|
13586
12007
|
bodyMapper: ErrorResponse,
|
|
13587
12008
|
},
|
|
13588
12009
|
},
|
|
13589
|
-
queryParameters: [apiVersion],
|
|
13590
|
-
urlParameters: [endpoint
|
|
12010
|
+
queryParameters: [apiVersion, select],
|
|
12011
|
+
urlParameters: [endpoint],
|
|
13591
12012
|
headerParameters: [accept],
|
|
13592
12013
|
serializer: serializer$2,
|
|
13593
12014
|
};
|
|
13594
|
-
const
|
|
13595
|
-
path: "/
|
|
12015
|
+
const createOperationSpec$1 = {
|
|
12016
|
+
path: "/synonymmaps",
|
|
13596
12017
|
httpMethod: "POST",
|
|
13597
12018
|
responses: {
|
|
13598
|
-
|
|
13599
|
-
bodyMapper:
|
|
12019
|
+
201: {
|
|
12020
|
+
bodyMapper: SynonymMap,
|
|
13600
12021
|
},
|
|
13601
12022
|
default: {
|
|
13602
12023
|
bodyMapper: ErrorResponse,
|
|
13603
12024
|
},
|
|
13604
12025
|
},
|
|
13605
|
-
requestBody:
|
|
12026
|
+
requestBody: synonymMap,
|
|
13606
12027
|
queryParameters: [apiVersion],
|
|
13607
|
-
urlParameters: [endpoint
|
|
12028
|
+
urlParameters: [endpoint],
|
|
13608
12029
|
headerParameters: [contentType, accept],
|
|
13609
12030
|
mediaType: "json",
|
|
13610
12031
|
serializer: serializer$2,
|
|
@@ -13617,71 +12038,89 @@ const analyzeOperationSpec = {
|
|
|
13617
12038
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13618
12039
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
13619
12040
|
*/
|
|
13620
|
-
/** Class containing
|
|
13621
|
-
class
|
|
12041
|
+
/** Class containing Indexes operations. */
|
|
12042
|
+
class IndexesImpl {
|
|
13622
12043
|
/**
|
|
13623
|
-
* Initialize a new instance of the class
|
|
12044
|
+
* Initialize a new instance of the class Indexes class.
|
|
13624
12045
|
* @param client Reference to the service client
|
|
13625
12046
|
*/
|
|
13626
12047
|
constructor(client) {
|
|
13627
12048
|
this.client = client;
|
|
13628
12049
|
}
|
|
13629
12050
|
/**
|
|
13630
|
-
* Creates a new search
|
|
13631
|
-
* @param
|
|
12051
|
+
* Creates a new search index.
|
|
12052
|
+
* @param index The definition of the index to create.
|
|
13632
12053
|
* @param options The options parameters.
|
|
13633
12054
|
*/
|
|
13634
|
-
create(
|
|
13635
|
-
return this.client.sendOperationRequest({
|
|
12055
|
+
create(index, options) {
|
|
12056
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
13636
12057
|
}
|
|
13637
12058
|
/**
|
|
13638
|
-
* Lists all
|
|
12059
|
+
* Lists all indexes available for a search service.
|
|
13639
12060
|
* @param options The options parameters.
|
|
13640
12061
|
*/
|
|
13641
12062
|
list(options) {
|
|
13642
12063
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
13643
12064
|
}
|
|
13644
12065
|
/**
|
|
13645
|
-
* Creates a new search
|
|
13646
|
-
* @param
|
|
13647
|
-
* @param
|
|
12066
|
+
* Creates a new search index or updates an index if it already exists.
|
|
12067
|
+
* @param indexName The definition of the index to create or update.
|
|
12068
|
+
* @param index The definition of the index to create or update.
|
|
12069
|
+
* @param options The options parameters.
|
|
12070
|
+
*/
|
|
12071
|
+
createOrUpdate(indexName, index, options) {
|
|
12072
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
12073
|
+
}
|
|
12074
|
+
/**
|
|
12075
|
+
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
12076
|
+
* recovery option. Make sure you have a master copy of your index definition, data ingestion code, and
|
|
12077
|
+
* a backup of the primary data source in case you need to re-build the index.
|
|
12078
|
+
* @param indexName The name of the index to delete.
|
|
12079
|
+
* @param options The options parameters.
|
|
12080
|
+
*/
|
|
12081
|
+
delete(indexName, options) {
|
|
12082
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
12083
|
+
}
|
|
12084
|
+
/**
|
|
12085
|
+
* Retrieves an index definition.
|
|
12086
|
+
* @param indexName The name of the index to retrieve.
|
|
13648
12087
|
* @param options The options parameters.
|
|
13649
12088
|
*/
|
|
13650
|
-
|
|
13651
|
-
return this.client.sendOperationRequest({
|
|
12089
|
+
get(indexName, options) {
|
|
12090
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
13652
12091
|
}
|
|
13653
12092
|
/**
|
|
13654
|
-
*
|
|
13655
|
-
*
|
|
13656
|
-
* @param aliasName The name of the alias to delete.
|
|
12093
|
+
* Returns statistics for the given index, including a document count and storage usage.
|
|
12094
|
+
* @param indexName The name of the index for which to retrieve statistics.
|
|
13657
12095
|
* @param options The options parameters.
|
|
13658
12096
|
*/
|
|
13659
|
-
|
|
13660
|
-
return this.client.sendOperationRequest({
|
|
12097
|
+
getStatistics(indexName, options) {
|
|
12098
|
+
return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
|
|
13661
12099
|
}
|
|
13662
12100
|
/**
|
|
13663
|
-
*
|
|
13664
|
-
* @param
|
|
12101
|
+
* Shows how an analyzer breaks text into tokens.
|
|
12102
|
+
* @param indexName The name of the index for which to test an analyzer.
|
|
12103
|
+
* @param request The text and analyzer or analysis components to test.
|
|
13665
12104
|
* @param options The options parameters.
|
|
13666
12105
|
*/
|
|
13667
|
-
|
|
13668
|
-
return this.client.sendOperationRequest({
|
|
12106
|
+
analyze(indexName, request, options) {
|
|
12107
|
+
return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
|
|
13669
12108
|
}
|
|
13670
12109
|
}
|
|
13671
12110
|
// Operation Specifications
|
|
13672
12111
|
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
13673
12112
|
const createOperationSpec = {
|
|
13674
|
-
path: "/
|
|
12113
|
+
path: "/indexes",
|
|
13675
12114
|
httpMethod: "POST",
|
|
13676
12115
|
responses: {
|
|
13677
12116
|
201: {
|
|
13678
|
-
bodyMapper:
|
|
12117
|
+
bodyMapper: SearchIndex,
|
|
13679
12118
|
},
|
|
13680
12119
|
default: {
|
|
13681
12120
|
bodyMapper: ErrorResponse,
|
|
13682
12121
|
},
|
|
13683
12122
|
},
|
|
13684
|
-
requestBody:
|
|
12123
|
+
requestBody: index,
|
|
13685
12124
|
queryParameters: [apiVersion],
|
|
13686
12125
|
urlParameters: [endpoint],
|
|
13687
12126
|
headerParameters: [contentType, accept],
|
|
@@ -13689,38 +12128,38 @@ const createOperationSpec = {
|
|
|
13689
12128
|
serializer: serializer$1,
|
|
13690
12129
|
};
|
|
13691
12130
|
const listOperationSpec = {
|
|
13692
|
-
path: "/
|
|
12131
|
+
path: "/indexes",
|
|
13693
12132
|
httpMethod: "GET",
|
|
13694
12133
|
responses: {
|
|
13695
12134
|
200: {
|
|
13696
|
-
bodyMapper:
|
|
12135
|
+
bodyMapper: ListIndexesResult,
|
|
13697
12136
|
},
|
|
13698
12137
|
default: {
|
|
13699
12138
|
bodyMapper: ErrorResponse,
|
|
13700
12139
|
},
|
|
13701
12140
|
},
|
|
13702
|
-
queryParameters: [apiVersion],
|
|
12141
|
+
queryParameters: [apiVersion, select],
|
|
13703
12142
|
urlParameters: [endpoint],
|
|
13704
12143
|
headerParameters: [accept],
|
|
13705
12144
|
serializer: serializer$1,
|
|
13706
12145
|
};
|
|
13707
12146
|
const createOrUpdateOperationSpec = {
|
|
13708
|
-
path: "/
|
|
12147
|
+
path: "/indexes('{indexName}')",
|
|
13709
12148
|
httpMethod: "PUT",
|
|
13710
12149
|
responses: {
|
|
13711
12150
|
200: {
|
|
13712
|
-
bodyMapper:
|
|
12151
|
+
bodyMapper: SearchIndex,
|
|
13713
12152
|
},
|
|
13714
12153
|
201: {
|
|
13715
|
-
bodyMapper:
|
|
12154
|
+
bodyMapper: SearchIndex,
|
|
13716
12155
|
},
|
|
13717
12156
|
default: {
|
|
13718
12157
|
bodyMapper: ErrorResponse,
|
|
13719
12158
|
},
|
|
13720
12159
|
},
|
|
13721
|
-
requestBody:
|
|
13722
|
-
queryParameters: [apiVersion],
|
|
13723
|
-
urlParameters: [endpoint,
|
|
12160
|
+
requestBody: index,
|
|
12161
|
+
queryParameters: [apiVersion, allowIndexDowntime],
|
|
12162
|
+
urlParameters: [endpoint, indexName],
|
|
13724
12163
|
headerParameters: [
|
|
13725
12164
|
contentType,
|
|
13726
12165
|
accept,
|
|
@@ -13732,7 +12171,7 @@ const createOrUpdateOperationSpec = {
|
|
|
13732
12171
|
serializer: serializer$1,
|
|
13733
12172
|
};
|
|
13734
12173
|
const deleteOperationSpec = {
|
|
13735
|
-
path: "/
|
|
12174
|
+
path: "/indexes('{indexName}')",
|
|
13736
12175
|
httpMethod: "DELETE",
|
|
13737
12176
|
responses: {
|
|
13738
12177
|
204: {},
|
|
@@ -13742,7 +12181,7 @@ const deleteOperationSpec = {
|
|
|
13742
12181
|
},
|
|
13743
12182
|
},
|
|
13744
12183
|
queryParameters: [apiVersion],
|
|
13745
|
-
urlParameters: [endpoint,
|
|
12184
|
+
urlParameters: [endpoint, indexName],
|
|
13746
12185
|
headerParameters: [
|
|
13747
12186
|
accept,
|
|
13748
12187
|
ifMatch,
|
|
@@ -13751,21 +12190,55 @@ const deleteOperationSpec = {
|
|
|
13751
12190
|
serializer: serializer$1,
|
|
13752
12191
|
};
|
|
13753
12192
|
const getOperationSpec = {
|
|
13754
|
-
path: "/
|
|
12193
|
+
path: "/indexes('{indexName}')",
|
|
12194
|
+
httpMethod: "GET",
|
|
12195
|
+
responses: {
|
|
12196
|
+
200: {
|
|
12197
|
+
bodyMapper: SearchIndex,
|
|
12198
|
+
},
|
|
12199
|
+
default: {
|
|
12200
|
+
bodyMapper: ErrorResponse,
|
|
12201
|
+
},
|
|
12202
|
+
},
|
|
12203
|
+
queryParameters: [apiVersion],
|
|
12204
|
+
urlParameters: [endpoint, indexName],
|
|
12205
|
+
headerParameters: [accept],
|
|
12206
|
+
serializer: serializer$1,
|
|
12207
|
+
};
|
|
12208
|
+
const getStatisticsOperationSpec = {
|
|
12209
|
+
path: "/indexes('{indexName}')/search.stats",
|
|
13755
12210
|
httpMethod: "GET",
|
|
13756
12211
|
responses: {
|
|
13757
12212
|
200: {
|
|
13758
|
-
bodyMapper:
|
|
12213
|
+
bodyMapper: GetIndexStatisticsResult,
|
|
13759
12214
|
},
|
|
13760
12215
|
default: {
|
|
13761
12216
|
bodyMapper: ErrorResponse,
|
|
13762
12217
|
},
|
|
13763
12218
|
},
|
|
13764
12219
|
queryParameters: [apiVersion],
|
|
13765
|
-
urlParameters: [endpoint,
|
|
12220
|
+
urlParameters: [endpoint, indexName],
|
|
13766
12221
|
headerParameters: [accept],
|
|
13767
12222
|
serializer: serializer$1,
|
|
13768
12223
|
};
|
|
12224
|
+
const analyzeOperationSpec = {
|
|
12225
|
+
path: "/indexes('{indexName}')/search.analyze",
|
|
12226
|
+
httpMethod: "POST",
|
|
12227
|
+
responses: {
|
|
12228
|
+
200: {
|
|
12229
|
+
bodyMapper: AnalyzeResult,
|
|
12230
|
+
},
|
|
12231
|
+
default: {
|
|
12232
|
+
bodyMapper: ErrorResponse,
|
|
12233
|
+
},
|
|
12234
|
+
},
|
|
12235
|
+
requestBody: request,
|
|
12236
|
+
queryParameters: [apiVersion],
|
|
12237
|
+
urlParameters: [endpoint, indexName],
|
|
12238
|
+
headerParameters: [contentType, accept],
|
|
12239
|
+
mediaType: "json",
|
|
12240
|
+
serializer: serializer$1,
|
|
12241
|
+
};
|
|
13769
12242
|
|
|
13770
12243
|
/*
|
|
13771
12244
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -13797,7 +12270,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
13797
12270
|
const defaults = {
|
|
13798
12271
|
requestContentType: "application/json; charset=utf-8",
|
|
13799
12272
|
};
|
|
13800
|
-
const packageDetails = `azsdk-js-search-documents/12.1.0
|
|
12273
|
+
const packageDetails = `azsdk-js-search-documents/12.1.0`;
|
|
13801
12274
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
13802
12275
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
13803
12276
|
: `${packageDetails}`;
|
|
@@ -13813,7 +12286,6 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
13813
12286
|
this.skillsets = new SkillsetsImpl(this);
|
|
13814
12287
|
this.synonymMaps = new SynonymMapsImpl(this);
|
|
13815
12288
|
this.indexes = new IndexesImpl(this);
|
|
13816
|
-
this.aliases = new AliasesImpl(this);
|
|
13817
12289
|
this.addCustomApiVersionPolicy(apiVersion);
|
|
13818
12290
|
}
|
|
13819
12291
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -13923,7 +12395,6 @@ class SearchIndexClient {
|
|
|
13923
12395
|
(_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
13924
12396
|
this.apiVersion = this.serviceVersion;
|
|
13925
12397
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
13926
|
-
this.pipeline = this.client.pipeline;
|
|
13927
12398
|
if (coreAuth.isTokenCredential(credential)) {
|
|
13928
12399
|
const scope = this.options.audience
|
|
13929
12400
|
? `${this.options.audience}/.default`
|
|
@@ -13993,63 +12464,6 @@ class SearchIndexClient {
|
|
|
13993
12464
|
},
|
|
13994
12465
|
};
|
|
13995
12466
|
}
|
|
13996
|
-
listAliasesPage(options = {}) {
|
|
13997
|
-
return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
|
|
13998
|
-
const { span, updatedOptions } = createSpan("SearchIndexClient-listAliases", options);
|
|
13999
|
-
try {
|
|
14000
|
-
const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
|
|
14001
|
-
yield yield tslib.__await(result.aliases);
|
|
14002
|
-
}
|
|
14003
|
-
catch (e) {
|
|
14004
|
-
span.setStatus({
|
|
14005
|
-
status: "error",
|
|
14006
|
-
error: e.message,
|
|
14007
|
-
});
|
|
14008
|
-
throw e;
|
|
14009
|
-
}
|
|
14010
|
-
finally {
|
|
14011
|
-
span.end();
|
|
14012
|
-
}
|
|
14013
|
-
});
|
|
14014
|
-
}
|
|
14015
|
-
listAliasesAll(options = {}) {
|
|
14016
|
-
return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
|
|
14017
|
-
var _a, e_2, _b, _c;
|
|
14018
|
-
try {
|
|
14019
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
14020
|
-
_c = _f.value;
|
|
14021
|
-
_d = false;
|
|
14022
|
-
const page = _c;
|
|
14023
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
14024
|
-
}
|
|
14025
|
-
}
|
|
14026
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
14027
|
-
finally {
|
|
14028
|
-
try {
|
|
14029
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
14030
|
-
}
|
|
14031
|
-
finally { if (e_2) throw e_2.error; }
|
|
14032
|
-
}
|
|
14033
|
-
});
|
|
14034
|
-
}
|
|
14035
|
-
/**
|
|
14036
|
-
* Lists all aliases available for a search service.
|
|
14037
|
-
* @param options - The options parameters.
|
|
14038
|
-
*/
|
|
14039
|
-
listAliases(options = {}) {
|
|
14040
|
-
const iter = this.listAliasesAll(options);
|
|
14041
|
-
return {
|
|
14042
|
-
next() {
|
|
14043
|
-
return iter.next();
|
|
14044
|
-
},
|
|
14045
|
-
[Symbol.asyncIterator]() {
|
|
14046
|
-
return this;
|
|
14047
|
-
},
|
|
14048
|
-
byPage: () => {
|
|
14049
|
-
return this.listAliasesPage(options);
|
|
14050
|
-
},
|
|
14051
|
-
};
|
|
14052
|
-
}
|
|
14053
12467
|
listIndexesNamesPage(options = {}) {
|
|
14054
12468
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
|
|
14055
12469
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
|
|
@@ -14072,7 +12486,7 @@ class SearchIndexClient {
|
|
|
14072
12486
|
}
|
|
14073
12487
|
listIndexesNamesAll(options = {}) {
|
|
14074
12488
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
|
|
14075
|
-
var _a,
|
|
12489
|
+
var _a, e_2, _b, _c;
|
|
14076
12490
|
try {
|
|
14077
12491
|
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
14078
12492
|
_c = _f.value;
|
|
@@ -14081,12 +12495,12 @@ class SearchIndexClient {
|
|
|
14081
12495
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
14082
12496
|
}
|
|
14083
12497
|
}
|
|
14084
|
-
catch (
|
|
12498
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
14085
12499
|
finally {
|
|
14086
12500
|
try {
|
|
14087
12501
|
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
14088
12502
|
}
|
|
14089
|
-
finally { if (
|
|
12503
|
+
finally { if (e_2) throw e_2.error; }
|
|
14090
12504
|
}
|
|
14091
12505
|
});
|
|
14092
12506
|
}
|
|
@@ -14334,97 +12748,6 @@ class SearchIndexClient {
|
|
|
14334
12748
|
span.end();
|
|
14335
12749
|
}
|
|
14336
12750
|
}
|
|
14337
|
-
/**
|
|
14338
|
-
* Creates a new search alias or updates an alias if it already exists.
|
|
14339
|
-
* @param alias - The definition of the alias to create or update.
|
|
14340
|
-
* @param options - The options parameters.
|
|
14341
|
-
*/
|
|
14342
|
-
async createOrUpdateAlias(alias, options = {}) {
|
|
14343
|
-
const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateAlias", options);
|
|
14344
|
-
try {
|
|
14345
|
-
const etag = options.onlyIfUnchanged ? alias.etag : undefined;
|
|
14346
|
-
const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
14347
|
-
return result;
|
|
14348
|
-
}
|
|
14349
|
-
catch (e) {
|
|
14350
|
-
span.setStatus({
|
|
14351
|
-
status: "error",
|
|
14352
|
-
error: e.message,
|
|
14353
|
-
});
|
|
14354
|
-
throw e;
|
|
14355
|
-
}
|
|
14356
|
-
finally {
|
|
14357
|
-
span.end();
|
|
14358
|
-
}
|
|
14359
|
-
}
|
|
14360
|
-
/**
|
|
14361
|
-
* Creates a new search alias.
|
|
14362
|
-
* @param alias - The definition of the alias to create.
|
|
14363
|
-
* @param options - The options parameters.
|
|
14364
|
-
*/
|
|
14365
|
-
async createAlias(alias, options = {}) {
|
|
14366
|
-
const { span, updatedOptions } = createSpan("SearchIndexClient-createAlias", options);
|
|
14367
|
-
try {
|
|
14368
|
-
const result = await this.client.aliases.create(alias, updatedOptions);
|
|
14369
|
-
return result;
|
|
14370
|
-
}
|
|
14371
|
-
catch (e) {
|
|
14372
|
-
span.setStatus({
|
|
14373
|
-
status: "error",
|
|
14374
|
-
error: e.message,
|
|
14375
|
-
});
|
|
14376
|
-
throw e;
|
|
14377
|
-
}
|
|
14378
|
-
finally {
|
|
14379
|
-
span.end();
|
|
14380
|
-
}
|
|
14381
|
-
}
|
|
14382
|
-
/**
|
|
14383
|
-
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
14384
|
-
* recovery option. The mapped index is untouched by this operation.
|
|
14385
|
-
* @param alias - Alias/Name name of the alias to delete.
|
|
14386
|
-
* @param options - The options parameters.
|
|
14387
|
-
*/
|
|
14388
|
-
async deleteAlias(alias, options = {}) {
|
|
14389
|
-
const { span, updatedOptions } = createSpan("SearchIndexClient-deleteAlias", options);
|
|
14390
|
-
try {
|
|
14391
|
-
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
14392
|
-
const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
|
|
14393
|
-
await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
14394
|
-
}
|
|
14395
|
-
catch (e) {
|
|
14396
|
-
span.setStatus({
|
|
14397
|
-
status: "error",
|
|
14398
|
-
error: e.message,
|
|
14399
|
-
});
|
|
14400
|
-
throw e;
|
|
14401
|
-
}
|
|
14402
|
-
finally {
|
|
14403
|
-
span.end();
|
|
14404
|
-
}
|
|
14405
|
-
}
|
|
14406
|
-
/**
|
|
14407
|
-
* Retrieves an alias definition.
|
|
14408
|
-
* @param aliasName - The name of the alias to retrieve.
|
|
14409
|
-
* @param options - The options parameters.
|
|
14410
|
-
*/
|
|
14411
|
-
async getAlias(aliasName, options = {}) {
|
|
14412
|
-
const { span, updatedOptions } = createSpan("SearchIndexClient-getAlias", options);
|
|
14413
|
-
try {
|
|
14414
|
-
const result = await this.client.aliases.get(aliasName, updatedOptions);
|
|
14415
|
-
return result;
|
|
14416
|
-
}
|
|
14417
|
-
catch (e) {
|
|
14418
|
-
span.setStatus({
|
|
14419
|
-
status: "error",
|
|
14420
|
-
error: e.message,
|
|
14421
|
-
});
|
|
14422
|
-
throw e;
|
|
14423
|
-
}
|
|
14424
|
-
finally {
|
|
14425
|
-
span.end();
|
|
14426
|
-
}
|
|
14427
|
-
}
|
|
14428
12751
|
/**
|
|
14429
12752
|
* Retrieves statistics about an index, such as the count of documents and the size
|
|
14430
12753
|
* of index storage.
|
|
@@ -14565,7 +12888,6 @@ class SearchIndexerClient {
|
|
|
14565
12888
|
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
14566
12889
|
this.apiVersion = this.serviceVersion;
|
|
14567
12890
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
14568
|
-
this.pipeline = this.client.pipeline;
|
|
14569
12891
|
if (coreAuth.isTokenCredential(credential)) {
|
|
14570
12892
|
const scope = options.audience
|
|
14571
12893
|
? `${options.audience}/.default`
|
|
@@ -15050,52 +13372,6 @@ class SearchIndexerClient {
|
|
|
15050
13372
|
span.end();
|
|
15051
13373
|
}
|
|
15052
13374
|
}
|
|
15053
|
-
/**
|
|
15054
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
15055
|
-
* @param indexerName - The name of the indexer to reset documents for.
|
|
15056
|
-
* @param options - Additional optional arguments.
|
|
15057
|
-
*/
|
|
15058
|
-
async resetDocuments(indexerName, options = {}) {
|
|
15059
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
|
|
15060
|
-
try {
|
|
15061
|
-
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
15062
|
-
documentKeys: updatedOptions.documentKeys,
|
|
15063
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
15064
|
-
} }));
|
|
15065
|
-
}
|
|
15066
|
-
catch (e) {
|
|
15067
|
-
span.setStatus({
|
|
15068
|
-
status: "error",
|
|
15069
|
-
error: e.message,
|
|
15070
|
-
});
|
|
15071
|
-
throw e;
|
|
15072
|
-
}
|
|
15073
|
-
finally {
|
|
15074
|
-
span.end();
|
|
15075
|
-
}
|
|
15076
|
-
}
|
|
15077
|
-
/**
|
|
15078
|
-
* Reset an existing skillset in a search service.
|
|
15079
|
-
* @param skillsetName - The name of the skillset to reset.
|
|
15080
|
-
* @param skillNames - The names of skills to reset.
|
|
15081
|
-
* @param options - The options parameters.
|
|
15082
|
-
*/
|
|
15083
|
-
async resetSkills(skillsetName, options = {}) {
|
|
15084
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
|
|
15085
|
-
try {
|
|
15086
|
-
await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
|
|
15087
|
-
}
|
|
15088
|
-
catch (e) {
|
|
15089
|
-
span.setStatus({
|
|
15090
|
-
status: "error",
|
|
15091
|
-
error: e.message,
|
|
15092
|
-
});
|
|
15093
|
-
throw e;
|
|
15094
|
-
}
|
|
15095
|
-
finally {
|
|
15096
|
-
span.end();
|
|
15097
|
-
}
|
|
15098
|
-
}
|
|
15099
13375
|
}
|
|
15100
13376
|
|
|
15101
13377
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -15407,7 +13683,6 @@ exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
|
15407
13683
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
15408
13684
|
exports.GeographyPoint = GeographyPoint;
|
|
15409
13685
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
15410
|
-
exports.KnownLexicalNormalizerName = exports.KnownNormalizerNames;
|
|
15411
13686
|
exports.SearchClient = SearchClient;
|
|
15412
13687
|
exports.SearchIndexClient = SearchIndexClient;
|
|
15413
13688
|
exports.SearchIndexerClient = SearchIndexerClient;
|