@azure/search-documents 12.1.0-beta.1 → 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/README.md +30 -19
- package/dist/index.js +652 -1967
- 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 +8 -190
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +48 -194
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +43 -85
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +5 -9
- 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 +123 -129
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +132 -547
- 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 +2 -12
- 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/searchIndexingBufferedSender.js +2 -1
- package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
- package/dist-esm/src/serialization.js +34 -70
- package/dist-esm/src/serialization.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +42 -116
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/dist-esm/src/walk.js +79 -0
- package/dist-esm/src/walk.js.map +1 -0
- package/package.json +13 -11
- package/types/search-documents.d.ts +6375 -7432
- package/dist-esm/src/constants.js +0 -5
- package/dist-esm/src/constants.js.map +0 -1
- 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
|
@@ -8,6 +8,7 @@ var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
|
8
8
|
var coreHttpCompat = require('@azure/core-http-compat');
|
|
9
9
|
var coreClient = require('@azure/core-client');
|
|
10
10
|
var logger$1 = require('@azure/logger');
|
|
11
|
+
var coreUtil = require('@azure/core-util');
|
|
11
12
|
var coreTracing = require('@azure/core-tracing');
|
|
12
13
|
var EventEmitter = require('events');
|
|
13
14
|
var fs = require('fs');
|
|
@@ -41,12 +42,12 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
|
41
42
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
42
43
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
43
44
|
*/
|
|
44
|
-
/** Known values of {@link
|
|
45
|
-
var
|
|
46
|
-
(function (
|
|
47
|
-
/** Api Version '2024-
|
|
48
|
-
|
|
49
|
-
})(
|
|
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 = {}));
|
|
50
51
|
/** Known values of {@link SemanticErrorMode} that the service accepts. */
|
|
51
52
|
exports.KnownSemanticErrorMode = void 0;
|
|
52
53
|
(function (KnownSemanticErrorMode) {
|
|
@@ -55,170 +56,6 @@ exports.KnownSemanticErrorMode = void 0;
|
|
|
55
56
|
/** If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */
|
|
56
57
|
KnownSemanticErrorMode["Fail"] = "fail";
|
|
57
58
|
})(exports.KnownSemanticErrorMode || (exports.KnownSemanticErrorMode = {}));
|
|
58
|
-
/** Known values of {@link QueryDebugMode} that the service accepts. */
|
|
59
|
-
exports.KnownQueryDebugMode = void 0;
|
|
60
|
-
(function (KnownQueryDebugMode) {
|
|
61
|
-
/** No query debugging information will be returned. */
|
|
62
|
-
KnownQueryDebugMode["Disabled"] = "disabled";
|
|
63
|
-
/** Allows the user to further explore their reranked results. */
|
|
64
|
-
KnownQueryDebugMode["Semantic"] = "semantic";
|
|
65
|
-
})(exports.KnownQueryDebugMode || (exports.KnownQueryDebugMode = {}));
|
|
66
|
-
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
67
|
-
exports.KnownQueryLanguage = void 0;
|
|
68
|
-
(function (KnownQueryLanguage) {
|
|
69
|
-
/** Query language not specified. */
|
|
70
|
-
KnownQueryLanguage["None"] = "none";
|
|
71
|
-
/** Query language value for English (United States). */
|
|
72
|
-
KnownQueryLanguage["EnUs"] = "en-us";
|
|
73
|
-
/** Query language value for English (Great Britain). */
|
|
74
|
-
KnownQueryLanguage["EnGb"] = "en-gb";
|
|
75
|
-
/** Query language value for English (India). */
|
|
76
|
-
KnownQueryLanguage["EnIn"] = "en-in";
|
|
77
|
-
/** Query language value for English (Canada). */
|
|
78
|
-
KnownQueryLanguage["EnCa"] = "en-ca";
|
|
79
|
-
/** Query language value for English (Australia). */
|
|
80
|
-
KnownQueryLanguage["EnAu"] = "en-au";
|
|
81
|
-
/** Query language value for French (France). */
|
|
82
|
-
KnownQueryLanguage["FrFr"] = "fr-fr";
|
|
83
|
-
/** Query language value for French (Canada). */
|
|
84
|
-
KnownQueryLanguage["FrCa"] = "fr-ca";
|
|
85
|
-
/** Query language value for German (Germany). */
|
|
86
|
-
KnownQueryLanguage["DeDe"] = "de-de";
|
|
87
|
-
/** Query language value for Spanish (Spain). */
|
|
88
|
-
KnownQueryLanguage["EsEs"] = "es-es";
|
|
89
|
-
/** Query language value for Spanish (Mexico). */
|
|
90
|
-
KnownQueryLanguage["EsMx"] = "es-mx";
|
|
91
|
-
/** Query language value for Chinese (China). */
|
|
92
|
-
KnownQueryLanguage["ZhCn"] = "zh-cn";
|
|
93
|
-
/** Query language value for Chinese (Taiwan). */
|
|
94
|
-
KnownQueryLanguage["ZhTw"] = "zh-tw";
|
|
95
|
-
/** Query language value for Portuguese (Brazil). */
|
|
96
|
-
KnownQueryLanguage["PtBr"] = "pt-br";
|
|
97
|
-
/** Query language value for Portuguese (Portugal). */
|
|
98
|
-
KnownQueryLanguage["PtPt"] = "pt-pt";
|
|
99
|
-
/** Query language value for Italian (Italy). */
|
|
100
|
-
KnownQueryLanguage["ItIt"] = "it-it";
|
|
101
|
-
/** Query language value for Japanese (Japan). */
|
|
102
|
-
KnownQueryLanguage["JaJp"] = "ja-jp";
|
|
103
|
-
/** Query language value for Korean (Korea). */
|
|
104
|
-
KnownQueryLanguage["KoKr"] = "ko-kr";
|
|
105
|
-
/** Query language value for Russian (Russia). */
|
|
106
|
-
KnownQueryLanguage["RuRu"] = "ru-ru";
|
|
107
|
-
/** Query language value for Czech (Czech Republic). */
|
|
108
|
-
KnownQueryLanguage["CsCz"] = "cs-cz";
|
|
109
|
-
/** Query language value for Dutch (Belgium). */
|
|
110
|
-
KnownQueryLanguage["NlBe"] = "nl-be";
|
|
111
|
-
/** Query language value for Dutch (Netherlands). */
|
|
112
|
-
KnownQueryLanguage["NlNl"] = "nl-nl";
|
|
113
|
-
/** Query language value for Hungarian (Hungary). */
|
|
114
|
-
KnownQueryLanguage["HuHu"] = "hu-hu";
|
|
115
|
-
/** Query language value for Polish (Poland). */
|
|
116
|
-
KnownQueryLanguage["PlPl"] = "pl-pl";
|
|
117
|
-
/** Query language value for Swedish (Sweden). */
|
|
118
|
-
KnownQueryLanguage["SvSe"] = "sv-se";
|
|
119
|
-
/** Query language value for Turkish (Turkey). */
|
|
120
|
-
KnownQueryLanguage["TrTr"] = "tr-tr";
|
|
121
|
-
/** Query language value for Hindi (India). */
|
|
122
|
-
KnownQueryLanguage["HiIn"] = "hi-in";
|
|
123
|
-
/** Query language value for Arabic (Saudi Arabia). */
|
|
124
|
-
KnownQueryLanguage["ArSa"] = "ar-sa";
|
|
125
|
-
/** Query language value for Arabic (Egypt). */
|
|
126
|
-
KnownQueryLanguage["ArEg"] = "ar-eg";
|
|
127
|
-
/** Query language value for Arabic (Morocco). */
|
|
128
|
-
KnownQueryLanguage["ArMa"] = "ar-ma";
|
|
129
|
-
/** Query language value for Arabic (Kuwait). */
|
|
130
|
-
KnownQueryLanguage["ArKw"] = "ar-kw";
|
|
131
|
-
/** Query language value for Arabic (Jordan). */
|
|
132
|
-
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
133
|
-
/** Query language value for Danish (Denmark). */
|
|
134
|
-
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
135
|
-
/** Query language value for Norwegian (Norway). */
|
|
136
|
-
KnownQueryLanguage["NoNo"] = "no-no";
|
|
137
|
-
/** Query language value for Bulgarian (Bulgaria). */
|
|
138
|
-
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
139
|
-
/** Query language value for Croatian (Croatia). */
|
|
140
|
-
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
141
|
-
/** Query language value for Croatian (Bosnia and Herzegovina). */
|
|
142
|
-
KnownQueryLanguage["HrBa"] = "hr-ba";
|
|
143
|
-
/** Query language value for Malay (Malaysia). */
|
|
144
|
-
KnownQueryLanguage["MsMy"] = "ms-my";
|
|
145
|
-
/** Query language value for Malay (Brunei Darussalam). */
|
|
146
|
-
KnownQueryLanguage["MsBn"] = "ms-bn";
|
|
147
|
-
/** Query language value for Slovenian (Slovenia). */
|
|
148
|
-
KnownQueryLanguage["SlSl"] = "sl-sl";
|
|
149
|
-
/** Query language value for Tamil (India). */
|
|
150
|
-
KnownQueryLanguage["TaIn"] = "ta-in";
|
|
151
|
-
/** Query language value for Vietnamese (Viet Nam). */
|
|
152
|
-
KnownQueryLanguage["ViVn"] = "vi-vn";
|
|
153
|
-
/** Query language value for Greek (Greece). */
|
|
154
|
-
KnownQueryLanguage["ElGr"] = "el-gr";
|
|
155
|
-
/** Query language value for Romanian (Romania). */
|
|
156
|
-
KnownQueryLanguage["RoRo"] = "ro-ro";
|
|
157
|
-
/** Query language value for Icelandic (Iceland). */
|
|
158
|
-
KnownQueryLanguage["IsIs"] = "is-is";
|
|
159
|
-
/** Query language value for Indonesian (Indonesia). */
|
|
160
|
-
KnownQueryLanguage["IdId"] = "id-id";
|
|
161
|
-
/** Query language value for Thai (Thailand). */
|
|
162
|
-
KnownQueryLanguage["ThTh"] = "th-th";
|
|
163
|
-
/** Query language value for Lithuanian (Lithuania). */
|
|
164
|
-
KnownQueryLanguage["LtLt"] = "lt-lt";
|
|
165
|
-
/** Query language value for Ukrainian (Ukraine). */
|
|
166
|
-
KnownQueryLanguage["UkUa"] = "uk-ua";
|
|
167
|
-
/** Query language value for Latvian (Latvia). */
|
|
168
|
-
KnownQueryLanguage["LvLv"] = "lv-lv";
|
|
169
|
-
/** Query language value for Estonian (Estonia). */
|
|
170
|
-
KnownQueryLanguage["EtEe"] = "et-ee";
|
|
171
|
-
/** Query language value for Catalan. */
|
|
172
|
-
KnownQueryLanguage["CaEs"] = "ca-es";
|
|
173
|
-
/** Query language value for Finnish (Finland). */
|
|
174
|
-
KnownQueryLanguage["FiFi"] = "fi-fi";
|
|
175
|
-
/** Query language value for Serbian (Bosnia and Herzegovina). */
|
|
176
|
-
KnownQueryLanguage["SrBa"] = "sr-ba";
|
|
177
|
-
/** Query language value for Serbian (Montenegro). */
|
|
178
|
-
KnownQueryLanguage["SrMe"] = "sr-me";
|
|
179
|
-
/** Query language value for Serbian (Serbia). */
|
|
180
|
-
KnownQueryLanguage["SrRs"] = "sr-rs";
|
|
181
|
-
/** Query language value for Slovak (Slovakia). */
|
|
182
|
-
KnownQueryLanguage["SkSk"] = "sk-sk";
|
|
183
|
-
/** Query language value for Norwegian (Norway). */
|
|
184
|
-
KnownQueryLanguage["NbNo"] = "nb-no";
|
|
185
|
-
/** Query language value for Armenian (Armenia). */
|
|
186
|
-
KnownQueryLanguage["HyAm"] = "hy-am";
|
|
187
|
-
/** Query language value for Bengali (India). */
|
|
188
|
-
KnownQueryLanguage["BnIn"] = "bn-in";
|
|
189
|
-
/** Query language value for Basque. */
|
|
190
|
-
KnownQueryLanguage["EuEs"] = "eu-es";
|
|
191
|
-
/** Query language value for Galician. */
|
|
192
|
-
KnownQueryLanguage["GlEs"] = "gl-es";
|
|
193
|
-
/** Query language value for Gujarati (India). */
|
|
194
|
-
KnownQueryLanguage["GuIn"] = "gu-in";
|
|
195
|
-
/** Query language value for Hebrew (Israel). */
|
|
196
|
-
KnownQueryLanguage["HeIl"] = "he-il";
|
|
197
|
-
/** Query language value for Irish (Ireland). */
|
|
198
|
-
KnownQueryLanguage["GaIe"] = "ga-ie";
|
|
199
|
-
/** Query language value for Kannada (India). */
|
|
200
|
-
KnownQueryLanguage["KnIn"] = "kn-in";
|
|
201
|
-
/** Query language value for Malayalam (India). */
|
|
202
|
-
KnownQueryLanguage["MlIn"] = "ml-in";
|
|
203
|
-
/** Query language value for Marathi (India). */
|
|
204
|
-
KnownQueryLanguage["MrIn"] = "mr-in";
|
|
205
|
-
/** Query language value for Persian (U.A.E.). */
|
|
206
|
-
KnownQueryLanguage["FaAe"] = "fa-ae";
|
|
207
|
-
/** Query language value for Punjabi (India). */
|
|
208
|
-
KnownQueryLanguage["PaIn"] = "pa-in";
|
|
209
|
-
/** Query language value for Telugu (India). */
|
|
210
|
-
KnownQueryLanguage["TeIn"] = "te-in";
|
|
211
|
-
/** Query language value for Urdu (Pakistan). */
|
|
212
|
-
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
213
|
-
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
214
|
-
/** Known values of {@link Speller} that the service accepts. */
|
|
215
|
-
exports.KnownSpeller = void 0;
|
|
216
|
-
(function (KnownSpeller) {
|
|
217
|
-
/** Speller not enabled. */
|
|
218
|
-
KnownSpeller["None"] = "none";
|
|
219
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
220
|
-
KnownSpeller["Lexicon"] = "lexicon";
|
|
221
|
-
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
222
59
|
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
223
60
|
var KnownQueryAnswerType;
|
|
224
61
|
(function (KnownQueryAnswerType) {
|
|
@@ -235,34 +72,26 @@ var KnownQueryCaptionType;
|
|
|
235
72
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
236
73
|
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
237
74
|
})(KnownQueryCaptionType || (KnownQueryCaptionType = {}));
|
|
238
|
-
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
239
|
-
exports.KnownQuerySpellerType = void 0;
|
|
240
|
-
(function (KnownQuerySpellerType) {
|
|
241
|
-
/** Speller not enabled. */
|
|
242
|
-
KnownQuerySpellerType["None"] = "none";
|
|
243
|
-
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
244
|
-
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
245
|
-
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
246
75
|
/** Known values of {@link VectorQueryKind} that the service accepts. */
|
|
247
76
|
exports.KnownVectorQueryKind = void 0;
|
|
248
77
|
(function (KnownVectorQueryKind) {
|
|
249
78
|
/** Vector query where a raw vector value is provided. */
|
|
250
79
|
KnownVectorQueryKind["Vector"] = "vector";
|
|
251
80
|
/** Vector query where a text value that needs to be vectorized is provided. */
|
|
252
|
-
KnownVectorQueryKind["
|
|
81
|
+
KnownVectorQueryKind["Text"] = "text";
|
|
253
82
|
})(exports.KnownVectorQueryKind || (exports.KnownVectorQueryKind = {}));
|
|
254
83
|
/** Known values of {@link VectorFilterMode} that the service accepts. */
|
|
255
|
-
|
|
84
|
+
exports.KnownVectorFilterMode = void 0;
|
|
256
85
|
(function (KnownVectorFilterMode) {
|
|
257
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'. */
|
|
258
87
|
KnownVectorFilterMode["PostFilter"] = "postFilter";
|
|
259
88
|
/** The filter will be applied before the search query. */
|
|
260
89
|
KnownVectorFilterMode["PreFilter"] = "preFilter";
|
|
261
|
-
})(KnownVectorFilterMode || (KnownVectorFilterMode = {}));
|
|
90
|
+
})(exports.KnownVectorFilterMode || (exports.KnownVectorFilterMode = {}));
|
|
262
91
|
/** Known values of {@link SemanticErrorReason} that the service accepts. */
|
|
263
92
|
exports.KnownSemanticErrorReason = void 0;
|
|
264
93
|
(function (KnownSemanticErrorReason) {
|
|
265
|
-
/** If
|
|
94
|
+
/** If `semanticMaxWaitInMilliseconds` was set and the semantic processing duration exceeded that value. Only the base results were returned. */
|
|
266
95
|
KnownSemanticErrorReason["MaxWaitExceeded"] = "maxWaitExceeded";
|
|
267
96
|
/** The request was throttled. Only the base results were returned. */
|
|
268
97
|
KnownSemanticErrorReason["CapacityOverloaded"] = "capacityOverloaded";
|
|
@@ -277,16 +106,6 @@ exports.KnownSemanticSearchResultsType = void 0;
|
|
|
277
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. */
|
|
278
107
|
KnownSemanticSearchResultsType["RerankedResults"] = "rerankedResults";
|
|
279
108
|
})(exports.KnownSemanticSearchResultsType || (exports.KnownSemanticSearchResultsType = {}));
|
|
280
|
-
/** Known values of {@link SemanticFieldState} that the service accepts. */
|
|
281
|
-
exports.KnownSemanticFieldState = void 0;
|
|
282
|
-
(function (KnownSemanticFieldState) {
|
|
283
|
-
/** The field was fully used for semantic enrichment. */
|
|
284
|
-
KnownSemanticFieldState["Used"] = "used";
|
|
285
|
-
/** The field was not used for semantic enrichment. */
|
|
286
|
-
KnownSemanticFieldState["Unused"] = "unused";
|
|
287
|
-
/** The field was partially used for semantic enrichment. */
|
|
288
|
-
KnownSemanticFieldState["Partial"] = "partial";
|
|
289
|
-
})(exports.KnownSemanticFieldState || (exports.KnownSemanticFieldState = {}));
|
|
290
109
|
|
|
291
110
|
/*
|
|
292
111
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -295,12 +114,12 @@ exports.KnownSemanticFieldState = void 0;
|
|
|
295
114
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
296
115
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
297
116
|
*/
|
|
298
|
-
/** Known values of {@link
|
|
299
|
-
var
|
|
300
|
-
(function (
|
|
301
|
-
/** Api Version '2024-
|
|
302
|
-
|
|
303
|
-
})(
|
|
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 = {}));
|
|
304
123
|
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
305
124
|
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
306
125
|
(function (KnownSearchIndexerDataSourceType) {
|
|
@@ -369,20 +188,6 @@ exports.KnownIndexerExecutionEnvironment = void 0;
|
|
|
369
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. */
|
|
370
189
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
371
190
|
})(exports.KnownIndexerExecutionEnvironment || (exports.KnownIndexerExecutionEnvironment = {}));
|
|
372
|
-
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
373
|
-
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
374
|
-
(function (KnownIndexerExecutionStatusDetail) {
|
|
375
|
-
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
376
|
-
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
377
|
-
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
378
|
-
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
379
|
-
exports.KnownIndexingMode = void 0;
|
|
380
|
-
(function (KnownIndexingMode) {
|
|
381
|
-
/** The indexer is indexing all documents in the datasource. */
|
|
382
|
-
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
383
|
-
/** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
|
|
384
|
-
KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
|
|
385
|
-
})(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
|
|
386
191
|
/** Known values of {@link IndexProjectionMode} that the service accepts. */
|
|
387
192
|
exports.KnownIndexProjectionMode = void 0;
|
|
388
193
|
(function (KnownIndexProjectionMode) {
|
|
@@ -392,7 +197,7 @@ exports.KnownIndexProjectionMode = void 0;
|
|
|
392
197
|
KnownIndexProjectionMode["IncludeIndexingParentDocuments"] = "includeIndexingParentDocuments";
|
|
393
198
|
})(exports.KnownIndexProjectionMode || (exports.KnownIndexProjectionMode = {}));
|
|
394
199
|
/** Known values of {@link SearchFieldDataType} that the service accepts. */
|
|
395
|
-
|
|
200
|
+
exports.KnownSearchFieldDataType = void 0;
|
|
396
201
|
(function (KnownSearchFieldDataType) {
|
|
397
202
|
/** Indicates that a field contains a string. */
|
|
398
203
|
KnownSearchFieldDataType["String"] = "Edm.String";
|
|
@@ -418,9 +223,11 @@ var KnownSearchFieldDataType;
|
|
|
418
223
|
KnownSearchFieldDataType["Int16"] = "Edm.Int16";
|
|
419
224
|
/** Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). */
|
|
420
225
|
KnownSearchFieldDataType["SByte"] = "Edm.SByte";
|
|
421
|
-
|
|
226
|
+
/** Indicates that a field contains a 8-bit unsigned integer. This is only valid when used with Collection(Edm.Byte). */
|
|
227
|
+
KnownSearchFieldDataType["Byte"] = "Edm.Byte";
|
|
228
|
+
})(exports.KnownSearchFieldDataType || (exports.KnownSearchFieldDataType = {}));
|
|
422
229
|
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
423
|
-
|
|
230
|
+
var KnownLexicalAnalyzerName;
|
|
424
231
|
(function (KnownLexicalAnalyzerName) {
|
|
425
232
|
/** Microsoft analyzer for Arabic. */
|
|
426
233
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -596,7 +403,7 @@ exports.KnownLexicalAnalyzerName = void 0;
|
|
|
596
403
|
KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
|
|
597
404
|
/** Standard Lucene analyzer. */
|
|
598
405
|
KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
|
|
599
|
-
/** 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 */
|
|
600
407
|
KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
|
|
601
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 */
|
|
602
409
|
KnownLexicalAnalyzerName["Keyword"] = "keyword";
|
|
@@ -608,29 +415,21 @@ exports.KnownLexicalAnalyzerName = void 0;
|
|
|
608
415
|
KnownLexicalAnalyzerName["Stop"] = "stop";
|
|
609
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 */
|
|
610
417
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
611
|
-
})(
|
|
612
|
-
/** Known values of {@link
|
|
613
|
-
exports.
|
|
614
|
-
(function (
|
|
615
|
-
/**
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
KnownLexicalNormalizerName["Elision"] = "elision";
|
|
619
|
-
/** Normalizes token text to lowercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
|
|
620
|
-
KnownLexicalNormalizerName["Lowercase"] = "lowercase";
|
|
621
|
-
/** 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 */
|
|
622
|
-
KnownLexicalNormalizerName["Standard"] = "standard";
|
|
623
|
-
/** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
624
|
-
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
625
|
-
})(exports.KnownNormalizerNames || (exports.KnownNormalizerNames = {}));
|
|
418
|
+
})(KnownLexicalAnalyzerName || (KnownLexicalAnalyzerName = {}));
|
|
419
|
+
/** Known values of {@link VectorEncodingFormat} that the service accepts. */
|
|
420
|
+
exports.KnownVectorEncodingFormat = void 0;
|
|
421
|
+
(function (KnownVectorEncodingFormat) {
|
|
422
|
+
/** Encoding format representing bits packed into a wider data type. */
|
|
423
|
+
KnownVectorEncodingFormat["PackedBit"] = "packedBit";
|
|
424
|
+
})(exports.KnownVectorEncodingFormat || (exports.KnownVectorEncodingFormat = {}));
|
|
626
425
|
/** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
|
|
627
|
-
|
|
426
|
+
exports.KnownVectorSearchAlgorithmKind = void 0;
|
|
628
427
|
(function (KnownVectorSearchAlgorithmKind) {
|
|
629
428
|
/** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
|
|
630
429
|
KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
|
|
631
430
|
/** Exhaustive KNN algorithm which will perform brute-force search. */
|
|
632
431
|
KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
|
|
633
|
-
})(KnownVectorSearchAlgorithmKind || (KnownVectorSearchAlgorithmKind = {}));
|
|
432
|
+
})(exports.KnownVectorSearchAlgorithmKind || (exports.KnownVectorSearchAlgorithmKind = {}));
|
|
634
433
|
/** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */
|
|
635
434
|
exports.KnownVectorSearchVectorizerKind = void 0;
|
|
636
435
|
(function (KnownVectorSearchVectorizerKind) {
|
|
@@ -644,101 +443,37 @@ exports.KnownVectorSearchCompressionKind = void 0;
|
|
|
644
443
|
(function (KnownVectorSearchCompressionKind) {
|
|
645
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. */
|
|
646
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";
|
|
647
448
|
})(exports.KnownVectorSearchCompressionKind || (exports.KnownVectorSearchCompressionKind = {}));
|
|
648
|
-
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
649
|
-
exports.KnownTokenFilterName = void 0;
|
|
650
|
-
(function (KnownTokenFilterName) {
|
|
651
|
-
/** 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 */
|
|
652
|
-
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
653
|
-
/** 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 */
|
|
654
|
-
KnownTokenFilterName["Apostrophe"] = "apostrophe";
|
|
655
|
-
/** 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 */
|
|
656
|
-
KnownTokenFilterName["AsciiFolding"] = "asciifolding";
|
|
657
|
-
/** 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 */
|
|
658
|
-
KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
|
|
659
|
-
/** 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 */
|
|
660
|
-
KnownTokenFilterName["CjkWidth"] = "cjk_width";
|
|
661
|
-
/** 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 */
|
|
662
|
-
KnownTokenFilterName["Classic"] = "classic";
|
|
663
|
-
/** 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 */
|
|
664
|
-
KnownTokenFilterName["CommonGram"] = "common_grams";
|
|
665
|
-
/** 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 */
|
|
666
|
-
KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
|
|
667
|
-
/** 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 */
|
|
668
|
-
KnownTokenFilterName["Elision"] = "elision";
|
|
669
|
-
/** 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 */
|
|
670
|
-
KnownTokenFilterName["GermanNormalization"] = "german_normalization";
|
|
671
|
-
/** 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 */
|
|
672
|
-
KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
|
|
673
|
-
/** 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 */
|
|
674
|
-
KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
|
|
675
|
-
/** 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 */
|
|
676
|
-
KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
|
|
677
|
-
/** 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 */
|
|
678
|
-
KnownTokenFilterName["KStem"] = "kstem";
|
|
679
|
-
/** 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 */
|
|
680
|
-
KnownTokenFilterName["Length"] = "length";
|
|
681
|
-
/** 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 */
|
|
682
|
-
KnownTokenFilterName["Limit"] = "limit";
|
|
683
|
-
/** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
|
|
684
|
-
KnownTokenFilterName["Lowercase"] = "lowercase";
|
|
685
|
-
/** 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 */
|
|
686
|
-
KnownTokenFilterName["NGram"] = "nGram_v2";
|
|
687
|
-
/** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
|
|
688
|
-
KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
|
|
689
|
-
/** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
|
|
690
|
-
KnownTokenFilterName["Phonetic"] = "phonetic";
|
|
691
|
-
/** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
|
|
692
|
-
KnownTokenFilterName["PorterStem"] = "porter_stem";
|
|
693
|
-
/** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
|
|
694
|
-
KnownTokenFilterName["Reverse"] = "reverse";
|
|
695
|
-
/** 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 */
|
|
696
|
-
KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
|
|
697
|
-
/** 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 */
|
|
698
|
-
KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
|
|
699
|
-
/** 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 */
|
|
700
|
-
KnownTokenFilterName["Shingle"] = "shingle";
|
|
701
|
-
/** 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 */
|
|
702
|
-
KnownTokenFilterName["Snowball"] = "snowball";
|
|
703
|
-
/** 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 */
|
|
704
|
-
KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
|
|
705
|
-
/** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
|
|
706
|
-
KnownTokenFilterName["Stemmer"] = "stemmer";
|
|
707
|
-
/** 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 */
|
|
708
|
-
KnownTokenFilterName["Stopwords"] = "stopwords";
|
|
709
|
-
/** 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 */
|
|
710
|
-
KnownTokenFilterName["Trim"] = "trim";
|
|
711
|
-
/** 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 */
|
|
712
|
-
KnownTokenFilterName["Truncate"] = "truncate";
|
|
713
|
-
/** 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 */
|
|
714
|
-
KnownTokenFilterName["Unique"] = "unique";
|
|
715
|
-
/** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
716
|
-
KnownTokenFilterName["Uppercase"] = "uppercase";
|
|
717
|
-
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
718
|
-
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
719
|
-
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
720
|
-
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
721
|
-
exports.KnownCharFilterName = void 0;
|
|
722
|
-
(function (KnownCharFilterName) {
|
|
723
|
-
/** 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 */
|
|
724
|
-
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
725
|
-
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
726
449
|
/** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
|
|
727
|
-
|
|
450
|
+
exports.KnownVectorSearchAlgorithmMetric = void 0;
|
|
728
451
|
(function (KnownVectorSearchAlgorithmMetric) {
|
|
729
|
-
/**
|
|
452
|
+
/** Measures the angle between vectors to quantify their similarity, disregarding magnitude. The smaller the angle, the closer the similarity. */
|
|
730
453
|
KnownVectorSearchAlgorithmMetric["Cosine"] = "cosine";
|
|
731
|
-
/**
|
|
454
|
+
/** Computes the straight-line distance between vectors in a multi-dimensional space. The smaller the distance, the closer the similarity. */
|
|
732
455
|
KnownVectorSearchAlgorithmMetric["Euclidean"] = "euclidean";
|
|
733
|
-
/**
|
|
456
|
+
/** Calculates the sum of element-wise products to gauge alignment and magnitude similarity. The larger and more positive, the closer the similarity. */
|
|
734
457
|
KnownVectorSearchAlgorithmMetric["DotProduct"] = "dotProduct";
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
exports.
|
|
738
|
-
|
|
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. */
|
|
459
|
+
KnownVectorSearchAlgorithmMetric["Hamming"] = "hamming";
|
|
460
|
+
})(exports.KnownVectorSearchAlgorithmMetric || (exports.KnownVectorSearchAlgorithmMetric = {}));
|
|
461
|
+
/** Known values of {@link VectorSearchCompressionTarget} that the service accepts. */
|
|
462
|
+
exports.KnownVectorSearchCompressionTarget = void 0;
|
|
463
|
+
(function (KnownVectorSearchCompressionTarget) {
|
|
739
464
|
/** Int8 */
|
|
740
|
-
|
|
741
|
-
})(exports.
|
|
465
|
+
KnownVectorSearchCompressionTarget["Int8"] = "int8";
|
|
466
|
+
})(exports.KnownVectorSearchCompressionTarget || (exports.KnownVectorSearchCompressionTarget = {}));
|
|
467
|
+
/** Known values of {@link AzureOpenAIModelName} that the service accepts. */
|
|
468
|
+
exports.KnownAzureOpenAIModelName = void 0;
|
|
469
|
+
(function (KnownAzureOpenAIModelName) {
|
|
470
|
+
/** TextEmbeddingAda002 */
|
|
471
|
+
KnownAzureOpenAIModelName["TextEmbeddingAda002"] = "text-embedding-ada-002";
|
|
472
|
+
/** TextEmbedding3Large */
|
|
473
|
+
KnownAzureOpenAIModelName["TextEmbedding3Large"] = "text-embedding-3-large";
|
|
474
|
+
/** TextEmbedding3Small */
|
|
475
|
+
KnownAzureOpenAIModelName["TextEmbedding3Small"] = "text-embedding-3-small";
|
|
476
|
+
})(exports.KnownAzureOpenAIModelName || (exports.KnownAzureOpenAIModelName = {}));
|
|
742
477
|
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
743
478
|
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
744
479
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
@@ -1119,18 +854,18 @@ exports.KnownOcrSkillLanguage = void 0;
|
|
|
1119
854
|
/** Unknown (All) */
|
|
1120
855
|
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
1121
856
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
1122
|
-
/** Known values of {@link
|
|
1123
|
-
exports.
|
|
1124
|
-
(function (
|
|
857
|
+
/** Known values of {@link OcrLineEnding} that the service accepts. */
|
|
858
|
+
exports.KnownOcrLineEnding = void 0;
|
|
859
|
+
(function (KnownOcrLineEnding) {
|
|
1125
860
|
/** Lines are separated by a single space character. */
|
|
1126
|
-
|
|
861
|
+
KnownOcrLineEnding["Space"] = "space";
|
|
1127
862
|
/** Lines are separated by a carriage return ('\r') character. */
|
|
1128
|
-
|
|
863
|
+
KnownOcrLineEnding["CarriageReturn"] = "carriageReturn";
|
|
1129
864
|
/** Lines are separated by a single line feed ('\n') character. */
|
|
1130
|
-
|
|
865
|
+
KnownOcrLineEnding["LineFeed"] = "lineFeed";
|
|
1131
866
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
1132
|
-
|
|
1133
|
-
})(exports.
|
|
867
|
+
KnownOcrLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
868
|
+
})(exports.KnownOcrLineEnding || (exports.KnownOcrLineEnding = {}));
|
|
1134
869
|
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
1135
870
|
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
1136
871
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
@@ -1624,7 +1359,7 @@ exports.KnownTextTranslationSkillLanguage = void 0;
|
|
|
1624
1359
|
KnownTextTranslationSkillLanguage["Pa"] = "pa";
|
|
1625
1360
|
})(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
|
|
1626
1361
|
/** Known values of {@link LexicalTokenizerName} that the service accepts. */
|
|
1627
|
-
exports.
|
|
1362
|
+
exports.KnownTokenizerNames = void 0;
|
|
1628
1363
|
(function (KnownLexicalTokenizerName) {
|
|
1629
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 */
|
|
1630
1365
|
KnownLexicalTokenizerName["Classic"] = "classic";
|
|
@@ -1652,7 +1387,85 @@ exports.KnownLexicalTokenizerName = void 0;
|
|
|
1652
1387
|
KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
|
|
1653
1388
|
/** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
|
|
1654
1389
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
1655
|
-
})(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 = {}));
|
|
1656
1469
|
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
1657
1470
|
exports.KnownRegexFlags = void 0;
|
|
1658
1471
|
(function (KnownRegexFlags) {
|
|
@@ -2005,20 +1818,6 @@ const SearchDocumentsResult = {
|
|
|
2005
1818
|
className: "SearchRequest",
|
|
2006
1819
|
},
|
|
2007
1820
|
},
|
|
2008
|
-
semanticPartialResponseReason: {
|
|
2009
|
-
serializedName: "@search\\.semanticPartialResponseReason",
|
|
2010
|
-
readOnly: true,
|
|
2011
|
-
type: {
|
|
2012
|
-
name: "String",
|
|
2013
|
-
},
|
|
2014
|
-
},
|
|
2015
|
-
semanticPartialResponseType: {
|
|
2016
|
-
serializedName: "@search\\.semanticPartialResponseType",
|
|
2017
|
-
readOnly: true,
|
|
2018
|
-
type: {
|
|
2019
|
-
name: "String",
|
|
2020
|
-
},
|
|
2021
|
-
},
|
|
2022
1821
|
results: {
|
|
2023
1822
|
serializedName: "value",
|
|
2024
1823
|
required: true,
|
|
@@ -2040,6 +1839,20 @@ const SearchDocumentsResult = {
|
|
|
2040
1839
|
name: "String",
|
|
2041
1840
|
},
|
|
2042
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
|
+
},
|
|
2043
1856
|
},
|
|
2044
1857
|
},
|
|
2045
1858
|
};
|
|
@@ -2195,40 +2008,6 @@ const SearchRequest = {
|
|
|
2195
2008
|
name: "String",
|
|
2196
2009
|
},
|
|
2197
2010
|
},
|
|
2198
|
-
semanticQuery: {
|
|
2199
|
-
serializedName: "semanticQuery",
|
|
2200
|
-
type: {
|
|
2201
|
-
name: "String",
|
|
2202
|
-
},
|
|
2203
|
-
},
|
|
2204
|
-
semanticConfigurationName: {
|
|
2205
|
-
serializedName: "semanticConfiguration",
|
|
2206
|
-
type: {
|
|
2207
|
-
name: "String",
|
|
2208
|
-
},
|
|
2209
|
-
},
|
|
2210
|
-
semanticErrorHandling: {
|
|
2211
|
-
serializedName: "semanticErrorHandling",
|
|
2212
|
-
type: {
|
|
2213
|
-
name: "String",
|
|
2214
|
-
},
|
|
2215
|
-
},
|
|
2216
|
-
semanticMaxWaitInMilliseconds: {
|
|
2217
|
-
constraints: {
|
|
2218
|
-
InclusiveMinimum: 700,
|
|
2219
|
-
},
|
|
2220
|
-
serializedName: "semanticMaxWaitInMilliseconds",
|
|
2221
|
-
nullable: true,
|
|
2222
|
-
type: {
|
|
2223
|
-
name: "Number",
|
|
2224
|
-
},
|
|
2225
|
-
},
|
|
2226
|
-
debug: {
|
|
2227
|
-
serializedName: "debug",
|
|
2228
|
-
type: {
|
|
2229
|
-
name: "String",
|
|
2230
|
-
},
|
|
2231
|
-
},
|
|
2232
2011
|
searchText: {
|
|
2233
2012
|
serializedName: "search",
|
|
2234
2013
|
type: {
|
|
@@ -2248,50 +2027,60 @@ const SearchRequest = {
|
|
|
2248
2027
|
allowedValues: ["any", "all"],
|
|
2249
2028
|
},
|
|
2250
2029
|
},
|
|
2251
|
-
|
|
2252
|
-
serializedName: "
|
|
2030
|
+
select: {
|
|
2031
|
+
serializedName: "select",
|
|
2253
2032
|
type: {
|
|
2254
2033
|
name: "String",
|
|
2255
2034
|
},
|
|
2256
2035
|
},
|
|
2257
|
-
|
|
2258
|
-
serializedName: "
|
|
2036
|
+
skip: {
|
|
2037
|
+
serializedName: "skip",
|
|
2259
2038
|
type: {
|
|
2260
|
-
name: "
|
|
2039
|
+
name: "Number",
|
|
2261
2040
|
},
|
|
2262
2041
|
},
|
|
2263
|
-
|
|
2264
|
-
serializedName: "
|
|
2042
|
+
top: {
|
|
2043
|
+
serializedName: "top",
|
|
2044
|
+
type: {
|
|
2045
|
+
name: "Number",
|
|
2046
|
+
},
|
|
2047
|
+
},
|
|
2048
|
+
semanticConfigurationName: {
|
|
2049
|
+
serializedName: "semanticConfiguration",
|
|
2265
2050
|
type: {
|
|
2266
2051
|
name: "String",
|
|
2267
2052
|
},
|
|
2268
2053
|
},
|
|
2269
|
-
|
|
2270
|
-
serializedName: "
|
|
2054
|
+
semanticErrorHandling: {
|
|
2055
|
+
serializedName: "semanticErrorHandling",
|
|
2271
2056
|
type: {
|
|
2272
2057
|
name: "String",
|
|
2273
2058
|
},
|
|
2274
2059
|
},
|
|
2275
|
-
|
|
2276
|
-
|
|
2060
|
+
semanticMaxWaitInMilliseconds: {
|
|
2061
|
+
constraints: {
|
|
2062
|
+
InclusiveMinimum: 700,
|
|
2063
|
+
},
|
|
2064
|
+
serializedName: "semanticMaxWaitInMilliseconds",
|
|
2065
|
+
nullable: true,
|
|
2277
2066
|
type: {
|
|
2278
2067
|
name: "Number",
|
|
2279
2068
|
},
|
|
2280
2069
|
},
|
|
2281
|
-
|
|
2282
|
-
serializedName: "
|
|
2070
|
+
semanticQuery: {
|
|
2071
|
+
serializedName: "semanticQuery",
|
|
2283
2072
|
type: {
|
|
2284
|
-
name: "
|
|
2073
|
+
name: "String",
|
|
2285
2074
|
},
|
|
2286
2075
|
},
|
|
2287
|
-
|
|
2288
|
-
serializedName: "
|
|
2076
|
+
answers: {
|
|
2077
|
+
serializedName: "answers",
|
|
2289
2078
|
type: {
|
|
2290
2079
|
name: "String",
|
|
2291
2080
|
},
|
|
2292
2081
|
},
|
|
2293
|
-
|
|
2294
|
-
serializedName: "
|
|
2082
|
+
captions: {
|
|
2083
|
+
serializedName: "captions",
|
|
2295
2084
|
type: {
|
|
2296
2085
|
name: "String",
|
|
2297
2086
|
},
|
|
@@ -2358,8 +2147,14 @@ const VectorQuery = {
|
|
|
2358
2147
|
name: "Number",
|
|
2359
2148
|
},
|
|
2360
2149
|
},
|
|
2361
|
-
|
|
2362
|
-
|
|
2150
|
+
weight: {
|
|
2151
|
+
serializedName: "weight",
|
|
2152
|
+
type: {
|
|
2153
|
+
name: "Number",
|
|
2154
|
+
},
|
|
2155
|
+
},
|
|
2156
|
+
},
|
|
2157
|
+
},
|
|
2363
2158
|
};
|
|
2364
2159
|
const SearchResult = {
|
|
2365
2160
|
type: {
|
|
@@ -2407,20 +2202,6 @@ const SearchResult = {
|
|
|
2407
2202
|
},
|
|
2408
2203
|
},
|
|
2409
2204
|
},
|
|
2410
|
-
documentDebugInfo: {
|
|
2411
|
-
serializedName: "@search\\.documentDebugInfo",
|
|
2412
|
-
readOnly: true,
|
|
2413
|
-
nullable: true,
|
|
2414
|
-
type: {
|
|
2415
|
-
name: "Sequence",
|
|
2416
|
-
element: {
|
|
2417
|
-
type: {
|
|
2418
|
-
name: "Composite",
|
|
2419
|
-
className: "DocumentDebugInfo",
|
|
2420
|
-
},
|
|
2421
|
-
},
|
|
2422
|
-
},
|
|
2423
|
-
},
|
|
2424
2205
|
},
|
|
2425
2206
|
},
|
|
2426
2207
|
};
|
|
@@ -2448,120 +2229,6 @@ const QueryCaptionResult = {
|
|
|
2448
2229
|
},
|
|
2449
2230
|
},
|
|
2450
2231
|
};
|
|
2451
|
-
const DocumentDebugInfo = {
|
|
2452
|
-
type: {
|
|
2453
|
-
name: "Composite",
|
|
2454
|
-
className: "DocumentDebugInfo",
|
|
2455
|
-
modelProperties: {
|
|
2456
|
-
semantic: {
|
|
2457
|
-
serializedName: "semantic",
|
|
2458
|
-
type: {
|
|
2459
|
-
name: "Composite",
|
|
2460
|
-
className: "SemanticDebugInfo",
|
|
2461
|
-
},
|
|
2462
|
-
},
|
|
2463
|
-
},
|
|
2464
|
-
},
|
|
2465
|
-
};
|
|
2466
|
-
const SemanticDebugInfo = {
|
|
2467
|
-
type: {
|
|
2468
|
-
name: "Composite",
|
|
2469
|
-
className: "SemanticDebugInfo",
|
|
2470
|
-
modelProperties: {
|
|
2471
|
-
titleField: {
|
|
2472
|
-
serializedName: "titleField",
|
|
2473
|
-
type: {
|
|
2474
|
-
name: "Composite",
|
|
2475
|
-
className: "QueryResultDocumentSemanticField",
|
|
2476
|
-
},
|
|
2477
|
-
},
|
|
2478
|
-
contentFields: {
|
|
2479
|
-
serializedName: "contentFields",
|
|
2480
|
-
readOnly: true,
|
|
2481
|
-
type: {
|
|
2482
|
-
name: "Sequence",
|
|
2483
|
-
element: {
|
|
2484
|
-
type: {
|
|
2485
|
-
name: "Composite",
|
|
2486
|
-
className: "QueryResultDocumentSemanticField",
|
|
2487
|
-
},
|
|
2488
|
-
},
|
|
2489
|
-
},
|
|
2490
|
-
},
|
|
2491
|
-
keywordFields: {
|
|
2492
|
-
serializedName: "keywordFields",
|
|
2493
|
-
readOnly: true,
|
|
2494
|
-
type: {
|
|
2495
|
-
name: "Sequence",
|
|
2496
|
-
element: {
|
|
2497
|
-
type: {
|
|
2498
|
-
name: "Composite",
|
|
2499
|
-
className: "QueryResultDocumentSemanticField",
|
|
2500
|
-
},
|
|
2501
|
-
},
|
|
2502
|
-
},
|
|
2503
|
-
},
|
|
2504
|
-
rerankerInput: {
|
|
2505
|
-
serializedName: "rerankerInput",
|
|
2506
|
-
type: {
|
|
2507
|
-
name: "Composite",
|
|
2508
|
-
className: "QueryResultDocumentRerankerInput",
|
|
2509
|
-
},
|
|
2510
|
-
},
|
|
2511
|
-
},
|
|
2512
|
-
},
|
|
2513
|
-
};
|
|
2514
|
-
const QueryResultDocumentSemanticField = {
|
|
2515
|
-
type: {
|
|
2516
|
-
name: "Composite",
|
|
2517
|
-
className: "QueryResultDocumentSemanticField",
|
|
2518
|
-
modelProperties: {
|
|
2519
|
-
name: {
|
|
2520
|
-
serializedName: "name",
|
|
2521
|
-
readOnly: true,
|
|
2522
|
-
type: {
|
|
2523
|
-
name: "String",
|
|
2524
|
-
},
|
|
2525
|
-
},
|
|
2526
|
-
state: {
|
|
2527
|
-
serializedName: "state",
|
|
2528
|
-
readOnly: true,
|
|
2529
|
-
type: {
|
|
2530
|
-
name: "String",
|
|
2531
|
-
},
|
|
2532
|
-
},
|
|
2533
|
-
},
|
|
2534
|
-
},
|
|
2535
|
-
};
|
|
2536
|
-
const QueryResultDocumentRerankerInput = {
|
|
2537
|
-
type: {
|
|
2538
|
-
name: "Composite",
|
|
2539
|
-
className: "QueryResultDocumentRerankerInput",
|
|
2540
|
-
modelProperties: {
|
|
2541
|
-
title: {
|
|
2542
|
-
serializedName: "title",
|
|
2543
|
-
readOnly: true,
|
|
2544
|
-
type: {
|
|
2545
|
-
name: "String",
|
|
2546
|
-
},
|
|
2547
|
-
},
|
|
2548
|
-
content: {
|
|
2549
|
-
serializedName: "content",
|
|
2550
|
-
readOnly: true,
|
|
2551
|
-
type: {
|
|
2552
|
-
name: "String",
|
|
2553
|
-
},
|
|
2554
|
-
},
|
|
2555
|
-
keywords: {
|
|
2556
|
-
serializedName: "keywords",
|
|
2557
|
-
readOnly: true,
|
|
2558
|
-
type: {
|
|
2559
|
-
name: "String",
|
|
2560
|
-
},
|
|
2561
|
-
},
|
|
2562
|
-
},
|
|
2563
|
-
},
|
|
2564
|
-
};
|
|
2565
2232
|
const SuggestDocumentsResult = {
|
|
2566
2233
|
type: {
|
|
2567
2234
|
name: "Composite",
|
|
@@ -2955,7 +2622,6 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
2955
2622
|
AutocompleteItem: AutocompleteItem,
|
|
2956
2623
|
AutocompleteRequest: AutocompleteRequest,
|
|
2957
2624
|
AutocompleteResult: AutocompleteResult,
|
|
2958
|
-
DocumentDebugInfo: DocumentDebugInfo,
|
|
2959
2625
|
ErrorAdditionalInfo: ErrorAdditionalInfo$1,
|
|
2960
2626
|
ErrorDetail: ErrorDetail$1,
|
|
2961
2627
|
ErrorResponse: ErrorResponse$1,
|
|
@@ -2966,12 +2632,9 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
2966
2632
|
IndexingResult: IndexingResult,
|
|
2967
2633
|
QueryAnswerResult: QueryAnswerResult,
|
|
2968
2634
|
QueryCaptionResult: QueryCaptionResult,
|
|
2969
|
-
QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
|
|
2970
|
-
QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
|
|
2971
2635
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
2972
2636
|
SearchRequest: SearchRequest,
|
|
2973
2637
|
SearchResult: SearchResult,
|
|
2974
|
-
SemanticDebugInfo: SemanticDebugInfo,
|
|
2975
2638
|
SuggestDocumentsResult: SuggestDocumentsResult,
|
|
2976
2639
|
SuggestRequest: SuggestRequest,
|
|
2977
2640
|
SuggestResult: SuggestResult,
|
|
@@ -3163,54 +2826,6 @@ const scoringProfile = {
|
|
|
3163
2826
|
},
|
|
3164
2827
|
},
|
|
3165
2828
|
};
|
|
3166
|
-
const semanticQuery = {
|
|
3167
|
-
parameterPath: ["options", "searchOptions", "semanticQuery"],
|
|
3168
|
-
mapper: {
|
|
3169
|
-
serializedName: "semanticQuery",
|
|
3170
|
-
type: {
|
|
3171
|
-
name: "String",
|
|
3172
|
-
},
|
|
3173
|
-
},
|
|
3174
|
-
};
|
|
3175
|
-
const semanticConfiguration = {
|
|
3176
|
-
parameterPath: ["options", "searchOptions", "semanticConfiguration"],
|
|
3177
|
-
mapper: {
|
|
3178
|
-
serializedName: "semanticConfiguration",
|
|
3179
|
-
type: {
|
|
3180
|
-
name: "String",
|
|
3181
|
-
},
|
|
3182
|
-
},
|
|
3183
|
-
};
|
|
3184
|
-
const semanticErrorHandling = {
|
|
3185
|
-
parameterPath: ["options", "searchOptions", "semanticErrorHandling"],
|
|
3186
|
-
mapper: {
|
|
3187
|
-
serializedName: "semanticErrorHandling",
|
|
3188
|
-
type: {
|
|
3189
|
-
name: "String",
|
|
3190
|
-
},
|
|
3191
|
-
},
|
|
3192
|
-
};
|
|
3193
|
-
const semanticMaxWaitInMilliseconds = {
|
|
3194
|
-
parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"],
|
|
3195
|
-
mapper: {
|
|
3196
|
-
constraints: {
|
|
3197
|
-
InclusiveMinimum: 700,
|
|
3198
|
-
},
|
|
3199
|
-
serializedName: "semanticMaxWaitInMilliseconds",
|
|
3200
|
-
type: {
|
|
3201
|
-
name: "Number",
|
|
3202
|
-
},
|
|
3203
|
-
},
|
|
3204
|
-
};
|
|
3205
|
-
const debug = {
|
|
3206
|
-
parameterPath: ["options", "searchOptions", "debug"],
|
|
3207
|
-
mapper: {
|
|
3208
|
-
serializedName: "debug",
|
|
3209
|
-
type: {
|
|
3210
|
-
name: "String",
|
|
3211
|
-
},
|
|
3212
|
-
},
|
|
3213
|
-
};
|
|
3214
2829
|
const searchFields = {
|
|
3215
2830
|
parameterPath: ["options", "searchOptions", "searchFields"],
|
|
3216
2831
|
mapper: {
|
|
@@ -3226,33 +2841,6 @@ const searchFields = {
|
|
|
3226
2841
|
},
|
|
3227
2842
|
collectionFormat: "CSV",
|
|
3228
2843
|
};
|
|
3229
|
-
const queryLanguage = {
|
|
3230
|
-
parameterPath: ["options", "searchOptions", "queryLanguage"],
|
|
3231
|
-
mapper: {
|
|
3232
|
-
serializedName: "queryLanguage",
|
|
3233
|
-
type: {
|
|
3234
|
-
name: "String",
|
|
3235
|
-
},
|
|
3236
|
-
},
|
|
3237
|
-
};
|
|
3238
|
-
const speller = {
|
|
3239
|
-
parameterPath: ["options", "searchOptions", "speller"],
|
|
3240
|
-
mapper: {
|
|
3241
|
-
serializedName: "speller",
|
|
3242
|
-
type: {
|
|
3243
|
-
name: "String",
|
|
3244
|
-
},
|
|
3245
|
-
},
|
|
3246
|
-
};
|
|
3247
|
-
const answers = {
|
|
3248
|
-
parameterPath: ["options", "searchOptions", "answers"],
|
|
3249
|
-
mapper: {
|
|
3250
|
-
serializedName: "answers",
|
|
3251
|
-
type: {
|
|
3252
|
-
name: "String",
|
|
3253
|
-
},
|
|
3254
|
-
},
|
|
3255
|
-
};
|
|
3256
2844
|
const searchMode = {
|
|
3257
2845
|
parameterPath: ["options", "searchOptions", "searchMode"],
|
|
3258
2846
|
mapper: {
|
|
@@ -3315,6 +2903,45 @@ const top = {
|
|
|
3315
2903
|
},
|
|
3316
2904
|
},
|
|
3317
2905
|
};
|
|
2906
|
+
const semanticConfiguration = {
|
|
2907
|
+
parameterPath: ["options", "searchOptions", "semanticConfiguration"],
|
|
2908
|
+
mapper: {
|
|
2909
|
+
serializedName: "semanticConfiguration",
|
|
2910
|
+
type: {
|
|
2911
|
+
name: "String",
|
|
2912
|
+
},
|
|
2913
|
+
},
|
|
2914
|
+
};
|
|
2915
|
+
const semanticErrorHandling = {
|
|
2916
|
+
parameterPath: ["options", "searchOptions", "semanticErrorHandling"],
|
|
2917
|
+
mapper: {
|
|
2918
|
+
serializedName: "semanticErrorHandling",
|
|
2919
|
+
type: {
|
|
2920
|
+
name: "String",
|
|
2921
|
+
},
|
|
2922
|
+
},
|
|
2923
|
+
};
|
|
2924
|
+
const semanticMaxWaitInMilliseconds = {
|
|
2925
|
+
parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"],
|
|
2926
|
+
mapper: {
|
|
2927
|
+
constraints: {
|
|
2928
|
+
InclusiveMinimum: 700,
|
|
2929
|
+
},
|
|
2930
|
+
serializedName: "semanticMaxWaitInMilliseconds",
|
|
2931
|
+
type: {
|
|
2932
|
+
name: "Number",
|
|
2933
|
+
},
|
|
2934
|
+
},
|
|
2935
|
+
};
|
|
2936
|
+
const answers = {
|
|
2937
|
+
parameterPath: ["options", "searchOptions", "answers"],
|
|
2938
|
+
mapper: {
|
|
2939
|
+
serializedName: "answers",
|
|
2940
|
+
type: {
|
|
2941
|
+
name: "String",
|
|
2942
|
+
},
|
|
2943
|
+
},
|
|
2944
|
+
};
|
|
3318
2945
|
const captions = {
|
|
3319
2946
|
parameterPath: ["options", "searchOptions", "captions"],
|
|
3320
2947
|
mapper: {
|
|
@@ -3324,20 +2951,14 @@ const captions = {
|
|
|
3324
2951
|
},
|
|
3325
2952
|
},
|
|
3326
2953
|
};
|
|
3327
|
-
const
|
|
3328
|
-
parameterPath: ["options", "searchOptions", "
|
|
2954
|
+
const semanticQuery = {
|
|
2955
|
+
parameterPath: ["options", "searchOptions", "semanticQuery"],
|
|
3329
2956
|
mapper: {
|
|
3330
|
-
serializedName: "
|
|
2957
|
+
serializedName: "semanticQuery",
|
|
3331
2958
|
type: {
|
|
3332
|
-
name: "
|
|
3333
|
-
element: {
|
|
3334
|
-
type: {
|
|
3335
|
-
name: "String",
|
|
3336
|
-
},
|
|
3337
|
-
},
|
|
2959
|
+
name: "String",
|
|
3338
2960
|
},
|
|
3339
2961
|
},
|
|
3340
|
-
collectionFormat: "CSV",
|
|
3341
2962
|
};
|
|
3342
2963
|
const contentType$1 = {
|
|
3343
2964
|
parameterPath: ["options", "contentType"],
|
|
@@ -3634,7 +3255,7 @@ class DocumentsImpl {
|
|
|
3634
3255
|
* @param options The options parameters.
|
|
3635
3256
|
*/
|
|
3636
3257
|
get(key, options) {
|
|
3637
|
-
return this.client.sendOperationRequest({ key, options }, getOperationSpec$
|
|
3258
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
|
|
3638
3259
|
}
|
|
3639
3260
|
/**
|
|
3640
3261
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -3683,7 +3304,7 @@ class DocumentsImpl {
|
|
|
3683
3304
|
}
|
|
3684
3305
|
}
|
|
3685
3306
|
// Operation Specifications
|
|
3686
|
-
const serializer$
|
|
3307
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
|
|
3687
3308
|
const countOperationSpec = {
|
|
3688
3309
|
path: "/docs/$count",
|
|
3689
3310
|
httpMethod: "GET",
|
|
@@ -3698,7 +3319,7 @@ const countOperationSpec = {
|
|
|
3698
3319
|
queryParameters: [apiVersion$1],
|
|
3699
3320
|
urlParameters: [endpoint$1, indexName$1],
|
|
3700
3321
|
headerParameters: [accept$1],
|
|
3701
|
-
serializer: serializer$
|
|
3322
|
+
serializer: serializer$6,
|
|
3702
3323
|
};
|
|
3703
3324
|
const searchGetOperationSpec = {
|
|
3704
3325
|
path: "/docs",
|
|
@@ -3725,27 +3346,23 @@ const searchGetOperationSpec = {
|
|
|
3725
3346
|
queryType,
|
|
3726
3347
|
scoringParameters,
|
|
3727
3348
|
scoringProfile,
|
|
3728
|
-
semanticQuery,
|
|
3729
|
-
semanticConfiguration,
|
|
3730
|
-
semanticErrorHandling,
|
|
3731
|
-
semanticMaxWaitInMilliseconds,
|
|
3732
|
-
debug,
|
|
3733
3349
|
searchFields,
|
|
3734
|
-
queryLanguage,
|
|
3735
|
-
speller,
|
|
3736
|
-
answers,
|
|
3737
3350
|
searchMode,
|
|
3738
3351
|
scoringStatistics,
|
|
3739
3352
|
sessionId,
|
|
3740
3353
|
select$1,
|
|
3741
3354
|
skip,
|
|
3742
3355
|
top,
|
|
3356
|
+
semanticConfiguration,
|
|
3357
|
+
semanticErrorHandling,
|
|
3358
|
+
semanticMaxWaitInMilliseconds,
|
|
3359
|
+
answers,
|
|
3743
3360
|
captions,
|
|
3744
|
-
|
|
3361
|
+
semanticQuery,
|
|
3745
3362
|
],
|
|
3746
3363
|
urlParameters: [endpoint$1, indexName$1],
|
|
3747
3364
|
headerParameters: [accept$1],
|
|
3748
|
-
serializer: serializer$
|
|
3365
|
+
serializer: serializer$6,
|
|
3749
3366
|
};
|
|
3750
3367
|
const searchPostOperationSpec = {
|
|
3751
3368
|
path: "/docs/search.post.search",
|
|
@@ -3763,9 +3380,9 @@ const searchPostOperationSpec = {
|
|
|
3763
3380
|
urlParameters: [endpoint$1, indexName$1],
|
|
3764
3381
|
headerParameters: [accept$1, contentType$1],
|
|
3765
3382
|
mediaType: "json",
|
|
3766
|
-
serializer: serializer$
|
|
3383
|
+
serializer: serializer$6,
|
|
3767
3384
|
};
|
|
3768
|
-
const getOperationSpec$
|
|
3385
|
+
const getOperationSpec$5 = {
|
|
3769
3386
|
path: "/docs('{key}')",
|
|
3770
3387
|
httpMethod: "GET",
|
|
3771
3388
|
responses: {
|
|
@@ -3781,7 +3398,7 @@ const getOperationSpec$6 = {
|
|
|
3781
3398
|
queryParameters: [apiVersion$1, selectedFields],
|
|
3782
3399
|
urlParameters: [endpoint$1, indexName$1, key],
|
|
3783
3400
|
headerParameters: [accept$1],
|
|
3784
|
-
serializer: serializer$
|
|
3401
|
+
serializer: serializer$6,
|
|
3785
3402
|
};
|
|
3786
3403
|
const suggestGetOperationSpec = {
|
|
3787
3404
|
path: "/docs/search.suggest",
|
|
@@ -3810,7 +3427,7 @@ const suggestGetOperationSpec = {
|
|
|
3810
3427
|
],
|
|
3811
3428
|
urlParameters: [endpoint$1, indexName$1],
|
|
3812
3429
|
headerParameters: [accept$1],
|
|
3813
|
-
serializer: serializer$
|
|
3430
|
+
serializer: serializer$6,
|
|
3814
3431
|
};
|
|
3815
3432
|
const suggestPostOperationSpec = {
|
|
3816
3433
|
path: "/docs/search.post.suggest",
|
|
@@ -3828,7 +3445,7 @@ const suggestPostOperationSpec = {
|
|
|
3828
3445
|
urlParameters: [endpoint$1, indexName$1],
|
|
3829
3446
|
headerParameters: [accept$1, contentType$1],
|
|
3830
3447
|
mediaType: "json",
|
|
3831
|
-
serializer: serializer$
|
|
3448
|
+
serializer: serializer$6,
|
|
3832
3449
|
};
|
|
3833
3450
|
const indexOperationSpec = {
|
|
3834
3451
|
path: "/docs/search.index",
|
|
@@ -3849,7 +3466,7 @@ const indexOperationSpec = {
|
|
|
3849
3466
|
urlParameters: [endpoint$1, indexName$1],
|
|
3850
3467
|
headerParameters: [accept$1, contentType$1],
|
|
3851
3468
|
mediaType: "json",
|
|
3852
|
-
serializer: serializer$
|
|
3469
|
+
serializer: serializer$6,
|
|
3853
3470
|
};
|
|
3854
3471
|
const autocompleteGetOperationSpec = {
|
|
3855
3472
|
path: "/docs/search.autocomplete",
|
|
@@ -3877,7 +3494,7 @@ const autocompleteGetOperationSpec = {
|
|
|
3877
3494
|
],
|
|
3878
3495
|
urlParameters: [endpoint$1, indexName$1],
|
|
3879
3496
|
headerParameters: [accept$1],
|
|
3880
|
-
serializer: serializer$
|
|
3497
|
+
serializer: serializer$6,
|
|
3881
3498
|
};
|
|
3882
3499
|
const autocompletePostOperationSpec = {
|
|
3883
3500
|
path: "/docs/search.post.autocomplete",
|
|
@@ -3895,7 +3512,7 @@ const autocompletePostOperationSpec = {
|
|
|
3895
3512
|
urlParameters: [endpoint$1, indexName$1],
|
|
3896
3513
|
headerParameters: [accept$1, contentType$1],
|
|
3897
3514
|
mediaType: "json",
|
|
3898
|
-
serializer: serializer$
|
|
3515
|
+
serializer: serializer$6,
|
|
3899
3516
|
};
|
|
3900
3517
|
|
|
3901
3518
|
/*
|
|
@@ -3932,7 +3549,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
|
|
|
3932
3549
|
const defaults = {
|
|
3933
3550
|
requestContentType: "application/json; charset=utf-8",
|
|
3934
3551
|
};
|
|
3935
|
-
const packageDetails = `azsdk-js-search-documents/12.1.0
|
|
3552
|
+
const packageDetails = `azsdk-js-search-documents/12.1.0`;
|
|
3936
3553
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3937
3554
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3938
3555
|
: `${packageDetails}`;
|
|
@@ -4021,95 +3638,136 @@ function createSearchApiKeyCredentialPolicy(credential) {
|
|
|
4021
3638
|
|
|
4022
3639
|
// Copyright (c) Microsoft Corporation.
|
|
4023
3640
|
// Licensed under the MIT license.
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
const
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
}
|
|
4032
|
-
|
|
4033
|
-
function
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
result = deserializeGeoPoint(result);
|
|
4038
|
-
return result;
|
|
4039
|
-
});
|
|
4040
|
-
}
|
|
4041
|
-
function walk(start, mapper) {
|
|
4042
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
4043
|
-
const seenMarker = new WeakMap();
|
|
4044
|
-
const result = { value: undefined };
|
|
4045
|
-
const queue = [
|
|
4046
|
-
{ value: start, parent: result, key: "value" },
|
|
4047
|
-
];
|
|
4048
|
-
while (queue.length) {
|
|
4049
|
-
const current = queue.shift();
|
|
4050
|
-
if (typeof current.value === "object" && current.value !== null) {
|
|
4051
|
-
if (seenMarker.has(current.value)) {
|
|
4052
|
-
continue;
|
|
4053
|
-
}
|
|
4054
|
-
else {
|
|
4055
|
-
seenMarker.set(current.value, true);
|
|
4056
|
-
}
|
|
3641
|
+
function walk(v, fn) {
|
|
3642
|
+
var _a;
|
|
3643
|
+
const seen = new Set();
|
|
3644
|
+
const mutated = new Map();
|
|
3645
|
+
deepLazyApply(v);
|
|
3646
|
+
for (const value of mutated.values()) {
|
|
3647
|
+
replaceChildren(value);
|
|
3648
|
+
}
|
|
3649
|
+
return (_a = mutated.get(v)) !== null && _a !== void 0 ? _a : v;
|
|
3650
|
+
function deepLazyApply(value) {
|
|
3651
|
+
var _a, _b;
|
|
3652
|
+
if (seen.has(value)) {
|
|
3653
|
+
return;
|
|
4057
3654
|
}
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
3655
|
+
seen.add(value);
|
|
3656
|
+
const children = getChildren((_a = cachedApply(value)) !== null && _a !== void 0 ? _a : value);
|
|
3657
|
+
children === null || children === void 0 ? void 0 : children.forEach(deepLazyApply);
|
|
3658
|
+
if (children === null || children === void 0 ? void 0 : children.some((node) => mutated.has(node))) {
|
|
3659
|
+
mutated.set(value, (_b = mutated.get(value)) !== null && _b !== void 0 ? _b : shallowCopy(value));
|
|
4061
3660
|
}
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
3661
|
+
}
|
|
3662
|
+
function cachedApply(value) {
|
|
3663
|
+
const cached = mutated.get(value);
|
|
3664
|
+
if (coreUtil.isDefined(cached)) {
|
|
3665
|
+
return cached;
|
|
3666
|
+
}
|
|
3667
|
+
const applied = fn(value);
|
|
3668
|
+
if (value !== applied) {
|
|
3669
|
+
mutated.set(value, applied);
|
|
4070
3670
|
}
|
|
3671
|
+
return mutated.get(value);
|
|
4071
3672
|
}
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
if (typeof input === "number") {
|
|
4076
|
-
if (isNaN(input)) {
|
|
4077
|
-
return "NaN";
|
|
3673
|
+
function replaceChildren(applied) {
|
|
3674
|
+
if (!isComplex(applied)) {
|
|
3675
|
+
return;
|
|
4078
3676
|
}
|
|
4079
|
-
else if (
|
|
4080
|
-
|
|
3677
|
+
else if (Array.isArray(applied)) {
|
|
3678
|
+
applied.forEach((e, i) => {
|
|
3679
|
+
var _a;
|
|
3680
|
+
applied[i] = (_a = mutated.get(e)) !== null && _a !== void 0 ? _a : e;
|
|
3681
|
+
});
|
|
4081
3682
|
}
|
|
4082
|
-
else if (
|
|
4083
|
-
|
|
3683
|
+
else if (typeof applied === "object" && applied !== null) {
|
|
3684
|
+
Object.keys(applied).forEach((key) => {
|
|
3685
|
+
var _a;
|
|
3686
|
+
applied[key] = (_a = mutated.get(applied[key])) !== null && _a !== void 0 ? _a : applied[key];
|
|
3687
|
+
});
|
|
4084
3688
|
}
|
|
4085
3689
|
}
|
|
4086
|
-
|
|
3690
|
+
}
|
|
3691
|
+
/**
|
|
3692
|
+
* Array inputs SHOULD not have both complex and non-complex elements. This function determines
|
|
3693
|
+
* whether an array is complex based solely on the first element.
|
|
3694
|
+
*/
|
|
3695
|
+
function isComplex(v) {
|
|
3696
|
+
return Array.isArray(v) ? isComplex(v[0]) : typeof v === "object" && v !== null;
|
|
3697
|
+
}
|
|
3698
|
+
function getChildren(v) {
|
|
3699
|
+
if (!isComplex(v)) {
|
|
3700
|
+
return;
|
|
3701
|
+
}
|
|
3702
|
+
if (Array.isArray(v)) {
|
|
3703
|
+
return v;
|
|
3704
|
+
}
|
|
3705
|
+
return Object.values(v);
|
|
3706
|
+
}
|
|
3707
|
+
function shallowCopy(value) {
|
|
3708
|
+
const maybeCopy = Array.isArray(value)
|
|
3709
|
+
? value.map((v) => v)
|
|
3710
|
+
: typeof value === "object" && value !== null
|
|
3711
|
+
? Object.assign({}, value) : value;
|
|
3712
|
+
return value === maybeCopy
|
|
3713
|
+
? value
|
|
3714
|
+
: Object.setPrototypeOf(maybeCopy, Object.getPrototypeOf(value));
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
// Copyright (c) Microsoft Corporation.
|
|
3718
|
+
// Licensed under the MIT license.
|
|
3719
|
+
const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
|
|
3720
|
+
const GeoJSONPointTypeName = "Point";
|
|
3721
|
+
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
3722
|
+
const [serializeValue, deserializeValue] = [
|
|
3723
|
+
[serializeSpecialNumbers, serializeDates, serializeGeoPoint],
|
|
3724
|
+
[deserializeSpecialNumbers, deserializeDates, deserializeGeoPoint],
|
|
3725
|
+
].map((fns) => (value) => fns.reduceRight((acc, fn) => fn(acc), value));
|
|
3726
|
+
function serialize(obj) {
|
|
3727
|
+
return walk(obj, serializeValue);
|
|
3728
|
+
}
|
|
3729
|
+
function deserialize(obj) {
|
|
3730
|
+
return walk(obj, deserializeValue);
|
|
3731
|
+
}
|
|
3732
|
+
function serializeSpecialNumbers(input) {
|
|
3733
|
+
if (typeof input === "number" && isNaN(input)) {
|
|
3734
|
+
return "NaN";
|
|
3735
|
+
}
|
|
3736
|
+
else if (input === Infinity) {
|
|
3737
|
+
return "INF";
|
|
3738
|
+
}
|
|
3739
|
+
else if (input === -Infinity) {
|
|
3740
|
+
return "-INF";
|
|
3741
|
+
}
|
|
3742
|
+
else {
|
|
3743
|
+
return input;
|
|
3744
|
+
}
|
|
3745
|
+
}
|
|
3746
|
+
function serializeDates(input) {
|
|
3747
|
+
return input instanceof Date ? input.toISOString() : input;
|
|
3748
|
+
}
|
|
3749
|
+
function serializeGeoPoint(input) {
|
|
3750
|
+
return input instanceof GeographyPoint ? input.toJSON() : input;
|
|
4087
3751
|
}
|
|
4088
3752
|
function deserializeSpecialNumbers(input) {
|
|
4089
|
-
|
|
4090
|
-
|
|
3753
|
+
switch (input) {
|
|
3754
|
+
case "NaN":
|
|
4091
3755
|
return NaN;
|
|
4092
|
-
|
|
4093
|
-
else if (input === "INF") {
|
|
4094
|
-
return Infinity;
|
|
4095
|
-
}
|
|
4096
|
-
else if (input === "-INF") {
|
|
3756
|
+
case "-INF":
|
|
4097
3757
|
return -Infinity;
|
|
4098
|
-
|
|
3758
|
+
case "INF":
|
|
3759
|
+
return Infinity;
|
|
3760
|
+
default:
|
|
3761
|
+
return input;
|
|
4099
3762
|
}
|
|
4100
|
-
return input;
|
|
4101
3763
|
}
|
|
4102
3764
|
function deserializeDates(input) {
|
|
4103
|
-
|
|
4104
|
-
if (ISO8601DateRegex.test(input)) {
|
|
4105
|
-
return new Date(input);
|
|
4106
|
-
}
|
|
4107
|
-
}
|
|
4108
|
-
return input;
|
|
3765
|
+
return typeof input === "string" && ISO8601DateRegex.test(input) ? new Date(input) : input;
|
|
4109
3766
|
}
|
|
4110
3767
|
function deserializeGeoPoint(input) {
|
|
4111
3768
|
if (isGeoJSONPoint(input)) {
|
|
4112
|
-
|
|
3769
|
+
const [longitude, latitude] = input.coordinates;
|
|
3770
|
+
return new GeographyPoint({ longitude, latitude });
|
|
4113
3771
|
}
|
|
4114
3772
|
return input;
|
|
4115
3773
|
}
|
|
@@ -4202,7 +3860,7 @@ function isComplexField(field) {
|
|
|
4202
3860
|
* Defines values for TokenizerName.
|
|
4203
3861
|
* @readonly
|
|
4204
3862
|
*/
|
|
4205
|
-
|
|
3863
|
+
var KnownTokenizerNames;
|
|
4206
3864
|
(function (KnownTokenizerNames) {
|
|
4207
3865
|
/**
|
|
4208
3866
|
* Grammar-based tokenizer that is suitable for processing most European-language documents. See
|
|
@@ -4270,12 +3928,12 @@ exports.KnownTokenizerNames = void 0;
|
|
|
4270
3928
|
* http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html
|
|
4271
3929
|
*/
|
|
4272
3930
|
KnownTokenizerNames["Whitespace"] = "whitespace";
|
|
4273
|
-
})(
|
|
3931
|
+
})(KnownTokenizerNames || (KnownTokenizerNames = {}));
|
|
4274
3932
|
/**
|
|
4275
3933
|
* Defines values for TokenFilterName.
|
|
4276
3934
|
* @readonly
|
|
4277
3935
|
*/
|
|
4278
|
-
|
|
3936
|
+
var KnownTokenFilterNames;
|
|
4279
3937
|
(function (KnownTokenFilterNames) {
|
|
4280
3938
|
/**
|
|
4281
3939
|
* A token filter that applies the Arabic normalizer to normalize the orthography. See
|
|
@@ -4453,19 +4111,19 @@ exports.KnownTokenFilterNames = void 0;
|
|
|
4453
4111
|
* Splits words into subwords and performs optional transformations on subword groups.
|
|
4454
4112
|
*/
|
|
4455
4113
|
KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
|
|
4456
|
-
})(
|
|
4114
|
+
})(KnownTokenFilterNames || (KnownTokenFilterNames = {}));
|
|
4457
4115
|
/**
|
|
4458
4116
|
* Defines values for CharFilterName.
|
|
4459
4117
|
* @readonly
|
|
4460
4118
|
*/
|
|
4461
|
-
|
|
4119
|
+
var KnownCharFilterNames;
|
|
4462
4120
|
(function (KnownCharFilterNames) {
|
|
4463
4121
|
/**
|
|
4464
4122
|
* A character filter that attempts to strip out HTML constructs. See
|
|
4465
4123
|
* https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html
|
|
4466
4124
|
*/
|
|
4467
4125
|
KnownCharFilterNames["HtmlStrip"] = "html_strip";
|
|
4468
|
-
})(
|
|
4126
|
+
})(KnownCharFilterNames || (KnownCharFilterNames = {}));
|
|
4469
4127
|
/**
|
|
4470
4128
|
* Defines values for AnalyzerName.
|
|
4471
4129
|
* See https://docs.microsoft.com/rest/api/searchservice/Language-support
|
|
@@ -4849,73 +4507,34 @@ exports.KnownAnalyzerNames = void 0;
|
|
|
4849
4507
|
|
|
4850
4508
|
// Copyright (c) Microsoft Corporation.
|
|
4851
4509
|
// Licensed under the MIT license.
|
|
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
|
+
};
|
|
4852
4532
|
function convertSkillsToPublic(skills) {
|
|
4853
4533
|
if (!skills) {
|
|
4854
4534
|
return skills;
|
|
4855
4535
|
}
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
switch (skill.odatatype) {
|
|
4859
|
-
case "#Microsoft.Skills.Util.ConditionalSkill":
|
|
4860
|
-
result.push(skill);
|
|
4861
|
-
break;
|
|
4862
|
-
case "#Microsoft.Skills.Text.KeyPhraseExtractionSkill":
|
|
4863
|
-
result.push(skill);
|
|
4864
|
-
break;
|
|
4865
|
-
case "#Microsoft.Skills.Vision.OcrSkill":
|
|
4866
|
-
result.push(skill);
|
|
4867
|
-
break;
|
|
4868
|
-
case "#Microsoft.Skills.Vision.ImageAnalysisSkill":
|
|
4869
|
-
result.push(skill);
|
|
4870
|
-
break;
|
|
4871
|
-
case "#Microsoft.Skills.Text.LanguageDetectionSkill":
|
|
4872
|
-
result.push(skill);
|
|
4873
|
-
break;
|
|
4874
|
-
case "#Microsoft.Skills.Util.ShaperSkill":
|
|
4875
|
-
result.push(skill);
|
|
4876
|
-
break;
|
|
4877
|
-
case "#Microsoft.Skills.Text.MergeSkill":
|
|
4878
|
-
result.push(skill);
|
|
4879
|
-
break;
|
|
4880
|
-
case "#Microsoft.Skills.Text.EntityRecognitionSkill":
|
|
4881
|
-
result.push(skill);
|
|
4882
|
-
break;
|
|
4883
|
-
case "#Microsoft.Skills.Text.SentimentSkill":
|
|
4884
|
-
result.push(skill);
|
|
4885
|
-
break;
|
|
4886
|
-
case "#Microsoft.Skills.Text.SplitSkill":
|
|
4887
|
-
result.push(skill);
|
|
4888
|
-
break;
|
|
4889
|
-
case "#Microsoft.Skills.Text.PIIDetectionSkill":
|
|
4890
|
-
result.push(skill);
|
|
4891
|
-
break;
|
|
4892
|
-
case "#Microsoft.Skills.Text.V3.EntityRecognitionSkill":
|
|
4893
|
-
result.push(skill);
|
|
4894
|
-
break;
|
|
4895
|
-
case "#Microsoft.Skills.Text.V3.EntityLinkingSkill":
|
|
4896
|
-
result.push(skill);
|
|
4897
|
-
break;
|
|
4898
|
-
case "#Microsoft.Skills.Text.V3.SentimentSkill":
|
|
4899
|
-
result.push(skill);
|
|
4900
|
-
break;
|
|
4901
|
-
case "#Microsoft.Skills.Text.TranslationSkill":
|
|
4902
|
-
result.push(skill);
|
|
4903
|
-
break;
|
|
4904
|
-
case "#Microsoft.Skills.Custom.WebApiSkill":
|
|
4905
|
-
result.push(skill);
|
|
4906
|
-
break;
|
|
4907
|
-
case "#Microsoft.Skills.Text.CustomEntityLookupSkill":
|
|
4908
|
-
result.push(skill);
|
|
4909
|
-
break;
|
|
4910
|
-
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
4911
|
-
result.push(skill);
|
|
4912
|
-
break;
|
|
4913
|
-
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
4914
|
-
result.push(skill);
|
|
4915
|
-
break;
|
|
4916
|
-
}
|
|
4917
|
-
}
|
|
4918
|
-
return result;
|
|
4536
|
+
// This validation has already GAed
|
|
4537
|
+
return skills.filter((skill) => knownSkills[skill.odatatype]);
|
|
4919
4538
|
}
|
|
4920
4539
|
function convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount) {
|
|
4921
4540
|
if (!cognitiveServicesAccount) {
|
|
@@ -5006,10 +4625,10 @@ function convertFieldsToPublic(fields) {
|
|
|
5006
4625
|
else {
|
|
5007
4626
|
const type = field.type;
|
|
5008
4627
|
const synonymMapNames = field.synonymMaps;
|
|
5009
|
-
const { retrievable, analyzer, searchAnalyzer, indexAnalyzer
|
|
4628
|
+
const { retrievable, analyzer, searchAnalyzer, indexAnalyzer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer"]);
|
|
5010
4629
|
const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
|
|
5011
4630
|
const result = Object.assign(Object.assign({}, restField), { type,
|
|
5012
|
-
hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer,
|
|
4631
|
+
hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, synonymMapNames });
|
|
5013
4632
|
return result;
|
|
5014
4633
|
}
|
|
5015
4634
|
});
|
|
@@ -5021,7 +4640,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
5021
4640
|
return {
|
|
5022
4641
|
name: field.name,
|
|
5023
4642
|
type: field.type,
|
|
5024
|
-
fields: convertFieldsToGenerated(field.fields),
|
|
4643
|
+
fields: field.fields ? convertFieldsToGenerated(field.fields) : field.fields,
|
|
5025
4644
|
};
|
|
5026
4645
|
}
|
|
5027
4646
|
else {
|
|
@@ -5029,7 +4648,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
5029
4648
|
const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
|
|
5030
4649
|
return Object.assign(Object.assign({}, restField), { retrievable,
|
|
5031
4650
|
// modify API defaults to use less storage for simple types
|
|
5032
|
-
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 });
|
|
5033
4652
|
}
|
|
5034
4653
|
});
|
|
5035
4654
|
}
|
|
@@ -5091,7 +4710,6 @@ function convertEncryptionKeyToPublic(encryptionKey) {
|
|
|
5091
4710
|
keyName: encryptionKey.keyName,
|
|
5092
4711
|
keyVersion: encryptionKey.keyVersion,
|
|
5093
4712
|
vaultUrl: encryptionKey.vaultUri,
|
|
5094
|
-
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
|
|
5095
4713
|
};
|
|
5096
4714
|
if (encryptionKey.accessCredentials) {
|
|
5097
4715
|
result.applicationId = encryptionKey.accessCredentials.applicationId;
|
|
@@ -5107,7 +4725,6 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
|
|
|
5107
4725
|
keyName: encryptionKey.keyName,
|
|
5108
4726
|
keyVersion: encryptionKey.keyVersion,
|
|
5109
4727
|
vaultUri: encryptionKey.vaultUrl,
|
|
5110
|
-
identity: encryptionKey.identity,
|
|
5111
4728
|
};
|
|
5112
4729
|
if (encryptionKey.applicationId) {
|
|
5113
4730
|
result.accessCredentials = {
|
|
@@ -5129,7 +4746,6 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
5129
4746
|
tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),
|
|
5130
4747
|
tokenFilters: generatedIndex.tokenFilters,
|
|
5131
4748
|
charFilters: generatedIndex.charFilters,
|
|
5132
|
-
normalizers: generatedIndex.normalizers,
|
|
5133
4749
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
5134
4750
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
5135
4751
|
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
@@ -5143,20 +4759,20 @@ function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer)
|
|
|
5143
4759
|
}
|
|
5144
4760
|
switch (generatedVectorizer.kind) {
|
|
5145
4761
|
case "azureOpenAI": {
|
|
5146
|
-
const {
|
|
5147
|
-
const authIdentity = convertSearchIndexerDataIdentityToPublic(
|
|
5148
|
-
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 }) });
|
|
5149
4765
|
return vectorizer;
|
|
5150
4766
|
}
|
|
5151
4767
|
case "customWebApi": {
|
|
5152
|
-
const {
|
|
5153
|
-
const authIdentity = convertSearchIndexerDataIdentityToPublic(
|
|
5154
|
-
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), {
|
|
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 }) });
|
|
5155
4771
|
return vectorizer;
|
|
5156
4772
|
}
|
|
5157
|
-
default:
|
|
5158
|
-
throw Error("Unsupported vectorizer");
|
|
5159
4773
|
}
|
|
4774
|
+
logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
|
|
4775
|
+
return generatedVectorizer;
|
|
5160
4776
|
}
|
|
5161
4777
|
function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
|
|
5162
4778
|
var _a;
|
|
@@ -5179,13 +4795,12 @@ function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
|
|
|
5179
4795
|
}
|
|
5180
4796
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
5181
4797
|
const returnValues = results.map((result) => {
|
|
5182
|
-
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"]);
|
|
5183
4799
|
const obj = {
|
|
5184
4800
|
score,
|
|
5185
4801
|
highlights,
|
|
5186
4802
|
rerankerScore,
|
|
5187
4803
|
captions,
|
|
5188
|
-
documentDebugInfo,
|
|
5189
4804
|
document: restProps,
|
|
5190
4805
|
};
|
|
5191
4806
|
return obj;
|
|
@@ -5212,19 +4827,11 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
5212
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) });
|
|
5213
4828
|
}
|
|
5214
4829
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
5215
|
-
const { skills, cognitiveServicesAccount,
|
|
5216
|
-
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 });
|
|
5217
4832
|
}
|
|
5218
4833
|
function publicSkillsetToGeneratedSkillset(skillset) {
|
|
5219
|
-
return {
|
|
5220
|
-
name: skillset.name,
|
|
5221
|
-
description: skillset.description,
|
|
5222
|
-
etag: skillset.etag,
|
|
5223
|
-
skills: skillset.skills,
|
|
5224
|
-
cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount),
|
|
5225
|
-
knowledgeStore: skillset.knowledgeStore,
|
|
5226
|
-
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),
|
|
5227
|
-
};
|
|
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) });
|
|
5228
4835
|
}
|
|
5229
4836
|
function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
5230
4837
|
const result = {
|
|
@@ -5257,7 +4864,7 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
|
|
|
5257
4864
|
const { parsingMode, dataToExtract, imageAction, pdfTextRotationAlgorithm, executionEnvironment, } = (_b = (_a = indexer.parameters) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : {};
|
|
5258
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 });
|
|
5259
4866
|
const parameters = Object.assign(Object.assign({}, indexer.parameters), { configuration });
|
|
5260
|
-
return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey)
|
|
4867
|
+
return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey) });
|
|
5261
4868
|
}
|
|
5262
4869
|
function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
5263
4870
|
return {
|
|
@@ -5268,7 +4875,6 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
|
5268
4875
|
connectionString: dataSource.connectionString,
|
|
5269
4876
|
},
|
|
5270
4877
|
container: dataSource.container,
|
|
5271
|
-
identity: dataSource.identity,
|
|
5272
4878
|
etag: dataSource.etag,
|
|
5273
4879
|
dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
|
|
5274
4880
|
dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
|
|
@@ -5282,7 +4888,6 @@ function generatedDataSourceToPublicDataSource(dataSource) {
|
|
|
5282
4888
|
type: dataSource.type,
|
|
5283
4889
|
connectionString: dataSource.credentials.connectionString,
|
|
5284
4890
|
container: dataSource.container,
|
|
5285
|
-
identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity),
|
|
5286
4891
|
etag: dataSource.etag,
|
|
5287
4892
|
dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
|
|
5288
4893
|
dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
|
|
@@ -5328,27 +4933,6 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
5328
4933
|
const offset = Math.floor(Math.random() * (max - min + 1));
|
|
5329
4934
|
return offset + min;
|
|
5330
4935
|
}
|
|
5331
|
-
/**
|
|
5332
|
-
* A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.
|
|
5333
|
-
* @param timeInMs - The number of milliseconds to be delayed.
|
|
5334
|
-
* @returns Promise that is resolved after timeInMs
|
|
5335
|
-
*/
|
|
5336
|
-
function delay(timeInMs) {
|
|
5337
|
-
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
5338
|
-
}
|
|
5339
|
-
const defaultServiceVersion = "2024-03-01-Preview";
|
|
5340
|
-
function convertKnowledgeStoreToPublic(knowledgeStore) {
|
|
5341
|
-
if (!knowledgeStore) {
|
|
5342
|
-
return knowledgeStore;
|
|
5343
|
-
}
|
|
5344
|
-
return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
|
|
5345
|
-
}
|
|
5346
|
-
function convertSearchIndexerCacheToPublic(cache) {
|
|
5347
|
-
if (!cache) {
|
|
5348
|
-
return cache;
|
|
5349
|
-
}
|
|
5350
|
-
return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
|
|
5351
|
-
}
|
|
5352
4936
|
|
|
5353
4937
|
// Copyright (c) Microsoft Corporation.
|
|
5354
4938
|
// Licensed under the MIT license.
|
|
@@ -5439,7 +5023,6 @@ class SearchClient {
|
|
|
5439
5023
|
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
5440
5024
|
this.apiVersion = this.serviceVersion;
|
|
5441
5025
|
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
5442
|
-
this.pipeline = this.client.pipeline;
|
|
5443
5026
|
if (coreAuth.isTokenCredential(credential)) {
|
|
5444
5027
|
const scope = options.audience
|
|
5445
5028
|
? `${options.audience}/.default`
|
|
@@ -5539,9 +5122,9 @@ class SearchClient {
|
|
|
5539
5122
|
}
|
|
5540
5123
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
5541
5124
|
const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions } = _a, restOptions = tslib.__rest(_a, ["includeTotalCount", "orderBy", "searchFields", "select", "vectorSearchOptions", "semanticSearchOptions"]);
|
|
5542
|
-
const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, {
|
|
5125
|
+
const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { configurationName, errorMode, answers, captions } = _b, restSemanticOptions = tslib.__rest(_b, ["configurationName", "errorMode", "answers", "captions"]);
|
|
5543
5126
|
const _c = vectorSearchOptions !== null && vectorSearchOptions !== void 0 ? vectorSearchOptions : {}, { queries, filterMode } = _c, restVectorOptions = tslib.__rest(_c, ["queries", "filterMode"]);
|
|
5544
|
-
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 });
|
|
5545
5128
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
|
|
5546
5129
|
try {
|
|
5547
5130
|
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
|
|
@@ -5927,12 +5510,6 @@ class SearchClient {
|
|
|
5927
5510
|
}
|
|
5928
5511
|
return searchFields;
|
|
5929
5512
|
}
|
|
5930
|
-
convertSemanticFields(semanticFields) {
|
|
5931
|
-
if (semanticFields) {
|
|
5932
|
-
return semanticFields.join(",");
|
|
5933
|
-
}
|
|
5934
|
-
return semanticFields;
|
|
5935
|
-
}
|
|
5936
5513
|
convertOrderBy(orderBy) {
|
|
5937
5514
|
if (orderBy) {
|
|
5938
5515
|
return orderBy.join(",");
|
|
@@ -5971,9 +5548,6 @@ class SearchClient {
|
|
|
5971
5548
|
return output;
|
|
5972
5549
|
}
|
|
5973
5550
|
convertVectorQuery(vectorQuery) {
|
|
5974
|
-
if (!vectorQuery) {
|
|
5975
|
-
return vectorQuery;
|
|
5976
|
-
}
|
|
5977
5551
|
return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
|
|
5978
5552
|
}
|
|
5979
5553
|
}
|
|
@@ -6024,13 +5598,6 @@ const SearchIndexerDataSource = {
|
|
|
6024
5598
|
className: "SearchIndexerDataContainer",
|
|
6025
5599
|
},
|
|
6026
5600
|
},
|
|
6027
|
-
identity: {
|
|
6028
|
-
serializedName: "identity",
|
|
6029
|
-
type: {
|
|
6030
|
-
name: "Composite",
|
|
6031
|
-
className: "SearchIndexerDataIdentity",
|
|
6032
|
-
},
|
|
6033
|
-
},
|
|
6034
5601
|
dataChangeDetectionPolicy: {
|
|
6035
5602
|
serializedName: "dataChangeDetectionPolicy",
|
|
6036
5603
|
type: {
|
|
@@ -6096,26 +5663,6 @@ const SearchIndexerDataContainer = {
|
|
|
6096
5663
|
},
|
|
6097
5664
|
},
|
|
6098
5665
|
};
|
|
6099
|
-
const SearchIndexerDataIdentity = {
|
|
6100
|
-
type: {
|
|
6101
|
-
name: "Composite",
|
|
6102
|
-
className: "SearchIndexerDataIdentity",
|
|
6103
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
6104
|
-
polymorphicDiscriminator: {
|
|
6105
|
-
serializedName: "@odata\\.type",
|
|
6106
|
-
clientName: "odatatype",
|
|
6107
|
-
},
|
|
6108
|
-
modelProperties: {
|
|
6109
|
-
odatatype: {
|
|
6110
|
-
serializedName: "@odata\\.type",
|
|
6111
|
-
required: true,
|
|
6112
|
-
type: {
|
|
6113
|
-
name: "String",
|
|
6114
|
-
},
|
|
6115
|
-
},
|
|
6116
|
-
},
|
|
6117
|
-
},
|
|
6118
|
-
};
|
|
6119
5666
|
const DataChangeDetectionPolicy = {
|
|
6120
5667
|
type: {
|
|
6121
5668
|
name: "Composite",
|
|
@@ -6189,13 +5736,6 @@ const SearchResourceEncryptionKey = {
|
|
|
6189
5736
|
className: "AzureActiveDirectoryApplicationCredentials",
|
|
6190
5737
|
},
|
|
6191
5738
|
},
|
|
6192
|
-
identity: {
|
|
6193
|
-
serializedName: "identity",
|
|
6194
|
-
type: {
|
|
6195
|
-
name: "Composite",
|
|
6196
|
-
className: "SearchIndexerDataIdentity",
|
|
6197
|
-
},
|
|
6198
|
-
},
|
|
6199
5739
|
},
|
|
6200
5740
|
},
|
|
6201
5741
|
};
|
|
@@ -6335,36 +5875,6 @@ const ListDataSourcesResult = {
|
|
|
6335
5875
|
},
|
|
6336
5876
|
},
|
|
6337
5877
|
};
|
|
6338
|
-
const DocumentKeysOrIds = {
|
|
6339
|
-
type: {
|
|
6340
|
-
name: "Composite",
|
|
6341
|
-
className: "DocumentKeysOrIds",
|
|
6342
|
-
modelProperties: {
|
|
6343
|
-
documentKeys: {
|
|
6344
|
-
serializedName: "documentKeys",
|
|
6345
|
-
type: {
|
|
6346
|
-
name: "Sequence",
|
|
6347
|
-
element: {
|
|
6348
|
-
type: {
|
|
6349
|
-
name: "String",
|
|
6350
|
-
},
|
|
6351
|
-
},
|
|
6352
|
-
},
|
|
6353
|
-
},
|
|
6354
|
-
datasourceDocumentIds: {
|
|
6355
|
-
serializedName: "datasourceDocumentIds",
|
|
6356
|
-
type: {
|
|
6357
|
-
name: "Sequence",
|
|
6358
|
-
element: {
|
|
6359
|
-
type: {
|
|
6360
|
-
name: "String",
|
|
6361
|
-
},
|
|
6362
|
-
},
|
|
6363
|
-
},
|
|
6364
|
-
},
|
|
6365
|
-
},
|
|
6366
|
-
},
|
|
6367
|
-
};
|
|
6368
5878
|
const SearchIndexer = {
|
|
6369
5879
|
type: {
|
|
6370
5880
|
name: "Composite",
|
|
@@ -6462,13 +5972,6 @@ const SearchIndexer = {
|
|
|
6462
5972
|
className: "SearchResourceEncryptionKey",
|
|
6463
5973
|
},
|
|
6464
5974
|
},
|
|
6465
|
-
cache: {
|
|
6466
|
-
serializedName: "cache",
|
|
6467
|
-
type: {
|
|
6468
|
-
name: "Composite",
|
|
6469
|
-
className: "SearchIndexerCache",
|
|
6470
|
-
},
|
|
6471
|
-
},
|
|
6472
5975
|
},
|
|
6473
5976
|
},
|
|
6474
5977
|
};
|
|
@@ -6700,34 +6203,6 @@ const FieldMappingFunction = {
|
|
|
6700
6203
|
},
|
|
6701
6204
|
},
|
|
6702
6205
|
};
|
|
6703
|
-
const SearchIndexerCache = {
|
|
6704
|
-
type: {
|
|
6705
|
-
name: "Composite",
|
|
6706
|
-
className: "SearchIndexerCache",
|
|
6707
|
-
modelProperties: {
|
|
6708
|
-
storageConnectionString: {
|
|
6709
|
-
serializedName: "storageConnectionString",
|
|
6710
|
-
type: {
|
|
6711
|
-
name: "String",
|
|
6712
|
-
},
|
|
6713
|
-
},
|
|
6714
|
-
enableReprocessing: {
|
|
6715
|
-
serializedName: "enableReprocessing",
|
|
6716
|
-
nullable: true,
|
|
6717
|
-
type: {
|
|
6718
|
-
name: "Boolean",
|
|
6719
|
-
},
|
|
6720
|
-
},
|
|
6721
|
-
identity: {
|
|
6722
|
-
serializedName: "identity",
|
|
6723
|
-
type: {
|
|
6724
|
-
name: "Composite",
|
|
6725
|
-
className: "SearchIndexerDataIdentity",
|
|
6726
|
-
},
|
|
6727
|
-
},
|
|
6728
|
-
},
|
|
6729
|
-
},
|
|
6730
|
-
};
|
|
6731
6206
|
const ListIndexersResult = {
|
|
6732
6207
|
type: {
|
|
6733
6208
|
name: "Composite",
|
|
@@ -6809,20 +6284,6 @@ const IndexerExecutionResult = {
|
|
|
6809
6284
|
allowedValues: ["transientFailure", "success", "inProgress", "reset"],
|
|
6810
6285
|
},
|
|
6811
6286
|
},
|
|
6812
|
-
statusDetail: {
|
|
6813
|
-
serializedName: "statusDetail",
|
|
6814
|
-
readOnly: true,
|
|
6815
|
-
type: {
|
|
6816
|
-
name: "String",
|
|
6817
|
-
},
|
|
6818
|
-
},
|
|
6819
|
-
currentState: {
|
|
6820
|
-
serializedName: "currentState",
|
|
6821
|
-
type: {
|
|
6822
|
-
name: "Composite",
|
|
6823
|
-
className: "IndexerState",
|
|
6824
|
-
},
|
|
6825
|
-
},
|
|
6826
6287
|
errorMessage: {
|
|
6827
6288
|
serializedName: "errorMessage",
|
|
6828
6289
|
readOnly: true,
|
|
@@ -6906,73 +6367,6 @@ const IndexerExecutionResult = {
|
|
|
6906
6367
|
},
|
|
6907
6368
|
},
|
|
6908
6369
|
};
|
|
6909
|
-
const IndexerState = {
|
|
6910
|
-
type: {
|
|
6911
|
-
name: "Composite",
|
|
6912
|
-
className: "IndexerState",
|
|
6913
|
-
modelProperties: {
|
|
6914
|
-
mode: {
|
|
6915
|
-
serializedName: "mode",
|
|
6916
|
-
readOnly: true,
|
|
6917
|
-
type: {
|
|
6918
|
-
name: "String",
|
|
6919
|
-
},
|
|
6920
|
-
},
|
|
6921
|
-
allDocumentsInitialChangeTrackingState: {
|
|
6922
|
-
serializedName: "allDocsInitialChangeTrackingState",
|
|
6923
|
-
readOnly: true,
|
|
6924
|
-
type: {
|
|
6925
|
-
name: "String",
|
|
6926
|
-
},
|
|
6927
|
-
},
|
|
6928
|
-
allDocumentsFinalChangeTrackingState: {
|
|
6929
|
-
serializedName: "allDocsFinalChangeTrackingState",
|
|
6930
|
-
readOnly: true,
|
|
6931
|
-
type: {
|
|
6932
|
-
name: "String",
|
|
6933
|
-
},
|
|
6934
|
-
},
|
|
6935
|
-
resetDocumentsInitialChangeTrackingState: {
|
|
6936
|
-
serializedName: "resetDocsInitialChangeTrackingState",
|
|
6937
|
-
readOnly: true,
|
|
6938
|
-
type: {
|
|
6939
|
-
name: "String",
|
|
6940
|
-
},
|
|
6941
|
-
},
|
|
6942
|
-
resetDocumentsFinalChangeTrackingState: {
|
|
6943
|
-
serializedName: "resetDocsFinalChangeTrackingState",
|
|
6944
|
-
readOnly: true,
|
|
6945
|
-
type: {
|
|
6946
|
-
name: "String",
|
|
6947
|
-
},
|
|
6948
|
-
},
|
|
6949
|
-
resetDocumentKeys: {
|
|
6950
|
-
serializedName: "resetDocumentKeys",
|
|
6951
|
-
readOnly: true,
|
|
6952
|
-
type: {
|
|
6953
|
-
name: "Sequence",
|
|
6954
|
-
element: {
|
|
6955
|
-
type: {
|
|
6956
|
-
name: "String",
|
|
6957
|
-
},
|
|
6958
|
-
},
|
|
6959
|
-
},
|
|
6960
|
-
},
|
|
6961
|
-
resetDatasourceDocumentIds: {
|
|
6962
|
-
serializedName: "resetDatasourceDocumentIds",
|
|
6963
|
-
readOnly: true,
|
|
6964
|
-
type: {
|
|
6965
|
-
name: "Sequence",
|
|
6966
|
-
element: {
|
|
6967
|
-
type: {
|
|
6968
|
-
name: "String",
|
|
6969
|
-
},
|
|
6970
|
-
},
|
|
6971
|
-
},
|
|
6972
|
-
},
|
|
6973
|
-
},
|
|
6974
|
-
},
|
|
6975
|
-
};
|
|
6976
6370
|
const SearchIndexerError = {
|
|
6977
6371
|
type: {
|
|
6978
6372
|
name: "Composite",
|
|
@@ -7143,11 +6537,11 @@ const SearchIndexerSkillset = {
|
|
|
7143
6537
|
className: "SearchIndexerKnowledgeStore",
|
|
7144
6538
|
},
|
|
7145
6539
|
},
|
|
7146
|
-
|
|
6540
|
+
indexProjection: {
|
|
7147
6541
|
serializedName: "indexProjections",
|
|
7148
6542
|
type: {
|
|
7149
6543
|
name: "Composite",
|
|
7150
|
-
className: "
|
|
6544
|
+
className: "SearchIndexerIndexProjection",
|
|
7151
6545
|
},
|
|
7152
6546
|
},
|
|
7153
6547
|
etag: {
|
|
@@ -7341,20 +6735,6 @@ const SearchIndexerKnowledgeStore = {
|
|
|
7341
6735
|
},
|
|
7342
6736
|
},
|
|
7343
6737
|
},
|
|
7344
|
-
identity: {
|
|
7345
|
-
serializedName: "identity",
|
|
7346
|
-
type: {
|
|
7347
|
-
name: "Composite",
|
|
7348
|
-
className: "SearchIndexerDataIdentity",
|
|
7349
|
-
},
|
|
7350
|
-
},
|
|
7351
|
-
parameters: {
|
|
7352
|
-
serializedName: "parameters",
|
|
7353
|
-
type: {
|
|
7354
|
-
name: "Composite",
|
|
7355
|
-
className: "SearchIndexerKnowledgeStoreParameters",
|
|
7356
|
-
},
|
|
7357
|
-
},
|
|
7358
6738
|
},
|
|
7359
6739
|
},
|
|
7360
6740
|
};
|
|
@@ -7446,30 +6826,14 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
|
|
|
7446
6826
|
},
|
|
7447
6827
|
},
|
|
7448
6828
|
};
|
|
7449
|
-
const
|
|
6829
|
+
const SearchIndexerIndexProjection = {
|
|
7450
6830
|
type: {
|
|
7451
6831
|
name: "Composite",
|
|
7452
|
-
className: "
|
|
7453
|
-
additionalProperties: { type: { name: "Object" } },
|
|
6832
|
+
className: "SearchIndexerIndexProjection",
|
|
7454
6833
|
modelProperties: {
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
type: {
|
|
7459
|
-
name: "Boolean",
|
|
7460
|
-
},
|
|
7461
|
-
},
|
|
7462
|
-
},
|
|
7463
|
-
},
|
|
7464
|
-
};
|
|
7465
|
-
const SearchIndexerIndexProjections = {
|
|
7466
|
-
type: {
|
|
7467
|
-
name: "Composite",
|
|
7468
|
-
className: "SearchIndexerIndexProjections",
|
|
7469
|
-
modelProperties: {
|
|
7470
|
-
selectors: {
|
|
7471
|
-
serializedName: "selectors",
|
|
7472
|
-
required: true,
|
|
6834
|
+
selectors: {
|
|
6835
|
+
serializedName: "selectors",
|
|
6836
|
+
required: true,
|
|
7473
6837
|
type: {
|
|
7474
6838
|
name: "Sequence",
|
|
7475
6839
|
element: {
|
|
@@ -7484,7 +6848,7 @@ const SearchIndexerIndexProjections = {
|
|
|
7484
6848
|
serializedName: "parameters",
|
|
7485
6849
|
type: {
|
|
7486
6850
|
name: "Composite",
|
|
7487
|
-
className: "
|
|
6851
|
+
className: "SearchIndexerIndexProjectionParameters",
|
|
7488
6852
|
},
|
|
7489
6853
|
},
|
|
7490
6854
|
},
|
|
@@ -7532,10 +6896,10 @@ const SearchIndexerIndexProjectionSelector = {
|
|
|
7532
6896
|
},
|
|
7533
6897
|
},
|
|
7534
6898
|
};
|
|
7535
|
-
const
|
|
6899
|
+
const SearchIndexerIndexProjectionParameters = {
|
|
7536
6900
|
type: {
|
|
7537
6901
|
name: "Composite",
|
|
7538
|
-
className: "
|
|
6902
|
+
className: "SearchIndexerIndexProjectionParameters",
|
|
7539
6903
|
additionalProperties: { type: { name: "Object" } },
|
|
7540
6904
|
modelProperties: {
|
|
7541
6905
|
projectionMode: {
|
|
@@ -7569,25 +6933,6 @@ const ListSkillsetsResult = {
|
|
|
7569
6933
|
},
|
|
7570
6934
|
},
|
|
7571
6935
|
};
|
|
7572
|
-
const SkillNames = {
|
|
7573
|
-
type: {
|
|
7574
|
-
name: "Composite",
|
|
7575
|
-
className: "SkillNames",
|
|
7576
|
-
modelProperties: {
|
|
7577
|
-
skillNames: {
|
|
7578
|
-
serializedName: "skillNames",
|
|
7579
|
-
type: {
|
|
7580
|
-
name: "Sequence",
|
|
7581
|
-
element: {
|
|
7582
|
-
type: {
|
|
7583
|
-
name: "String",
|
|
7584
|
-
},
|
|
7585
|
-
},
|
|
7586
|
-
},
|
|
7587
|
-
},
|
|
7588
|
-
},
|
|
7589
|
-
},
|
|
7590
|
-
};
|
|
7591
6936
|
const SynonymMap = {
|
|
7592
6937
|
type: {
|
|
7593
6938
|
name: "Composite",
|
|
@@ -7763,18 +7108,6 @@ const SearchIndex = {
|
|
|
7763
7108
|
},
|
|
7764
7109
|
},
|
|
7765
7110
|
},
|
|
7766
|
-
normalizers: {
|
|
7767
|
-
serializedName: "normalizers",
|
|
7768
|
-
type: {
|
|
7769
|
-
name: "Sequence",
|
|
7770
|
-
element: {
|
|
7771
|
-
type: {
|
|
7772
|
-
name: "Composite",
|
|
7773
|
-
className: "LexicalNormalizer",
|
|
7774
|
-
},
|
|
7775
|
-
},
|
|
7776
|
-
},
|
|
7777
|
-
},
|
|
7778
7111
|
encryptionKey: {
|
|
7779
7112
|
serializedName: "encryptionKey",
|
|
7780
7113
|
type: {
|
|
@@ -7894,13 +7227,6 @@ const SearchField = {
|
|
|
7894
7227
|
name: "String",
|
|
7895
7228
|
},
|
|
7896
7229
|
},
|
|
7897
|
-
normalizer: {
|
|
7898
|
-
serializedName: "normalizer",
|
|
7899
|
-
nullable: true,
|
|
7900
|
-
type: {
|
|
7901
|
-
name: "String",
|
|
7902
|
-
},
|
|
7903
|
-
},
|
|
7904
7230
|
vectorSearchDimensions: {
|
|
7905
7231
|
constraints: {
|
|
7906
7232
|
InclusiveMaximum: 2048,
|
|
@@ -7919,6 +7245,13 @@ const SearchField = {
|
|
|
7919
7245
|
name: "String",
|
|
7920
7246
|
},
|
|
7921
7247
|
},
|
|
7248
|
+
vectorEncodingFormat: {
|
|
7249
|
+
serializedName: "vectorEncoding",
|
|
7250
|
+
nullable: true,
|
|
7251
|
+
type: {
|
|
7252
|
+
name: "String",
|
|
7253
|
+
},
|
|
7254
|
+
},
|
|
7922
7255
|
synonymMaps: {
|
|
7923
7256
|
serializedName: "synonymMaps",
|
|
7924
7257
|
type: {
|
|
@@ -8219,33 +7552,6 @@ const CharFilter = {
|
|
|
8219
7552
|
},
|
|
8220
7553
|
},
|
|
8221
7554
|
};
|
|
8222
|
-
const LexicalNormalizer = {
|
|
8223
|
-
type: {
|
|
8224
|
-
name: "Composite",
|
|
8225
|
-
className: "LexicalNormalizer",
|
|
8226
|
-
uberParent: "LexicalNormalizer",
|
|
8227
|
-
polymorphicDiscriminator: {
|
|
8228
|
-
serializedName: "@odata\\.type",
|
|
8229
|
-
clientName: "odatatype",
|
|
8230
|
-
},
|
|
8231
|
-
modelProperties: {
|
|
8232
|
-
odatatype: {
|
|
8233
|
-
serializedName: "@odata\\.type",
|
|
8234
|
-
required: true,
|
|
8235
|
-
type: {
|
|
8236
|
-
name: "String",
|
|
8237
|
-
},
|
|
8238
|
-
},
|
|
8239
|
-
name: {
|
|
8240
|
-
serializedName: "name",
|
|
8241
|
-
required: true,
|
|
8242
|
-
type: {
|
|
8243
|
-
name: "String",
|
|
8244
|
-
},
|
|
8245
|
-
},
|
|
8246
|
-
},
|
|
8247
|
-
},
|
|
8248
|
-
};
|
|
8249
7555
|
const Similarity = {
|
|
8250
7556
|
type: {
|
|
8251
7557
|
name: "Composite",
|
|
@@ -8416,7 +7722,7 @@ const VectorSearch = {
|
|
|
8416
7722
|
element: {
|
|
8417
7723
|
type: {
|
|
8418
7724
|
name: "Composite",
|
|
8419
|
-
className: "
|
|
7725
|
+
className: "VectorSearchCompression",
|
|
8420
7726
|
},
|
|
8421
7727
|
},
|
|
8422
7728
|
},
|
|
@@ -8443,13 +7749,13 @@ const VectorSearchProfile = {
|
|
|
8443
7749
|
name: "String",
|
|
8444
7750
|
},
|
|
8445
7751
|
},
|
|
8446
|
-
|
|
7752
|
+
vectorizerName: {
|
|
8447
7753
|
serializedName: "vectorizer",
|
|
8448
7754
|
type: {
|
|
8449
7755
|
name: "String",
|
|
8450
7756
|
},
|
|
8451
7757
|
},
|
|
8452
|
-
|
|
7758
|
+
compressionName: {
|
|
8453
7759
|
serializedName: "compression",
|
|
8454
7760
|
type: {
|
|
8455
7761
|
name: "String",
|
|
@@ -8495,7 +7801,7 @@ const VectorSearchVectorizer = {
|
|
|
8495
7801
|
clientName: "kind",
|
|
8496
7802
|
},
|
|
8497
7803
|
modelProperties: {
|
|
8498
|
-
|
|
7804
|
+
vectorizerName: {
|
|
8499
7805
|
serializedName: "name",
|
|
8500
7806
|
required: true,
|
|
8501
7807
|
type: {
|
|
@@ -8512,17 +7818,17 @@ const VectorSearchVectorizer = {
|
|
|
8512
7818
|
},
|
|
8513
7819
|
},
|
|
8514
7820
|
};
|
|
8515
|
-
const
|
|
7821
|
+
const VectorSearchCompression = {
|
|
8516
7822
|
type: {
|
|
8517
7823
|
name: "Composite",
|
|
8518
|
-
className: "
|
|
8519
|
-
uberParent: "
|
|
7824
|
+
className: "VectorSearchCompression",
|
|
7825
|
+
uberParent: "VectorSearchCompression",
|
|
8520
7826
|
polymorphicDiscriminator: {
|
|
8521
7827
|
serializedName: "kind",
|
|
8522
7828
|
clientName: "kind",
|
|
8523
7829
|
},
|
|
8524
7830
|
modelProperties: {
|
|
8525
|
-
|
|
7831
|
+
compressionName: {
|
|
8526
7832
|
serializedName: "name",
|
|
8527
7833
|
required: true,
|
|
8528
7834
|
type: {
|
|
@@ -8631,12 +7937,6 @@ const AnalyzeRequest = {
|
|
|
8631
7937
|
name: "String",
|
|
8632
7938
|
},
|
|
8633
7939
|
},
|
|
8634
|
-
normalizer: {
|
|
8635
|
-
serializedName: "normalizer",
|
|
8636
|
-
type: {
|
|
8637
|
-
name: "String",
|
|
8638
|
-
},
|
|
8639
|
-
},
|
|
8640
7940
|
tokenFilters: {
|
|
8641
7941
|
serializedName: "tokenFilters",
|
|
8642
7942
|
type: {
|
|
@@ -8723,61 +8023,6 @@ const AnalyzedTokenInfo = {
|
|
|
8723
8023
|
},
|
|
8724
8024
|
},
|
|
8725
8025
|
};
|
|
8726
|
-
const SearchAlias = {
|
|
8727
|
-
type: {
|
|
8728
|
-
name: "Composite",
|
|
8729
|
-
className: "SearchAlias",
|
|
8730
|
-
modelProperties: {
|
|
8731
|
-
name: {
|
|
8732
|
-
serializedName: "name",
|
|
8733
|
-
required: true,
|
|
8734
|
-
type: {
|
|
8735
|
-
name: "String",
|
|
8736
|
-
},
|
|
8737
|
-
},
|
|
8738
|
-
indexes: {
|
|
8739
|
-
serializedName: "indexes",
|
|
8740
|
-
required: true,
|
|
8741
|
-
type: {
|
|
8742
|
-
name: "Sequence",
|
|
8743
|
-
element: {
|
|
8744
|
-
type: {
|
|
8745
|
-
name: "String",
|
|
8746
|
-
},
|
|
8747
|
-
},
|
|
8748
|
-
},
|
|
8749
|
-
},
|
|
8750
|
-
etag: {
|
|
8751
|
-
serializedName: "@odata\\.etag",
|
|
8752
|
-
type: {
|
|
8753
|
-
name: "String",
|
|
8754
|
-
},
|
|
8755
|
-
},
|
|
8756
|
-
},
|
|
8757
|
-
},
|
|
8758
|
-
};
|
|
8759
|
-
const ListAliasesResult = {
|
|
8760
|
-
type: {
|
|
8761
|
-
name: "Composite",
|
|
8762
|
-
className: "ListAliasesResult",
|
|
8763
|
-
modelProperties: {
|
|
8764
|
-
aliases: {
|
|
8765
|
-
serializedName: "value",
|
|
8766
|
-
required: true,
|
|
8767
|
-
readOnly: true,
|
|
8768
|
-
type: {
|
|
8769
|
-
name: "Sequence",
|
|
8770
|
-
element: {
|
|
8771
|
-
type: {
|
|
8772
|
-
name: "Composite",
|
|
8773
|
-
className: "SearchAlias",
|
|
8774
|
-
},
|
|
8775
|
-
},
|
|
8776
|
-
},
|
|
8777
|
-
},
|
|
8778
|
-
},
|
|
8779
|
-
},
|
|
8780
|
-
};
|
|
8781
8026
|
const ServiceStatistics = {
|
|
8782
8027
|
type: {
|
|
8783
8028
|
name: "Composite",
|
|
@@ -8805,13 +8050,6 @@ const ServiceCounters = {
|
|
|
8805
8050
|
name: "Composite",
|
|
8806
8051
|
className: "ServiceCounters",
|
|
8807
8052
|
modelProperties: {
|
|
8808
|
-
aliasCounter: {
|
|
8809
|
-
serializedName: "aliasesCount",
|
|
8810
|
-
type: {
|
|
8811
|
-
name: "Composite",
|
|
8812
|
-
className: "ResourceCounter",
|
|
8813
|
-
},
|
|
8814
|
-
},
|
|
8815
8053
|
documentCounter: {
|
|
8816
8054
|
serializedName: "documentCount",
|
|
8817
8055
|
type: {
|
|
@@ -8926,6 +8164,13 @@ const ServiceLimits = {
|
|
|
8926
8164
|
name: "Number",
|
|
8927
8165
|
},
|
|
8928
8166
|
},
|
|
8167
|
+
maxStoragePerIndexInBytes: {
|
|
8168
|
+
serializedName: "maxStoragePerIndex",
|
|
8169
|
+
nullable: true,
|
|
8170
|
+
type: {
|
|
8171
|
+
name: "Number",
|
|
8172
|
+
},
|
|
8173
|
+
},
|
|
8929
8174
|
},
|
|
8930
8175
|
},
|
|
8931
8176
|
};
|
|
@@ -9015,7 +8260,7 @@ const AzureOpenAIParameters = {
|
|
|
9015
8260
|
name: "Composite",
|
|
9016
8261
|
className: "AzureOpenAIParameters",
|
|
9017
8262
|
modelProperties: {
|
|
9018
|
-
|
|
8263
|
+
resourceUrl: {
|
|
9019
8264
|
serializedName: "resourceUri",
|
|
9020
8265
|
type: {
|
|
9021
8266
|
name: "String",
|
|
@@ -9040,13 +8285,39 @@ const AzureOpenAIParameters = {
|
|
|
9040
8285
|
className: "SearchIndexerDataIdentity",
|
|
9041
8286
|
},
|
|
9042
8287
|
},
|
|
8288
|
+
modelName: {
|
|
8289
|
+
serializedName: "modelName",
|
|
8290
|
+
type: {
|
|
8291
|
+
name: "String",
|
|
8292
|
+
},
|
|
8293
|
+
},
|
|
8294
|
+
},
|
|
8295
|
+
},
|
|
8296
|
+
};
|
|
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
|
+
},
|
|
9043
8314
|
},
|
|
9044
8315
|
},
|
|
9045
8316
|
};
|
|
9046
|
-
const
|
|
8317
|
+
const WebApiParameters = {
|
|
9047
8318
|
type: {
|
|
9048
8319
|
name: "Composite",
|
|
9049
|
-
className: "
|
|
8320
|
+
className: "WebApiParameters",
|
|
9050
8321
|
modelProperties: {
|
|
9051
8322
|
uri: {
|
|
9052
8323
|
serializedName: "uri",
|
|
@@ -9170,6 +8441,22 @@ const TagScoringParameters = {
|
|
|
9170
8441
|
},
|
|
9171
8442
|
},
|
|
9172
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
|
+
};
|
|
9173
8460
|
const CustomEntity = {
|
|
9174
8461
|
type: {
|
|
9175
8462
|
name: "Composite",
|
|
@@ -9304,32 +8591,6 @@ const CustomEntityAlias = {
|
|
|
9304
8591
|
},
|
|
9305
8592
|
},
|
|
9306
8593
|
};
|
|
9307
|
-
const SearchIndexerDataNoneIdentity = {
|
|
9308
|
-
serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
|
|
9309
|
-
type: {
|
|
9310
|
-
name: "Composite",
|
|
9311
|
-
className: "SearchIndexerDataNoneIdentity",
|
|
9312
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
9313
|
-
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
9314
|
-
modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties),
|
|
9315
|
-
},
|
|
9316
|
-
};
|
|
9317
|
-
const SearchIndexerDataUserAssignedIdentity = {
|
|
9318
|
-
serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
|
|
9319
|
-
type: {
|
|
9320
|
-
name: "Composite",
|
|
9321
|
-
className: "SearchIndexerDataUserAssignedIdentity",
|
|
9322
|
-
uberParent: "SearchIndexerDataIdentity",
|
|
9323
|
-
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
9324
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
|
|
9325
|
-
serializedName: "userAssignedIdentity",
|
|
9326
|
-
required: true,
|
|
9327
|
-
type: {
|
|
9328
|
-
name: "String",
|
|
9329
|
-
},
|
|
9330
|
-
} }),
|
|
9331
|
-
},
|
|
9332
|
-
};
|
|
9333
8594
|
const HighWaterMarkChangeDetectionPolicy = {
|
|
9334
8595
|
serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
|
|
9335
8596
|
type: {
|
|
@@ -9376,16 +8637,6 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
|
|
|
9376
8637
|
} }),
|
|
9377
8638
|
},
|
|
9378
8639
|
};
|
|
9379
|
-
const NativeBlobSoftDeleteDeletionDetectionPolicy = {
|
|
9380
|
-
serializedName: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
9381
|
-
type: {
|
|
9382
|
-
name: "Composite",
|
|
9383
|
-
className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
9384
|
-
uberParent: "DataDeletionDetectionPolicy",
|
|
9385
|
-
polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
|
|
9386
|
-
modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties),
|
|
9387
|
-
},
|
|
9388
|
-
};
|
|
9389
8640
|
const ConditionalSkill = {
|
|
9390
8641
|
serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
|
|
9391
8642
|
type: {
|
|
@@ -9907,29 +9158,7 @@ const WebApiSkill = {
|
|
|
9907
9158
|
className: "WebApiSkill",
|
|
9908
9159
|
uberParent: "SearchIndexerSkill",
|
|
9909
9160
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
9910
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), {
|
|
9911
|
-
serializedName: "uri",
|
|
9912
|
-
required: true,
|
|
9913
|
-
type: {
|
|
9914
|
-
name: "String",
|
|
9915
|
-
},
|
|
9916
|
-
}, httpHeaders: {
|
|
9917
|
-
serializedName: "httpHeaders",
|
|
9918
|
-
type: {
|
|
9919
|
-
name: "Dictionary",
|
|
9920
|
-
value: { type: { name: "String" } },
|
|
9921
|
-
},
|
|
9922
|
-
}, httpMethod: {
|
|
9923
|
-
serializedName: "httpMethod",
|
|
9924
|
-
type: {
|
|
9925
|
-
name: "String",
|
|
9926
|
-
},
|
|
9927
|
-
}, timeout: {
|
|
9928
|
-
serializedName: "timeout",
|
|
9929
|
-
type: {
|
|
9930
|
-
name: "TimeSpan",
|
|
9931
|
-
},
|
|
9932
|
-
}, batchSize: {
|
|
9161
|
+
modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), WebApiParameters.type.modelProperties), { batchSize: {
|
|
9933
9162
|
serializedName: "batchSize",
|
|
9934
9163
|
nullable: true,
|
|
9935
9164
|
type: {
|
|
@@ -9941,94 +9170,21 @@ const WebApiSkill = {
|
|
|
9941
9170
|
type: {
|
|
9942
9171
|
name: "Number",
|
|
9943
9172
|
},
|
|
9944
|
-
}, authResourceId: {
|
|
9945
|
-
serializedName: "authResourceId",
|
|
9946
|
-
nullable: true,
|
|
9947
|
-
type: {
|
|
9948
|
-
name: "String",
|
|
9949
|
-
},
|
|
9950
|
-
}, authIdentity: {
|
|
9951
|
-
serializedName: "authIdentity",
|
|
9952
|
-
type: {
|
|
9953
|
-
name: "Composite",
|
|
9954
|
-
className: "SearchIndexerDataIdentity",
|
|
9955
|
-
},
|
|
9956
9173
|
} }),
|
|
9957
9174
|
},
|
|
9958
9175
|
};
|
|
9959
|
-
const
|
|
9960
|
-
serializedName: "#Microsoft.Skills.
|
|
9176
|
+
const AzureOpenAIEmbeddingSkill = {
|
|
9177
|
+
serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
|
|
9961
9178
|
type: {
|
|
9962
9179
|
name: "Composite",
|
|
9963
|
-
className: "
|
|
9180
|
+
className: "AzureOpenAIEmbeddingSkill",
|
|
9964
9181
|
uberParent: "SearchIndexerSkill",
|
|
9965
9182
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
9966
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), {
|
|
9967
|
-
serializedName: "
|
|
9968
|
-
nullable: true,
|
|
9969
|
-
type: {
|
|
9970
|
-
name: "String",
|
|
9971
|
-
},
|
|
9972
|
-
}, authenticationKey: {
|
|
9973
|
-
serializedName: "key",
|
|
9974
|
-
nullable: true,
|
|
9975
|
-
type: {
|
|
9976
|
-
name: "String",
|
|
9977
|
-
},
|
|
9978
|
-
}, resourceId: {
|
|
9979
|
-
serializedName: "resourceId",
|
|
9980
|
-
nullable: true,
|
|
9981
|
-
type: {
|
|
9982
|
-
name: "String",
|
|
9983
|
-
},
|
|
9984
|
-
}, timeout: {
|
|
9985
|
-
serializedName: "timeout",
|
|
9986
|
-
nullable: true,
|
|
9987
|
-
type: {
|
|
9988
|
-
name: "TimeSpan",
|
|
9989
|
-
},
|
|
9990
|
-
}, region: {
|
|
9991
|
-
serializedName: "region",
|
|
9183
|
+
modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), AzureOpenAIParameters.type.modelProperties), { dimensions: {
|
|
9184
|
+
serializedName: "dimensions",
|
|
9992
9185
|
nullable: true,
|
|
9993
9186
|
type: {
|
|
9994
|
-
name: "
|
|
9995
|
-
},
|
|
9996
|
-
}, degreeOfParallelism: {
|
|
9997
|
-
serializedName: "degreeOfParallelism",
|
|
9998
|
-
nullable: true,
|
|
9999
|
-
type: {
|
|
10000
|
-
name: "Number",
|
|
10001
|
-
},
|
|
10002
|
-
} }),
|
|
10003
|
-
},
|
|
10004
|
-
};
|
|
10005
|
-
const AzureOpenAIEmbeddingSkill = {
|
|
10006
|
-
serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
|
|
10007
|
-
type: {
|
|
10008
|
-
name: "Composite",
|
|
10009
|
-
className: "AzureOpenAIEmbeddingSkill",
|
|
10010
|
-
uberParent: "SearchIndexerSkill",
|
|
10011
|
-
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
10012
|
-
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { resourceUri: {
|
|
10013
|
-
serializedName: "resourceUri",
|
|
10014
|
-
type: {
|
|
10015
|
-
name: "String",
|
|
10016
|
-
},
|
|
10017
|
-
}, deploymentId: {
|
|
10018
|
-
serializedName: "deploymentId",
|
|
10019
|
-
type: {
|
|
10020
|
-
name: "String",
|
|
10021
|
-
},
|
|
10022
|
-
}, apiKey: {
|
|
10023
|
-
serializedName: "apiKey",
|
|
10024
|
-
type: {
|
|
10025
|
-
name: "String",
|
|
10026
|
-
},
|
|
10027
|
-
}, authIdentity: {
|
|
10028
|
-
serializedName: "authIdentity",
|
|
10029
|
-
type: {
|
|
10030
|
-
name: "Composite",
|
|
10031
|
-
className: "SearchIndexerDataIdentity",
|
|
9187
|
+
name: "Number",
|
|
10032
9188
|
},
|
|
10033
9189
|
} }),
|
|
10034
9190
|
},
|
|
@@ -11579,36 +10735,6 @@ const PatternReplaceCharFilter = {
|
|
|
11579
10735
|
} }),
|
|
11580
10736
|
},
|
|
11581
10737
|
};
|
|
11582
|
-
const CustomNormalizer = {
|
|
11583
|
-
serializedName: "#Microsoft.Azure.Search.CustomNormalizer",
|
|
11584
|
-
type: {
|
|
11585
|
-
name: "Composite",
|
|
11586
|
-
className: "CustomNormalizer",
|
|
11587
|
-
uberParent: "LexicalNormalizer",
|
|
11588
|
-
polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
|
|
11589
|
-
modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
|
|
11590
|
-
serializedName: "tokenFilters",
|
|
11591
|
-
type: {
|
|
11592
|
-
name: "Sequence",
|
|
11593
|
-
element: {
|
|
11594
|
-
type: {
|
|
11595
|
-
name: "String",
|
|
11596
|
-
},
|
|
11597
|
-
},
|
|
11598
|
-
},
|
|
11599
|
-
}, charFilters: {
|
|
11600
|
-
serializedName: "charFilters",
|
|
11601
|
-
type: {
|
|
11602
|
-
name: "Sequence",
|
|
11603
|
-
element: {
|
|
11604
|
-
type: {
|
|
11605
|
-
name: "String",
|
|
11606
|
-
},
|
|
11607
|
-
},
|
|
11608
|
-
},
|
|
11609
|
-
} }),
|
|
11610
|
-
},
|
|
11611
|
-
};
|
|
11612
10738
|
const ClassicSimilarity = {
|
|
11613
10739
|
serializedName: "#Microsoft.Azure.Search.ClassicSimilarity",
|
|
11614
10740
|
type: {
|
|
@@ -11680,7 +10806,7 @@ const AzureOpenAIVectorizer = {
|
|
|
11680
10806
|
className: "AzureOpenAIVectorizer",
|
|
11681
10807
|
uberParent: "VectorSearchVectorizer",
|
|
11682
10808
|
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
11683
|
-
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), {
|
|
10809
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { parameters: {
|
|
11684
10810
|
serializedName: "azureOpenAIParameters",
|
|
11685
10811
|
type: {
|
|
11686
10812
|
name: "Composite",
|
|
@@ -11689,30 +10815,30 @@ const AzureOpenAIVectorizer = {
|
|
|
11689
10815
|
} }),
|
|
11690
10816
|
},
|
|
11691
10817
|
};
|
|
11692
|
-
const
|
|
10818
|
+
const WebApiVectorizer = {
|
|
11693
10819
|
serializedName: "customWebApi",
|
|
11694
10820
|
type: {
|
|
11695
10821
|
name: "Composite",
|
|
11696
|
-
className: "
|
|
10822
|
+
className: "WebApiVectorizer",
|
|
11697
10823
|
uberParent: "VectorSearchVectorizer",
|
|
11698
10824
|
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
11699
|
-
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), {
|
|
10825
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { parameters: {
|
|
11700
10826
|
serializedName: "customWebApiParameters",
|
|
11701
10827
|
type: {
|
|
11702
10828
|
name: "Composite",
|
|
11703
|
-
className: "
|
|
10829
|
+
className: "WebApiParameters",
|
|
11704
10830
|
},
|
|
11705
10831
|
} }),
|
|
11706
10832
|
},
|
|
11707
10833
|
};
|
|
11708
|
-
const
|
|
10834
|
+
const ScalarQuantizationCompression = {
|
|
11709
10835
|
serializedName: "scalarQuantization",
|
|
11710
10836
|
type: {
|
|
11711
10837
|
name: "Composite",
|
|
11712
|
-
className: "
|
|
11713
|
-
uberParent: "
|
|
11714
|
-
polymorphicDiscriminator:
|
|
11715
|
-
modelProperties: Object.assign(Object.assign({},
|
|
10838
|
+
className: "ScalarQuantizationCompression",
|
|
10839
|
+
uberParent: "VectorSearchCompression",
|
|
10840
|
+
polymorphicDiscriminator: VectorSearchCompression.type.polymorphicDiscriminator,
|
|
10841
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchCompression.type.modelProperties), { parameters: {
|
|
11716
10842
|
serializedName: "scalarQuantizationParameters",
|
|
11717
10843
|
type: {
|
|
11718
10844
|
name: "Composite",
|
|
@@ -11721,6 +10847,42 @@ const ScalarQuantizationCompressionConfiguration = {
|
|
|
11721
10847
|
} }),
|
|
11722
10848
|
},
|
|
11723
10849
|
};
|
|
10850
|
+
const BinaryQuantizationCompression = {
|
|
10851
|
+
serializedName: "binaryQuantization",
|
|
10852
|
+
type: {
|
|
10853
|
+
name: "Composite",
|
|
10854
|
+
className: "BinaryQuantizationCompression",
|
|
10855
|
+
uberParent: "VectorSearchCompression",
|
|
10856
|
+
polymorphicDiscriminator: VectorSearchCompression.type.polymorphicDiscriminator,
|
|
10857
|
+
modelProperties: Object.assign({}, VectorSearchCompression.type.modelProperties),
|
|
10858
|
+
},
|
|
10859
|
+
};
|
|
10860
|
+
const SearchIndexerDataNoneIdentity = {
|
|
10861
|
+
serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
|
|
10862
|
+
type: {
|
|
10863
|
+
name: "Composite",
|
|
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,
|
|
10880
|
+
type: {
|
|
10881
|
+
name: "String",
|
|
10882
|
+
},
|
|
10883
|
+
} }),
|
|
10884
|
+
},
|
|
10885
|
+
};
|
|
11724
10886
|
const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
|
|
11725
10887
|
type: {
|
|
11726
10888
|
name: "Composite",
|
|
@@ -11738,7 +10900,6 @@ const SearchIndexerKnowledgeStoreFileProjectionSelector = {
|
|
|
11738
10900
|
},
|
|
11739
10901
|
};
|
|
11740
10902
|
let discriminators = {
|
|
11741
|
-
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
11742
10903
|
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
11743
10904
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
11744
10905
|
SearchIndexerSkill: SearchIndexerSkill,
|
|
@@ -11748,17 +10909,14 @@ let discriminators = {
|
|
|
11748
10909
|
LexicalTokenizer: LexicalTokenizer,
|
|
11749
10910
|
TokenFilter: TokenFilter,
|
|
11750
10911
|
CharFilter: CharFilter,
|
|
11751
|
-
LexicalNormalizer: LexicalNormalizer,
|
|
11752
10912
|
Similarity: Similarity,
|
|
11753
10913
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
11754
10914
|
VectorSearchVectorizer: VectorSearchVectorizer,
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
|
|
10915
|
+
VectorSearchCompression: VectorSearchCompression,
|
|
10916
|
+
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
11758
10917
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
|
|
11759
10918
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
|
|
11760
10919
|
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
|
|
11761
|
-
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
|
|
11762
10920
|
"SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
|
|
11763
10921
|
"SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
|
|
11764
10922
|
"SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
|
|
@@ -11777,7 +10935,6 @@ let discriminators = {
|
|
|
11777
10935
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
11778
10936
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
11779
10937
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
11780
|
-
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
11781
10938
|
"SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
|
|
11782
10939
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
11783
10940
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
@@ -11828,14 +10985,16 @@ let discriminators = {
|
|
|
11828
10985
|
"TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter,
|
|
11829
10986
|
"CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter,
|
|
11830
10987
|
"CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
|
|
11831
|
-
"LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
|
|
11832
10988
|
"Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
|
|
11833
10989
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
|
|
11834
10990
|
"VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
|
|
11835
10991
|
"VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration,
|
|
11836
10992
|
"VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
|
|
11837
|
-
"VectorSearchVectorizer.customWebApi":
|
|
11838
|
-
"
|
|
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,
|
|
11839
10998
|
};
|
|
11840
10999
|
|
|
11841
11000
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
@@ -11845,12 +11004,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11845
11004
|
AnalyzedTokenInfo: AnalyzedTokenInfo,
|
|
11846
11005
|
AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
|
|
11847
11006
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
11848
|
-
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
11849
11007
|
AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
|
|
11850
11008
|
AzureOpenAIParameters: AzureOpenAIParameters,
|
|
11851
11009
|
AzureOpenAIVectorizer: AzureOpenAIVectorizer,
|
|
11852
11010
|
BM25Similarity: BM25Similarity,
|
|
11853
|
-
|
|
11011
|
+
BinaryQuantizationCompression: BinaryQuantizationCompression,
|
|
11854
11012
|
CharFilter: CharFilter,
|
|
11855
11013
|
CjkBigramTokenFilter: CjkBigramTokenFilter,
|
|
11856
11014
|
ClassicSimilarity: ClassicSimilarity,
|
|
@@ -11864,9 +11022,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11864
11022
|
CustomEntity: CustomEntity,
|
|
11865
11023
|
CustomEntityAlias: CustomEntityAlias,
|
|
11866
11024
|
CustomEntityLookupSkill: CustomEntityLookupSkill,
|
|
11867
|
-
CustomNormalizer: CustomNormalizer,
|
|
11868
|
-
CustomVectorizer: CustomVectorizer,
|
|
11869
|
-
CustomWebApiParameters: CustomWebApiParameters,
|
|
11870
11025
|
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
11871
11026
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
11872
11027
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -11875,7 +11030,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11875
11030
|
DistanceScoringFunction: DistanceScoringFunction,
|
|
11876
11031
|
DistanceScoringParameters: DistanceScoringParameters,
|
|
11877
11032
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
11878
|
-
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
11879
11033
|
EdgeNGramTokenFilter: EdgeNGramTokenFilter,
|
|
11880
11034
|
EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
|
|
11881
11035
|
EdgeNGramTokenizer: EdgeNGramTokenizer,
|
|
@@ -11898,7 +11052,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11898
11052
|
HnswParameters: HnswParameters,
|
|
11899
11053
|
ImageAnalysisSkill: ImageAnalysisSkill,
|
|
11900
11054
|
IndexerExecutionResult: IndexerExecutionResult,
|
|
11901
|
-
IndexerState: IndexerState,
|
|
11902
11055
|
IndexingParameters: IndexingParameters,
|
|
11903
11056
|
IndexingParametersConfiguration: IndexingParametersConfiguration,
|
|
11904
11057
|
IndexingSchedule: IndexingSchedule,
|
|
@@ -11911,10 +11064,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11911
11064
|
LanguageDetectionSkill: LanguageDetectionSkill,
|
|
11912
11065
|
LengthTokenFilter: LengthTokenFilter,
|
|
11913
11066
|
LexicalAnalyzer: LexicalAnalyzer,
|
|
11914
|
-
LexicalNormalizer: LexicalNormalizer,
|
|
11915
11067
|
LexicalTokenizer: LexicalTokenizer,
|
|
11916
11068
|
LimitTokenFilter: LimitTokenFilter,
|
|
11917
|
-
ListAliasesResult: ListAliasesResult,
|
|
11918
11069
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
11919
11070
|
ListIndexersResult: ListIndexersResult,
|
|
11920
11071
|
ListIndexesResult: ListIndexesResult,
|
|
@@ -11932,7 +11083,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11932
11083
|
NGramTokenFilter: NGramTokenFilter,
|
|
11933
11084
|
NGramTokenFilterV2: NGramTokenFilterV2,
|
|
11934
11085
|
NGramTokenizer: NGramTokenizer,
|
|
11935
|
-
NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
|
|
11936
11086
|
OcrSkill: OcrSkill,
|
|
11937
11087
|
OutputFieldMappingEntry: OutputFieldMappingEntry,
|
|
11938
11088
|
PIIDetectionSkill: PIIDetectionSkill,
|
|
@@ -11944,24 +11094,22 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11944
11094
|
PatternTokenizer: PatternTokenizer,
|
|
11945
11095
|
PhoneticTokenFilter: PhoneticTokenFilter,
|
|
11946
11096
|
ResourceCounter: ResourceCounter,
|
|
11947
|
-
|
|
11097
|
+
ScalarQuantizationCompression: ScalarQuantizationCompression,
|
|
11948
11098
|
ScalarQuantizationParameters: ScalarQuantizationParameters,
|
|
11949
11099
|
ScoringFunction: ScoringFunction,
|
|
11950
11100
|
ScoringProfile: ScoringProfile,
|
|
11951
|
-
SearchAlias: SearchAlias,
|
|
11952
11101
|
SearchField: SearchField,
|
|
11953
11102
|
SearchIndex: SearchIndex,
|
|
11954
11103
|
SearchIndexer: SearchIndexer,
|
|
11955
|
-
SearchIndexerCache: SearchIndexerCache,
|
|
11956
11104
|
SearchIndexerDataContainer: SearchIndexerDataContainer,
|
|
11957
11105
|
SearchIndexerDataIdentity: SearchIndexerDataIdentity,
|
|
11958
11106
|
SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
|
|
11959
11107
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
11960
11108
|
SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
|
|
11961
11109
|
SearchIndexerError: SearchIndexerError,
|
|
11110
|
+
SearchIndexerIndexProjection: SearchIndexerIndexProjection,
|
|
11111
|
+
SearchIndexerIndexProjectionParameters: SearchIndexerIndexProjectionParameters,
|
|
11962
11112
|
SearchIndexerIndexProjectionSelector: SearchIndexerIndexProjectionSelector,
|
|
11963
|
-
SearchIndexerIndexProjections: SearchIndexerIndexProjections,
|
|
11964
|
-
SearchIndexerIndexProjectionsParameters: SearchIndexerIndexProjectionsParameters,
|
|
11965
11113
|
SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
|
|
11966
11114
|
SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
|
|
11967
11115
|
SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
|
|
@@ -11988,7 +11136,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
11988
11136
|
ShaperSkill: ShaperSkill,
|
|
11989
11137
|
ShingleTokenFilter: ShingleTokenFilter,
|
|
11990
11138
|
Similarity: Similarity,
|
|
11991
|
-
SkillNames: SkillNames,
|
|
11992
11139
|
SnowballTokenFilter: SnowballTokenFilter,
|
|
11993
11140
|
SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
|
|
11994
11141
|
SplitSkill: SplitSkill,
|
|
@@ -12010,9 +11157,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
12010
11157
|
UniqueTokenFilter: UniqueTokenFilter,
|
|
12011
11158
|
VectorSearch: VectorSearch,
|
|
12012
11159
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
11160
|
+
VectorSearchCompression: VectorSearchCompression,
|
|
12013
11161
|
VectorSearchProfile: VectorSearchProfile,
|
|
12014
11162
|
VectorSearchVectorizer: VectorSearchVectorizer,
|
|
11163
|
+
WebApiParameters: WebApiParameters,
|
|
12015
11164
|
WebApiSkill: WebApiSkill,
|
|
11165
|
+
WebApiVectorizer: WebApiVectorizer,
|
|
12016
11166
|
WordDelimiterTokenFilter: WordDelimiterTokenFilter,
|
|
12017
11167
|
discriminators: discriminators
|
|
12018
11168
|
});
|
|
@@ -12110,15 +11260,6 @@ const apiVersion = {
|
|
|
12110
11260
|
},
|
|
12111
11261
|
},
|
|
12112
11262
|
};
|
|
12113
|
-
const skipIndexerResetRequirementForCache = {
|
|
12114
|
-
parameterPath: ["options", "skipIndexerResetRequirementForCache"],
|
|
12115
|
-
mapper: {
|
|
12116
|
-
serializedName: "ignoreResetRequirements",
|
|
12117
|
-
type: {
|
|
12118
|
-
name: "Boolean",
|
|
12119
|
-
},
|
|
12120
|
-
},
|
|
12121
|
-
};
|
|
12122
11263
|
const select = {
|
|
12123
11264
|
parameterPath: ["options", "select"],
|
|
12124
11265
|
mapper: {
|
|
@@ -12138,33 +11279,10 @@ const indexerName = {
|
|
|
12138
11279
|
},
|
|
12139
11280
|
},
|
|
12140
11281
|
};
|
|
12141
|
-
const keysOrIds = {
|
|
12142
|
-
parameterPath: ["options", "keysOrIds"],
|
|
12143
|
-
mapper: DocumentKeysOrIds,
|
|
12144
|
-
};
|
|
12145
|
-
const overwrite = {
|
|
12146
|
-
parameterPath: ["options", "overwrite"],
|
|
12147
|
-
mapper: {
|
|
12148
|
-
defaultValue: false,
|
|
12149
|
-
serializedName: "overwrite",
|
|
12150
|
-
type: {
|
|
12151
|
-
name: "Boolean",
|
|
12152
|
-
},
|
|
12153
|
-
},
|
|
12154
|
-
};
|
|
12155
11282
|
const indexer = {
|
|
12156
11283
|
parameterPath: "indexer",
|
|
12157
11284
|
mapper: SearchIndexer,
|
|
12158
11285
|
};
|
|
12159
|
-
const disableCacheReprocessingChangeDetection = {
|
|
12160
|
-
parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
|
|
12161
|
-
mapper: {
|
|
12162
|
-
serializedName: "disableCacheReprocessingChangeDetection",
|
|
12163
|
-
type: {
|
|
12164
|
-
name: "Boolean",
|
|
12165
|
-
},
|
|
12166
|
-
},
|
|
12167
|
-
};
|
|
12168
11286
|
const skillset = {
|
|
12169
11287
|
parameterPath: "skillset",
|
|
12170
11288
|
mapper: SearchIndexerSkillset,
|
|
@@ -12179,10 +11297,6 @@ const skillsetName = {
|
|
|
12179
11297
|
},
|
|
12180
11298
|
},
|
|
12181
11299
|
};
|
|
12182
|
-
const skillNames = {
|
|
12183
|
-
parameterPath: "skillNames",
|
|
12184
|
-
mapper: SkillNames,
|
|
12185
|
-
};
|
|
12186
11300
|
const synonymMap = {
|
|
12187
11301
|
parameterPath: "synonymMap",
|
|
12188
11302
|
mapper: SynonymMap,
|
|
@@ -12224,20 +11338,6 @@ const request = {
|
|
|
12224
11338
|
parameterPath: "request",
|
|
12225
11339
|
mapper: AnalyzeRequest,
|
|
12226
11340
|
};
|
|
12227
|
-
const alias = {
|
|
12228
|
-
parameterPath: "alias",
|
|
12229
|
-
mapper: SearchAlias,
|
|
12230
|
-
};
|
|
12231
|
-
const aliasName = {
|
|
12232
|
-
parameterPath: "aliasName",
|
|
12233
|
-
mapper: {
|
|
12234
|
-
serializedName: "aliasName",
|
|
12235
|
-
required: true,
|
|
12236
|
-
type: {
|
|
12237
|
-
name: "String",
|
|
12238
|
-
},
|
|
12239
|
-
},
|
|
12240
|
-
};
|
|
12241
11341
|
|
|
12242
11342
|
/*
|
|
12243
11343
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -12262,7 +11362,7 @@ class DataSourcesImpl {
|
|
|
12262
11362
|
* @param options The options parameters.
|
|
12263
11363
|
*/
|
|
12264
11364
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
12265
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$
|
|
11365
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
12266
11366
|
}
|
|
12267
11367
|
/**
|
|
12268
11368
|
* Deletes a datasource.
|
|
@@ -12270,7 +11370,7 @@ class DataSourcesImpl {
|
|
|
12270
11370
|
* @param options The options parameters.
|
|
12271
11371
|
*/
|
|
12272
11372
|
delete(dataSourceName, options) {
|
|
12273
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$
|
|
11373
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
12274
11374
|
}
|
|
12275
11375
|
/**
|
|
12276
11376
|
* Retrieves a datasource definition.
|
|
@@ -12278,14 +11378,14 @@ class DataSourcesImpl {
|
|
|
12278
11378
|
* @param options The options parameters.
|
|
12279
11379
|
*/
|
|
12280
11380
|
get(dataSourceName, options) {
|
|
12281
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
11381
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
12282
11382
|
}
|
|
12283
11383
|
/**
|
|
12284
11384
|
* Lists all datasources available for a search service.
|
|
12285
11385
|
* @param options The options parameters.
|
|
12286
11386
|
*/
|
|
12287
11387
|
list(options) {
|
|
12288
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11388
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
12289
11389
|
}
|
|
12290
11390
|
/**
|
|
12291
11391
|
* Creates a new datasource.
|
|
@@ -12293,12 +11393,12 @@ class DataSourcesImpl {
|
|
|
12293
11393
|
* @param options The options parameters.
|
|
12294
11394
|
*/
|
|
12295
11395
|
create(dataSource, options) {
|
|
12296
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$
|
|
11396
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
12297
11397
|
}
|
|
12298
11398
|
}
|
|
12299
11399
|
// Operation Specifications
|
|
12300
|
-
const serializer$
|
|
12301
|
-
const createOrUpdateOperationSpec$
|
|
11400
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11401
|
+
const createOrUpdateOperationSpec$4 = {
|
|
12302
11402
|
path: "/datasources('{dataSourceName}')",
|
|
12303
11403
|
httpMethod: "PUT",
|
|
12304
11404
|
responses: {
|
|
@@ -12313,10 +11413,7 @@ const createOrUpdateOperationSpec$5 = {
|
|
|
12313
11413
|
},
|
|
12314
11414
|
},
|
|
12315
11415
|
requestBody: dataSource,
|
|
12316
|
-
queryParameters: [
|
|
12317
|
-
apiVersion,
|
|
12318
|
-
skipIndexerResetRequirementForCache,
|
|
12319
|
-
],
|
|
11416
|
+
queryParameters: [apiVersion],
|
|
12320
11417
|
urlParameters: [endpoint, dataSourceName],
|
|
12321
11418
|
headerParameters: [
|
|
12322
11419
|
contentType,
|
|
@@ -12326,9 +11423,9 @@ const createOrUpdateOperationSpec$5 = {
|
|
|
12326
11423
|
prefer,
|
|
12327
11424
|
],
|
|
12328
11425
|
mediaType: "json",
|
|
12329
|
-
serializer: serializer$
|
|
11426
|
+
serializer: serializer$5,
|
|
12330
11427
|
};
|
|
12331
|
-
const deleteOperationSpec$
|
|
11428
|
+
const deleteOperationSpec$4 = {
|
|
12332
11429
|
path: "/datasources('{dataSourceName}')",
|
|
12333
11430
|
httpMethod: "DELETE",
|
|
12334
11431
|
responses: {
|
|
@@ -12345,9 +11442,9 @@ const deleteOperationSpec$5 = {
|
|
|
12345
11442
|
ifMatch,
|
|
12346
11443
|
ifNoneMatch,
|
|
12347
11444
|
],
|
|
12348
|
-
serializer: serializer$
|
|
11445
|
+
serializer: serializer$5,
|
|
12349
11446
|
};
|
|
12350
|
-
const getOperationSpec$
|
|
11447
|
+
const getOperationSpec$4 = {
|
|
12351
11448
|
path: "/datasources('{dataSourceName}')",
|
|
12352
11449
|
httpMethod: "GET",
|
|
12353
11450
|
responses: {
|
|
@@ -12361,9 +11458,9 @@ const getOperationSpec$5 = {
|
|
|
12361
11458
|
queryParameters: [apiVersion],
|
|
12362
11459
|
urlParameters: [endpoint, dataSourceName],
|
|
12363
11460
|
headerParameters: [accept],
|
|
12364
|
-
serializer: serializer$
|
|
11461
|
+
serializer: serializer$5,
|
|
12365
11462
|
};
|
|
12366
|
-
const listOperationSpec$
|
|
11463
|
+
const listOperationSpec$4 = {
|
|
12367
11464
|
path: "/datasources",
|
|
12368
11465
|
httpMethod: "GET",
|
|
12369
11466
|
responses: {
|
|
@@ -12377,9 +11474,9 @@ const listOperationSpec$5 = {
|
|
|
12377
11474
|
queryParameters: [apiVersion, select],
|
|
12378
11475
|
urlParameters: [endpoint],
|
|
12379
11476
|
headerParameters: [accept],
|
|
12380
|
-
serializer: serializer$
|
|
11477
|
+
serializer: serializer$5,
|
|
12381
11478
|
};
|
|
12382
|
-
const createOperationSpec$
|
|
11479
|
+
const createOperationSpec$4 = {
|
|
12383
11480
|
path: "/datasources",
|
|
12384
11481
|
httpMethod: "POST",
|
|
12385
11482
|
responses: {
|
|
@@ -12395,7 +11492,7 @@ const createOperationSpec$5 = {
|
|
|
12395
11492
|
urlParameters: [endpoint],
|
|
12396
11493
|
headerParameters: [contentType, accept],
|
|
12397
11494
|
mediaType: "json",
|
|
12398
|
-
serializer: serializer$
|
|
11495
|
+
serializer: serializer$5,
|
|
12399
11496
|
};
|
|
12400
11497
|
|
|
12401
11498
|
/*
|
|
@@ -12422,14 +11519,6 @@ class IndexersImpl {
|
|
|
12422
11519
|
reset(indexerName, options) {
|
|
12423
11520
|
return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
|
|
12424
11521
|
}
|
|
12425
|
-
/**
|
|
12426
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
12427
|
-
* @param indexerName The name of the indexer to reset documents for.
|
|
12428
|
-
* @param options The options parameters.
|
|
12429
|
-
*/
|
|
12430
|
-
resetDocs(indexerName, options) {
|
|
12431
|
-
return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
|
|
12432
|
-
}
|
|
12433
11522
|
/**
|
|
12434
11523
|
* Runs an indexer on-demand.
|
|
12435
11524
|
* @param indexerName The name of the indexer to run.
|
|
@@ -12445,7 +11534,7 @@ class IndexersImpl {
|
|
|
12445
11534
|
* @param options The options parameters.
|
|
12446
11535
|
*/
|
|
12447
11536
|
createOrUpdate(indexerName, indexer, options) {
|
|
12448
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
11537
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
12449
11538
|
}
|
|
12450
11539
|
/**
|
|
12451
11540
|
* Deletes an indexer.
|
|
@@ -12453,7 +11542,7 @@ class IndexersImpl {
|
|
|
12453
11542
|
* @param options The options parameters.
|
|
12454
11543
|
*/
|
|
12455
11544
|
delete(indexerName, options) {
|
|
12456
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
11545
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
12457
11546
|
}
|
|
12458
11547
|
/**
|
|
12459
11548
|
* Retrieves an indexer definition.
|
|
@@ -12461,14 +11550,14 @@ class IndexersImpl {
|
|
|
12461
11550
|
* @param options The options parameters.
|
|
12462
11551
|
*/
|
|
12463
11552
|
get(indexerName, options) {
|
|
12464
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
11553
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
12465
11554
|
}
|
|
12466
11555
|
/**
|
|
12467
11556
|
* Lists all indexers available for a search service.
|
|
12468
11557
|
* @param options The options parameters.
|
|
12469
11558
|
*/
|
|
12470
11559
|
list(options) {
|
|
12471
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11560
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
12472
11561
|
}
|
|
12473
11562
|
/**
|
|
12474
11563
|
* Creates a new indexer.
|
|
@@ -12476,7 +11565,7 @@ class IndexersImpl {
|
|
|
12476
11565
|
* @param options The options parameters.
|
|
12477
11566
|
*/
|
|
12478
11567
|
create(indexer, options) {
|
|
12479
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
11568
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
12480
11569
|
}
|
|
12481
11570
|
/**
|
|
12482
11571
|
* Returns the current status and execution history of an indexer.
|
|
@@ -12488,7 +11577,7 @@ class IndexersImpl {
|
|
|
12488
11577
|
}
|
|
12489
11578
|
}
|
|
12490
11579
|
// Operation Specifications
|
|
12491
|
-
const serializer$
|
|
11580
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
12492
11581
|
const resetOperationSpec = {
|
|
12493
11582
|
path: "/indexers('{indexerName}')/search.reset",
|
|
12494
11583
|
httpMethod: "POST",
|
|
@@ -12501,23 +11590,7 @@ const resetOperationSpec = {
|
|
|
12501
11590
|
queryParameters: [apiVersion],
|
|
12502
11591
|
urlParameters: [endpoint, indexerName],
|
|
12503
11592
|
headerParameters: [accept],
|
|
12504
|
-
serializer: serializer$
|
|
12505
|
-
};
|
|
12506
|
-
const resetDocsOperationSpec = {
|
|
12507
|
-
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
12508
|
-
httpMethod: "POST",
|
|
12509
|
-
responses: {
|
|
12510
|
-
204: {},
|
|
12511
|
-
default: {
|
|
12512
|
-
bodyMapper: ErrorResponse,
|
|
12513
|
-
},
|
|
12514
|
-
},
|
|
12515
|
-
requestBody: keysOrIds,
|
|
12516
|
-
queryParameters: [apiVersion, overwrite],
|
|
12517
|
-
urlParameters: [endpoint, indexerName],
|
|
12518
|
-
headerParameters: [contentType, accept],
|
|
12519
|
-
mediaType: "json",
|
|
12520
|
-
serializer: serializer$5,
|
|
11593
|
+
serializer: serializer$4,
|
|
12521
11594
|
};
|
|
12522
11595
|
const runOperationSpec = {
|
|
12523
11596
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -12531,9 +11604,9 @@ const runOperationSpec = {
|
|
|
12531
11604
|
queryParameters: [apiVersion],
|
|
12532
11605
|
urlParameters: [endpoint, indexerName],
|
|
12533
11606
|
headerParameters: [accept],
|
|
12534
|
-
serializer: serializer$
|
|
11607
|
+
serializer: serializer$4,
|
|
12535
11608
|
};
|
|
12536
|
-
const createOrUpdateOperationSpec$
|
|
11609
|
+
const createOrUpdateOperationSpec$3 = {
|
|
12537
11610
|
path: "/indexers('{indexerName}')",
|
|
12538
11611
|
httpMethod: "PUT",
|
|
12539
11612
|
responses: {
|
|
@@ -12548,11 +11621,7 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
12548
11621
|
},
|
|
12549
11622
|
},
|
|
12550
11623
|
requestBody: indexer,
|
|
12551
|
-
queryParameters: [
|
|
12552
|
-
apiVersion,
|
|
12553
|
-
skipIndexerResetRequirementForCache,
|
|
12554
|
-
disableCacheReprocessingChangeDetection,
|
|
12555
|
-
],
|
|
11624
|
+
queryParameters: [apiVersion],
|
|
12556
11625
|
urlParameters: [endpoint, indexerName],
|
|
12557
11626
|
headerParameters: [
|
|
12558
11627
|
contentType,
|
|
@@ -12562,9 +11631,9 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
12562
11631
|
prefer,
|
|
12563
11632
|
],
|
|
12564
11633
|
mediaType: "json",
|
|
12565
|
-
serializer: serializer$
|
|
11634
|
+
serializer: serializer$4,
|
|
12566
11635
|
};
|
|
12567
|
-
const deleteOperationSpec$
|
|
11636
|
+
const deleteOperationSpec$3 = {
|
|
12568
11637
|
path: "/indexers('{indexerName}')",
|
|
12569
11638
|
httpMethod: "DELETE",
|
|
12570
11639
|
responses: {
|
|
@@ -12581,9 +11650,9 @@ const deleteOperationSpec$4 = {
|
|
|
12581
11650
|
ifMatch,
|
|
12582
11651
|
ifNoneMatch,
|
|
12583
11652
|
],
|
|
12584
|
-
serializer: serializer$
|
|
11653
|
+
serializer: serializer$4,
|
|
12585
11654
|
};
|
|
12586
|
-
const getOperationSpec$
|
|
11655
|
+
const getOperationSpec$3 = {
|
|
12587
11656
|
path: "/indexers('{indexerName}')",
|
|
12588
11657
|
httpMethod: "GET",
|
|
12589
11658
|
responses: {
|
|
@@ -12597,9 +11666,9 @@ const getOperationSpec$4 = {
|
|
|
12597
11666
|
queryParameters: [apiVersion],
|
|
12598
11667
|
urlParameters: [endpoint, indexerName],
|
|
12599
11668
|
headerParameters: [accept],
|
|
12600
|
-
serializer: serializer$
|
|
11669
|
+
serializer: serializer$4,
|
|
12601
11670
|
};
|
|
12602
|
-
const listOperationSpec$
|
|
11671
|
+
const listOperationSpec$3 = {
|
|
12603
11672
|
path: "/indexers",
|
|
12604
11673
|
httpMethod: "GET",
|
|
12605
11674
|
responses: {
|
|
@@ -12613,9 +11682,9 @@ const listOperationSpec$4 = {
|
|
|
12613
11682
|
queryParameters: [apiVersion, select],
|
|
12614
11683
|
urlParameters: [endpoint],
|
|
12615
11684
|
headerParameters: [accept],
|
|
12616
|
-
serializer: serializer$
|
|
11685
|
+
serializer: serializer$4,
|
|
12617
11686
|
};
|
|
12618
|
-
const createOperationSpec$
|
|
11687
|
+
const createOperationSpec$3 = {
|
|
12619
11688
|
path: "/indexers",
|
|
12620
11689
|
httpMethod: "POST",
|
|
12621
11690
|
responses: {
|
|
@@ -12631,7 +11700,7 @@ const createOperationSpec$4 = {
|
|
|
12631
11700
|
urlParameters: [endpoint],
|
|
12632
11701
|
headerParameters: [contentType, accept],
|
|
12633
11702
|
mediaType: "json",
|
|
12634
|
-
serializer: serializer$
|
|
11703
|
+
serializer: serializer$4,
|
|
12635
11704
|
};
|
|
12636
11705
|
const getStatusOperationSpec = {
|
|
12637
11706
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -12647,7 +11716,7 @@ const getStatusOperationSpec = {
|
|
|
12647
11716
|
queryParameters: [apiVersion],
|
|
12648
11717
|
urlParameters: [endpoint, indexerName],
|
|
12649
11718
|
headerParameters: [accept],
|
|
12650
|
-
serializer: serializer$
|
|
11719
|
+
serializer: serializer$4,
|
|
12651
11720
|
};
|
|
12652
11721
|
|
|
12653
11722
|
/*
|
|
@@ -12673,7 +11742,7 @@ class SkillsetsImpl {
|
|
|
12673
11742
|
* @param options The options parameters.
|
|
12674
11743
|
*/
|
|
12675
11744
|
createOrUpdate(skillsetName, skillset, options) {
|
|
12676
|
-
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$
|
|
11745
|
+
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
|
|
12677
11746
|
}
|
|
12678
11747
|
/**
|
|
12679
11748
|
* Deletes a skillset in a search service.
|
|
@@ -12681,7 +11750,7 @@ class SkillsetsImpl {
|
|
|
12681
11750
|
* @param options The options parameters.
|
|
12682
11751
|
*/
|
|
12683
11752
|
delete(skillsetName, options) {
|
|
12684
|
-
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$
|
|
11753
|
+
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
|
|
12685
11754
|
}
|
|
12686
11755
|
/**
|
|
12687
11756
|
* Retrieves a skillset in a search service.
|
|
@@ -12689,14 +11758,14 @@ class SkillsetsImpl {
|
|
|
12689
11758
|
* @param options The options parameters.
|
|
12690
11759
|
*/
|
|
12691
11760
|
get(skillsetName, options) {
|
|
12692
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
11761
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
12693
11762
|
}
|
|
12694
11763
|
/**
|
|
12695
11764
|
* List all skillsets in a search service.
|
|
12696
11765
|
* @param options The options parameters.
|
|
12697
11766
|
*/
|
|
12698
11767
|
list(options) {
|
|
12699
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11768
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
12700
11769
|
}
|
|
12701
11770
|
/**
|
|
12702
11771
|
* Creates a new skillset in a search service.
|
|
@@ -12704,21 +11773,12 @@ class SkillsetsImpl {
|
|
|
12704
11773
|
* @param options The options parameters.
|
|
12705
11774
|
*/
|
|
12706
11775
|
create(skillset, options) {
|
|
12707
|
-
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$
|
|
12708
|
-
}
|
|
12709
|
-
/**
|
|
12710
|
-
* Reset an existing skillset in a search service.
|
|
12711
|
-
* @param skillsetName The name of the skillset to reset.
|
|
12712
|
-
* @param skillNames The names of skills to reset.
|
|
12713
|
-
* @param options The options parameters.
|
|
12714
|
-
*/
|
|
12715
|
-
resetSkills(skillsetName, skillNames, options) {
|
|
12716
|
-
return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
|
|
11776
|
+
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
|
|
12717
11777
|
}
|
|
12718
11778
|
}
|
|
12719
11779
|
// Operation Specifications
|
|
12720
|
-
const serializer$
|
|
12721
|
-
const createOrUpdateOperationSpec$
|
|
11780
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11781
|
+
const createOrUpdateOperationSpec$2 = {
|
|
12722
11782
|
path: "/skillsets('{skillsetName}')",
|
|
12723
11783
|
httpMethod: "PUT",
|
|
12724
11784
|
responses: {
|
|
@@ -12733,11 +11793,7 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
12733
11793
|
},
|
|
12734
11794
|
},
|
|
12735
11795
|
requestBody: skillset,
|
|
12736
|
-
queryParameters: [
|
|
12737
|
-
apiVersion,
|
|
12738
|
-
skipIndexerResetRequirementForCache,
|
|
12739
|
-
disableCacheReprocessingChangeDetection,
|
|
12740
|
-
],
|
|
11796
|
+
queryParameters: [apiVersion],
|
|
12741
11797
|
urlParameters: [endpoint, skillsetName],
|
|
12742
11798
|
headerParameters: [
|
|
12743
11799
|
contentType,
|
|
@@ -12747,9 +11803,9 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
12747
11803
|
prefer,
|
|
12748
11804
|
],
|
|
12749
11805
|
mediaType: "json",
|
|
12750
|
-
serializer: serializer$
|
|
11806
|
+
serializer: serializer$3,
|
|
12751
11807
|
};
|
|
12752
|
-
const deleteOperationSpec$
|
|
11808
|
+
const deleteOperationSpec$2 = {
|
|
12753
11809
|
path: "/skillsets('{skillsetName}')",
|
|
12754
11810
|
httpMethod: "DELETE",
|
|
12755
11811
|
responses: {
|
|
@@ -12766,9 +11822,9 @@ const deleteOperationSpec$3 = {
|
|
|
12766
11822
|
ifMatch,
|
|
12767
11823
|
ifNoneMatch,
|
|
12768
11824
|
],
|
|
12769
|
-
serializer: serializer$
|
|
11825
|
+
serializer: serializer$3,
|
|
12770
11826
|
};
|
|
12771
|
-
const getOperationSpec$
|
|
11827
|
+
const getOperationSpec$2 = {
|
|
12772
11828
|
path: "/skillsets('{skillsetName}')",
|
|
12773
11829
|
httpMethod: "GET",
|
|
12774
11830
|
responses: {
|
|
@@ -12782,9 +11838,9 @@ const getOperationSpec$3 = {
|
|
|
12782
11838
|
queryParameters: [apiVersion],
|
|
12783
11839
|
urlParameters: [endpoint, skillsetName],
|
|
12784
11840
|
headerParameters: [accept],
|
|
12785
|
-
serializer: serializer$
|
|
11841
|
+
serializer: serializer$3,
|
|
12786
11842
|
};
|
|
12787
|
-
const listOperationSpec$
|
|
11843
|
+
const listOperationSpec$2 = {
|
|
12788
11844
|
path: "/skillsets",
|
|
12789
11845
|
httpMethod: "GET",
|
|
12790
11846
|
responses: {
|
|
@@ -12798,9 +11854,9 @@ const listOperationSpec$3 = {
|
|
|
12798
11854
|
queryParameters: [apiVersion, select],
|
|
12799
11855
|
urlParameters: [endpoint],
|
|
12800
11856
|
headerParameters: [accept],
|
|
12801
|
-
serializer: serializer$
|
|
11857
|
+
serializer: serializer$3,
|
|
12802
11858
|
};
|
|
12803
|
-
const createOperationSpec$
|
|
11859
|
+
const createOperationSpec$2 = {
|
|
12804
11860
|
path: "/skillsets",
|
|
12805
11861
|
httpMethod: "POST",
|
|
12806
11862
|
responses: {
|
|
@@ -12816,23 +11872,7 @@ const createOperationSpec$3 = {
|
|
|
12816
11872
|
urlParameters: [endpoint],
|
|
12817
11873
|
headerParameters: [contentType, accept],
|
|
12818
11874
|
mediaType: "json",
|
|
12819
|
-
serializer: serializer$
|
|
12820
|
-
};
|
|
12821
|
-
const resetSkillsOperationSpec = {
|
|
12822
|
-
path: "/skillsets('{skillsetName}')/search.resetskills",
|
|
12823
|
-
httpMethod: "POST",
|
|
12824
|
-
responses: {
|
|
12825
|
-
204: {},
|
|
12826
|
-
default: {
|
|
12827
|
-
bodyMapper: ErrorResponse,
|
|
12828
|
-
},
|
|
12829
|
-
},
|
|
12830
|
-
requestBody: skillNames,
|
|
12831
|
-
queryParameters: [apiVersion],
|
|
12832
|
-
urlParameters: [endpoint, skillsetName],
|
|
12833
|
-
headerParameters: [contentType, accept],
|
|
12834
|
-
mediaType: "json",
|
|
12835
|
-
serializer: serializer$4,
|
|
11875
|
+
serializer: serializer$3,
|
|
12836
11876
|
};
|
|
12837
11877
|
|
|
12838
11878
|
/*
|
|
@@ -12858,7 +11898,7 @@ class SynonymMapsImpl {
|
|
|
12858
11898
|
* @param options The options parameters.
|
|
12859
11899
|
*/
|
|
12860
11900
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
12861
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
11901
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
12862
11902
|
}
|
|
12863
11903
|
/**
|
|
12864
11904
|
* Deletes a synonym map.
|
|
@@ -12866,7 +11906,7 @@ class SynonymMapsImpl {
|
|
|
12866
11906
|
* @param options The options parameters.
|
|
12867
11907
|
*/
|
|
12868
11908
|
delete(synonymMapName, options) {
|
|
12869
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
11909
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
12870
11910
|
}
|
|
12871
11911
|
/**
|
|
12872
11912
|
* Retrieves a synonym map definition.
|
|
@@ -12874,14 +11914,14 @@ class SynonymMapsImpl {
|
|
|
12874
11914
|
* @param options The options parameters.
|
|
12875
11915
|
*/
|
|
12876
11916
|
get(synonymMapName, options) {
|
|
12877
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
11917
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
12878
11918
|
}
|
|
12879
11919
|
/**
|
|
12880
11920
|
* Lists all synonym maps available for a search service.
|
|
12881
11921
|
* @param options The options parameters.
|
|
12882
11922
|
*/
|
|
12883
11923
|
list(options) {
|
|
12884
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
11924
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
12885
11925
|
}
|
|
12886
11926
|
/**
|
|
12887
11927
|
* Creates a new synonym map.
|
|
@@ -12889,12 +11929,12 @@ class SynonymMapsImpl {
|
|
|
12889
11929
|
* @param options The options parameters.
|
|
12890
11930
|
*/
|
|
12891
11931
|
create(synonymMap, options) {
|
|
12892
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
11932
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
12893
11933
|
}
|
|
12894
11934
|
}
|
|
12895
11935
|
// Operation Specifications
|
|
12896
|
-
const serializer$
|
|
12897
|
-
const createOrUpdateOperationSpec$
|
|
11936
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
11937
|
+
const createOrUpdateOperationSpec$1 = {
|
|
12898
11938
|
path: "/synonymmaps('{synonymMapName}')",
|
|
12899
11939
|
httpMethod: "PUT",
|
|
12900
11940
|
responses: {
|
|
@@ -12919,9 +11959,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
12919
11959
|
prefer,
|
|
12920
11960
|
],
|
|
12921
11961
|
mediaType: "json",
|
|
12922
|
-
serializer: serializer$
|
|
11962
|
+
serializer: serializer$2,
|
|
12923
11963
|
};
|
|
12924
|
-
const deleteOperationSpec$
|
|
11964
|
+
const deleteOperationSpec$1 = {
|
|
12925
11965
|
path: "/synonymmaps('{synonymMapName}')",
|
|
12926
11966
|
httpMethod: "DELETE",
|
|
12927
11967
|
responses: {
|
|
@@ -12938,9 +11978,9 @@ const deleteOperationSpec$2 = {
|
|
|
12938
11978
|
ifMatch,
|
|
12939
11979
|
ifNoneMatch,
|
|
12940
11980
|
],
|
|
12941
|
-
serializer: serializer$
|
|
11981
|
+
serializer: serializer$2,
|
|
12942
11982
|
};
|
|
12943
|
-
const getOperationSpec$
|
|
11983
|
+
const getOperationSpec$1 = {
|
|
12944
11984
|
path: "/synonymmaps('{synonymMapName}')",
|
|
12945
11985
|
httpMethod: "GET",
|
|
12946
11986
|
responses: {
|
|
@@ -12954,9 +11994,9 @@ const getOperationSpec$2 = {
|
|
|
12954
11994
|
queryParameters: [apiVersion],
|
|
12955
11995
|
urlParameters: [endpoint, synonymMapName],
|
|
12956
11996
|
headerParameters: [accept],
|
|
12957
|
-
serializer: serializer$
|
|
11997
|
+
serializer: serializer$2,
|
|
12958
11998
|
};
|
|
12959
|
-
const listOperationSpec$
|
|
11999
|
+
const listOperationSpec$1 = {
|
|
12960
12000
|
path: "/synonymmaps",
|
|
12961
12001
|
httpMethod: "GET",
|
|
12962
12002
|
responses: {
|
|
@@ -12970,9 +12010,9 @@ const listOperationSpec$2 = {
|
|
|
12970
12010
|
queryParameters: [apiVersion, select],
|
|
12971
12011
|
urlParameters: [endpoint],
|
|
12972
12012
|
headerParameters: [accept],
|
|
12973
|
-
serializer: serializer$
|
|
12013
|
+
serializer: serializer$2,
|
|
12974
12014
|
};
|
|
12975
|
-
const createOperationSpec$
|
|
12015
|
+
const createOperationSpec$1 = {
|
|
12976
12016
|
path: "/synonymmaps",
|
|
12977
12017
|
httpMethod: "POST",
|
|
12978
12018
|
responses: {
|
|
@@ -12988,7 +12028,7 @@ const createOperationSpec$2 = {
|
|
|
12988
12028
|
urlParameters: [endpoint],
|
|
12989
12029
|
headerParameters: [contentType, accept],
|
|
12990
12030
|
mediaType: "json",
|
|
12991
|
-
serializer: serializer$
|
|
12031
|
+
serializer: serializer$2,
|
|
12992
12032
|
};
|
|
12993
12033
|
|
|
12994
12034
|
/*
|
|
@@ -13013,14 +12053,14 @@ class IndexesImpl {
|
|
|
13013
12053
|
* @param options The options parameters.
|
|
13014
12054
|
*/
|
|
13015
12055
|
create(index, options) {
|
|
13016
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec
|
|
12056
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
13017
12057
|
}
|
|
13018
12058
|
/**
|
|
13019
12059
|
* Lists all indexes available for a search service.
|
|
13020
12060
|
* @param options The options parameters.
|
|
13021
12061
|
*/
|
|
13022
12062
|
list(options) {
|
|
13023
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
12063
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
13024
12064
|
}
|
|
13025
12065
|
/**
|
|
13026
12066
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -13029,7 +12069,7 @@ class IndexesImpl {
|
|
|
13029
12069
|
* @param options The options parameters.
|
|
13030
12070
|
*/
|
|
13031
12071
|
createOrUpdate(indexName, index, options) {
|
|
13032
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec
|
|
12072
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
13033
12073
|
}
|
|
13034
12074
|
/**
|
|
13035
12075
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -13039,7 +12079,7 @@ class IndexesImpl {
|
|
|
13039
12079
|
* @param options The options parameters.
|
|
13040
12080
|
*/
|
|
13041
12081
|
delete(indexName, options) {
|
|
13042
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec
|
|
12082
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
13043
12083
|
}
|
|
13044
12084
|
/**
|
|
13045
12085
|
* Retrieves an index definition.
|
|
@@ -13047,7 +12087,7 @@ class IndexesImpl {
|
|
|
13047
12087
|
* @param options The options parameters.
|
|
13048
12088
|
*/
|
|
13049
12089
|
get(indexName, options) {
|
|
13050
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec
|
|
12090
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
13051
12091
|
}
|
|
13052
12092
|
/**
|
|
13053
12093
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -13068,8 +12108,8 @@ class IndexesImpl {
|
|
|
13068
12108
|
}
|
|
13069
12109
|
}
|
|
13070
12110
|
// Operation Specifications
|
|
13071
|
-
const serializer$
|
|
13072
|
-
const createOperationSpec
|
|
12111
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
12112
|
+
const createOperationSpec = {
|
|
13073
12113
|
path: "/indexes",
|
|
13074
12114
|
httpMethod: "POST",
|
|
13075
12115
|
responses: {
|
|
@@ -13085,9 +12125,9 @@ const createOperationSpec$1 = {
|
|
|
13085
12125
|
urlParameters: [endpoint],
|
|
13086
12126
|
headerParameters: [contentType, accept],
|
|
13087
12127
|
mediaType: "json",
|
|
13088
|
-
serializer: serializer$
|
|
12128
|
+
serializer: serializer$1,
|
|
13089
12129
|
};
|
|
13090
|
-
const listOperationSpec
|
|
12130
|
+
const listOperationSpec = {
|
|
13091
12131
|
path: "/indexes",
|
|
13092
12132
|
httpMethod: "GET",
|
|
13093
12133
|
responses: {
|
|
@@ -13101,9 +12141,9 @@ const listOperationSpec$1 = {
|
|
|
13101
12141
|
queryParameters: [apiVersion, select],
|
|
13102
12142
|
urlParameters: [endpoint],
|
|
13103
12143
|
headerParameters: [accept],
|
|
13104
|
-
serializer: serializer$
|
|
12144
|
+
serializer: serializer$1,
|
|
13105
12145
|
};
|
|
13106
|
-
const createOrUpdateOperationSpec
|
|
12146
|
+
const createOrUpdateOperationSpec = {
|
|
13107
12147
|
path: "/indexes('{indexName}')",
|
|
13108
12148
|
httpMethod: "PUT",
|
|
13109
12149
|
responses: {
|
|
@@ -13128,9 +12168,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
13128
12168
|
prefer,
|
|
13129
12169
|
],
|
|
13130
12170
|
mediaType: "json",
|
|
13131
|
-
serializer: serializer$
|
|
12171
|
+
serializer: serializer$1,
|
|
13132
12172
|
};
|
|
13133
|
-
const deleteOperationSpec
|
|
12173
|
+
const deleteOperationSpec = {
|
|
13134
12174
|
path: "/indexes('{indexName}')",
|
|
13135
12175
|
httpMethod: "DELETE",
|
|
13136
12176
|
responses: {
|
|
@@ -13147,9 +12187,9 @@ const deleteOperationSpec$1 = {
|
|
|
13147
12187
|
ifMatch,
|
|
13148
12188
|
ifNoneMatch,
|
|
13149
12189
|
],
|
|
13150
|
-
serializer: serializer$
|
|
12190
|
+
serializer: serializer$1,
|
|
13151
12191
|
};
|
|
13152
|
-
const getOperationSpec
|
|
12192
|
+
const getOperationSpec = {
|
|
13153
12193
|
path: "/indexes('{indexName}')",
|
|
13154
12194
|
httpMethod: "GET",
|
|
13155
12195
|
responses: {
|
|
@@ -13163,7 +12203,7 @@ const getOperationSpec$1 = {
|
|
|
13163
12203
|
queryParameters: [apiVersion],
|
|
13164
12204
|
urlParameters: [endpoint, indexName],
|
|
13165
12205
|
headerParameters: [accept],
|
|
13166
|
-
serializer: serializer$
|
|
12206
|
+
serializer: serializer$1,
|
|
13167
12207
|
};
|
|
13168
12208
|
const getStatisticsOperationSpec = {
|
|
13169
12209
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -13179,7 +12219,7 @@ const getStatisticsOperationSpec = {
|
|
|
13179
12219
|
queryParameters: [apiVersion],
|
|
13180
12220
|
urlParameters: [endpoint, indexName],
|
|
13181
12221
|
headerParameters: [accept],
|
|
13182
|
-
serializer: serializer$
|
|
12222
|
+
serializer: serializer$1,
|
|
13183
12223
|
};
|
|
13184
12224
|
const analyzeOperationSpec = {
|
|
13185
12225
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -13197,163 +12237,6 @@ const analyzeOperationSpec = {
|
|
|
13197
12237
|
urlParameters: [endpoint, indexName],
|
|
13198
12238
|
headerParameters: [contentType, accept],
|
|
13199
12239
|
mediaType: "json",
|
|
13200
|
-
serializer: serializer$2,
|
|
13201
|
-
};
|
|
13202
|
-
|
|
13203
|
-
/*
|
|
13204
|
-
* Copyright (c) Microsoft Corporation.
|
|
13205
|
-
* Licensed under the MIT License.
|
|
13206
|
-
*
|
|
13207
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13208
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
13209
|
-
*/
|
|
13210
|
-
/** Class containing Aliases operations. */
|
|
13211
|
-
class AliasesImpl {
|
|
13212
|
-
/**
|
|
13213
|
-
* Initialize a new instance of the class Aliases class.
|
|
13214
|
-
* @param client Reference to the service client
|
|
13215
|
-
*/
|
|
13216
|
-
constructor(client) {
|
|
13217
|
-
this.client = client;
|
|
13218
|
-
}
|
|
13219
|
-
/**
|
|
13220
|
-
* Creates a new search alias.
|
|
13221
|
-
* @param alias The definition of the alias to create.
|
|
13222
|
-
* @param options The options parameters.
|
|
13223
|
-
*/
|
|
13224
|
-
create(alias, options) {
|
|
13225
|
-
return this.client.sendOperationRequest({ alias, options }, createOperationSpec);
|
|
13226
|
-
}
|
|
13227
|
-
/**
|
|
13228
|
-
* Lists all aliases available for a search service.
|
|
13229
|
-
* @param options The options parameters.
|
|
13230
|
-
*/
|
|
13231
|
-
list(options) {
|
|
13232
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
13233
|
-
}
|
|
13234
|
-
/**
|
|
13235
|
-
* Creates a new search alias or updates an alias if it already exists.
|
|
13236
|
-
* @param aliasName The definition of the alias to create or update.
|
|
13237
|
-
* @param alias The definition of the alias to create or update.
|
|
13238
|
-
* @param options The options parameters.
|
|
13239
|
-
*/
|
|
13240
|
-
createOrUpdate(aliasName, alias, options) {
|
|
13241
|
-
return this.client.sendOperationRequest({ aliasName, alias, options }, createOrUpdateOperationSpec);
|
|
13242
|
-
}
|
|
13243
|
-
/**
|
|
13244
|
-
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
13245
|
-
* recovery option. The mapped index is untouched by this operation.
|
|
13246
|
-
* @param aliasName The name of the alias to delete.
|
|
13247
|
-
* @param options The options parameters.
|
|
13248
|
-
*/
|
|
13249
|
-
delete(aliasName, options) {
|
|
13250
|
-
return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
|
|
13251
|
-
}
|
|
13252
|
-
/**
|
|
13253
|
-
* Retrieves an alias definition.
|
|
13254
|
-
* @param aliasName The name of the alias to retrieve.
|
|
13255
|
-
* @param options The options parameters.
|
|
13256
|
-
*/
|
|
13257
|
-
get(aliasName, options) {
|
|
13258
|
-
return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
|
|
13259
|
-
}
|
|
13260
|
-
}
|
|
13261
|
-
// Operation Specifications
|
|
13262
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
13263
|
-
const createOperationSpec = {
|
|
13264
|
-
path: "/aliases",
|
|
13265
|
-
httpMethod: "POST",
|
|
13266
|
-
responses: {
|
|
13267
|
-
201: {
|
|
13268
|
-
bodyMapper: SearchAlias,
|
|
13269
|
-
},
|
|
13270
|
-
default: {
|
|
13271
|
-
bodyMapper: ErrorResponse,
|
|
13272
|
-
},
|
|
13273
|
-
},
|
|
13274
|
-
requestBody: alias,
|
|
13275
|
-
queryParameters: [apiVersion],
|
|
13276
|
-
urlParameters: [endpoint],
|
|
13277
|
-
headerParameters: [contentType, accept],
|
|
13278
|
-
mediaType: "json",
|
|
13279
|
-
serializer: serializer$1,
|
|
13280
|
-
};
|
|
13281
|
-
const listOperationSpec = {
|
|
13282
|
-
path: "/aliases",
|
|
13283
|
-
httpMethod: "GET",
|
|
13284
|
-
responses: {
|
|
13285
|
-
200: {
|
|
13286
|
-
bodyMapper: ListAliasesResult,
|
|
13287
|
-
},
|
|
13288
|
-
default: {
|
|
13289
|
-
bodyMapper: ErrorResponse,
|
|
13290
|
-
},
|
|
13291
|
-
},
|
|
13292
|
-
queryParameters: [apiVersion],
|
|
13293
|
-
urlParameters: [endpoint],
|
|
13294
|
-
headerParameters: [accept],
|
|
13295
|
-
serializer: serializer$1,
|
|
13296
|
-
};
|
|
13297
|
-
const createOrUpdateOperationSpec = {
|
|
13298
|
-
path: "/aliases('{aliasName}')",
|
|
13299
|
-
httpMethod: "PUT",
|
|
13300
|
-
responses: {
|
|
13301
|
-
200: {
|
|
13302
|
-
bodyMapper: SearchAlias,
|
|
13303
|
-
},
|
|
13304
|
-
201: {
|
|
13305
|
-
bodyMapper: SearchAlias,
|
|
13306
|
-
},
|
|
13307
|
-
default: {
|
|
13308
|
-
bodyMapper: ErrorResponse,
|
|
13309
|
-
},
|
|
13310
|
-
},
|
|
13311
|
-
requestBody: alias,
|
|
13312
|
-
queryParameters: [apiVersion],
|
|
13313
|
-
urlParameters: [endpoint, aliasName],
|
|
13314
|
-
headerParameters: [
|
|
13315
|
-
contentType,
|
|
13316
|
-
accept,
|
|
13317
|
-
ifMatch,
|
|
13318
|
-
ifNoneMatch,
|
|
13319
|
-
prefer,
|
|
13320
|
-
],
|
|
13321
|
-
mediaType: "json",
|
|
13322
|
-
serializer: serializer$1,
|
|
13323
|
-
};
|
|
13324
|
-
const deleteOperationSpec = {
|
|
13325
|
-
path: "/aliases('{aliasName}')",
|
|
13326
|
-
httpMethod: "DELETE",
|
|
13327
|
-
responses: {
|
|
13328
|
-
204: {},
|
|
13329
|
-
404: {},
|
|
13330
|
-
default: {
|
|
13331
|
-
bodyMapper: ErrorResponse,
|
|
13332
|
-
},
|
|
13333
|
-
},
|
|
13334
|
-
queryParameters: [apiVersion],
|
|
13335
|
-
urlParameters: [endpoint, aliasName],
|
|
13336
|
-
headerParameters: [
|
|
13337
|
-
accept,
|
|
13338
|
-
ifMatch,
|
|
13339
|
-
ifNoneMatch,
|
|
13340
|
-
],
|
|
13341
|
-
serializer: serializer$1,
|
|
13342
|
-
};
|
|
13343
|
-
const getOperationSpec = {
|
|
13344
|
-
path: "/aliases('{aliasName}')",
|
|
13345
|
-
httpMethod: "GET",
|
|
13346
|
-
responses: {
|
|
13347
|
-
200: {
|
|
13348
|
-
bodyMapper: SearchAlias,
|
|
13349
|
-
},
|
|
13350
|
-
default: {
|
|
13351
|
-
bodyMapper: ErrorResponse,
|
|
13352
|
-
},
|
|
13353
|
-
},
|
|
13354
|
-
queryParameters: [apiVersion],
|
|
13355
|
-
urlParameters: [endpoint, aliasName],
|
|
13356
|
-
headerParameters: [accept],
|
|
13357
12240
|
serializer: serializer$1,
|
|
13358
12241
|
};
|
|
13359
12242
|
|
|
@@ -13387,7 +12270,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
13387
12270
|
const defaults = {
|
|
13388
12271
|
requestContentType: "application/json; charset=utf-8",
|
|
13389
12272
|
};
|
|
13390
|
-
const packageDetails = `azsdk-js-search-documents/12.1.0
|
|
12273
|
+
const packageDetails = `azsdk-js-search-documents/12.1.0`;
|
|
13391
12274
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
13392
12275
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
13393
12276
|
: `${packageDetails}`;
|
|
@@ -13403,7 +12286,6 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
13403
12286
|
this.skillsets = new SkillsetsImpl(this);
|
|
13404
12287
|
this.synonymMaps = new SynonymMapsImpl(this);
|
|
13405
12288
|
this.indexes = new IndexesImpl(this);
|
|
13406
|
-
this.aliases = new AliasesImpl(this);
|
|
13407
12289
|
this.addCustomApiVersionPolicy(apiVersion);
|
|
13408
12290
|
}
|
|
13409
12291
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -13513,7 +12395,6 @@ class SearchIndexClient {
|
|
|
13513
12395
|
(_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
13514
12396
|
this.apiVersion = this.serviceVersion;
|
|
13515
12397
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
13516
|
-
this.pipeline = this.client.pipeline;
|
|
13517
12398
|
if (coreAuth.isTokenCredential(credential)) {
|
|
13518
12399
|
const scope = this.options.audience
|
|
13519
12400
|
? `${this.options.audience}/.default`
|
|
@@ -13583,63 +12464,6 @@ class SearchIndexClient {
|
|
|
13583
12464
|
},
|
|
13584
12465
|
};
|
|
13585
12466
|
}
|
|
13586
|
-
listAliasesPage(options = {}) {
|
|
13587
|
-
return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
|
|
13588
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options);
|
|
13589
|
-
try {
|
|
13590
|
-
const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
|
|
13591
|
-
yield yield tslib.__await(result.aliases);
|
|
13592
|
-
}
|
|
13593
|
-
catch (e) {
|
|
13594
|
-
span.setStatus({
|
|
13595
|
-
status: "error",
|
|
13596
|
-
error: e.message,
|
|
13597
|
-
});
|
|
13598
|
-
throw e;
|
|
13599
|
-
}
|
|
13600
|
-
finally {
|
|
13601
|
-
span.end();
|
|
13602
|
-
}
|
|
13603
|
-
});
|
|
13604
|
-
}
|
|
13605
|
-
listAliasesAll(options = {}) {
|
|
13606
|
-
return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
|
|
13607
|
-
var _a, e_2, _b, _c;
|
|
13608
|
-
try {
|
|
13609
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
13610
|
-
_c = _f.value;
|
|
13611
|
-
_d = false;
|
|
13612
|
-
const page = _c;
|
|
13613
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
13614
|
-
}
|
|
13615
|
-
}
|
|
13616
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
13617
|
-
finally {
|
|
13618
|
-
try {
|
|
13619
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
13620
|
-
}
|
|
13621
|
-
finally { if (e_2) throw e_2.error; }
|
|
13622
|
-
}
|
|
13623
|
-
});
|
|
13624
|
-
}
|
|
13625
|
-
/**
|
|
13626
|
-
* Lists all aliases available for a search service.
|
|
13627
|
-
* @param options - The options parameters.
|
|
13628
|
-
*/
|
|
13629
|
-
listAliases(options = {}) {
|
|
13630
|
-
const iter = this.listAliasesAll(options);
|
|
13631
|
-
return {
|
|
13632
|
-
next() {
|
|
13633
|
-
return iter.next();
|
|
13634
|
-
},
|
|
13635
|
-
[Symbol.asyncIterator]() {
|
|
13636
|
-
return this;
|
|
13637
|
-
},
|
|
13638
|
-
byPage: () => {
|
|
13639
|
-
return this.listAliasesPage(options);
|
|
13640
|
-
},
|
|
13641
|
-
};
|
|
13642
|
-
}
|
|
13643
12467
|
listIndexesNamesPage(options = {}) {
|
|
13644
12468
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
|
|
13645
12469
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
|
|
@@ -13662,7 +12486,7 @@ class SearchIndexClient {
|
|
|
13662
12486
|
}
|
|
13663
12487
|
listIndexesNamesAll(options = {}) {
|
|
13664
12488
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
|
|
13665
|
-
var _a,
|
|
12489
|
+
var _a, e_2, _b, _c;
|
|
13666
12490
|
try {
|
|
13667
12491
|
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
13668
12492
|
_c = _f.value;
|
|
@@ -13671,12 +12495,12 @@ class SearchIndexClient {
|
|
|
13671
12495
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
13672
12496
|
}
|
|
13673
12497
|
}
|
|
13674
|
-
catch (
|
|
12498
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
13675
12499
|
finally {
|
|
13676
12500
|
try {
|
|
13677
12501
|
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
13678
12502
|
}
|
|
13679
|
-
finally { if (
|
|
12503
|
+
finally { if (e_2) throw e_2.error; }
|
|
13680
12504
|
}
|
|
13681
12505
|
});
|
|
13682
12506
|
}
|
|
@@ -13924,97 +12748,6 @@ class SearchIndexClient {
|
|
|
13924
12748
|
span.end();
|
|
13925
12749
|
}
|
|
13926
12750
|
}
|
|
13927
|
-
/**
|
|
13928
|
-
* Creates a new search alias or updates an alias if it already exists.
|
|
13929
|
-
* @param alias - The definition of the alias to create or update.
|
|
13930
|
-
* @param options - The options parameters.
|
|
13931
|
-
*/
|
|
13932
|
-
async createOrUpdateAlias(alias, options = {}) {
|
|
13933
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options);
|
|
13934
|
-
try {
|
|
13935
|
-
const etag = options.onlyIfUnchanged ? alias.etag : undefined;
|
|
13936
|
-
const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
13937
|
-
return result;
|
|
13938
|
-
}
|
|
13939
|
-
catch (e) {
|
|
13940
|
-
span.setStatus({
|
|
13941
|
-
status: "error",
|
|
13942
|
-
error: e.message,
|
|
13943
|
-
});
|
|
13944
|
-
throw e;
|
|
13945
|
-
}
|
|
13946
|
-
finally {
|
|
13947
|
-
span.end();
|
|
13948
|
-
}
|
|
13949
|
-
}
|
|
13950
|
-
/**
|
|
13951
|
-
* Creates a new search alias.
|
|
13952
|
-
* @param alias - The definition of the alias to create.
|
|
13953
|
-
* @param options - The options parameters.
|
|
13954
|
-
*/
|
|
13955
|
-
async createAlias(alias, options = {}) {
|
|
13956
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-createAlias", options);
|
|
13957
|
-
try {
|
|
13958
|
-
const result = await this.client.aliases.create(alias, updatedOptions);
|
|
13959
|
-
return result;
|
|
13960
|
-
}
|
|
13961
|
-
catch (e) {
|
|
13962
|
-
span.setStatus({
|
|
13963
|
-
status: "error",
|
|
13964
|
-
error: e.message,
|
|
13965
|
-
});
|
|
13966
|
-
throw e;
|
|
13967
|
-
}
|
|
13968
|
-
finally {
|
|
13969
|
-
span.end();
|
|
13970
|
-
}
|
|
13971
|
-
}
|
|
13972
|
-
/**
|
|
13973
|
-
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
13974
|
-
* recovery option. The mapped index is untouched by this operation.
|
|
13975
|
-
* @param alias - Alias/Name name of the alias to delete.
|
|
13976
|
-
* @param options - The options parameters.
|
|
13977
|
-
*/
|
|
13978
|
-
async deleteAlias(alias, options = {}) {
|
|
13979
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteAlias", options);
|
|
13980
|
-
try {
|
|
13981
|
-
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
13982
|
-
const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
|
|
13983
|
-
await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
13984
|
-
}
|
|
13985
|
-
catch (e) {
|
|
13986
|
-
span.setStatus({
|
|
13987
|
-
status: "error",
|
|
13988
|
-
error: e.message,
|
|
13989
|
-
});
|
|
13990
|
-
throw e;
|
|
13991
|
-
}
|
|
13992
|
-
finally {
|
|
13993
|
-
span.end();
|
|
13994
|
-
}
|
|
13995
|
-
}
|
|
13996
|
-
/**
|
|
13997
|
-
* Retrieves an alias definition.
|
|
13998
|
-
* @param aliasName - The name of the alias to retrieve.
|
|
13999
|
-
* @param options - The options parameters.
|
|
14000
|
-
*/
|
|
14001
|
-
async getAlias(aliasName, options = {}) {
|
|
14002
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-getAlias", options);
|
|
14003
|
-
try {
|
|
14004
|
-
const result = await this.client.aliases.get(aliasName, updatedOptions);
|
|
14005
|
-
return result;
|
|
14006
|
-
}
|
|
14007
|
-
catch (e) {
|
|
14008
|
-
span.setStatus({
|
|
14009
|
-
status: "error",
|
|
14010
|
-
error: e.message,
|
|
14011
|
-
});
|
|
14012
|
-
throw e;
|
|
14013
|
-
}
|
|
14014
|
-
finally {
|
|
14015
|
-
span.end();
|
|
14016
|
-
}
|
|
14017
|
-
}
|
|
14018
12751
|
/**
|
|
14019
12752
|
* Retrieves statistics about an index, such as the count of documents and the size
|
|
14020
12753
|
* of index storage.
|
|
@@ -14155,7 +12888,6 @@ class SearchIndexerClient {
|
|
|
14155
12888
|
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
14156
12889
|
this.apiVersion = this.serviceVersion;
|
|
14157
12890
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
14158
|
-
this.pipeline = this.client.pipeline;
|
|
14159
12891
|
if (coreAuth.isTokenCredential(credential)) {
|
|
14160
12892
|
const scope = options.audience
|
|
14161
12893
|
? `${options.audience}/.default`
|
|
@@ -14640,52 +13372,6 @@ class SearchIndexerClient {
|
|
|
14640
13372
|
span.end();
|
|
14641
13373
|
}
|
|
14642
13374
|
}
|
|
14643
|
-
/**
|
|
14644
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
14645
|
-
* @param indexerName - The name of the indexer to reset documents for.
|
|
14646
|
-
* @param options - Additional optional arguments.
|
|
14647
|
-
*/
|
|
14648
|
-
async resetDocuments(indexerName, options = {}) {
|
|
14649
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
|
|
14650
|
-
try {
|
|
14651
|
-
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
14652
|
-
documentKeys: updatedOptions.documentKeys,
|
|
14653
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
14654
|
-
} }));
|
|
14655
|
-
}
|
|
14656
|
-
catch (e) {
|
|
14657
|
-
span.setStatus({
|
|
14658
|
-
status: "error",
|
|
14659
|
-
error: e.message,
|
|
14660
|
-
});
|
|
14661
|
-
throw e;
|
|
14662
|
-
}
|
|
14663
|
-
finally {
|
|
14664
|
-
span.end();
|
|
14665
|
-
}
|
|
14666
|
-
}
|
|
14667
|
-
/**
|
|
14668
|
-
* Reset an existing skillset in a search service.
|
|
14669
|
-
* @param skillsetName - The name of the skillset to reset.
|
|
14670
|
-
* @param skillNames - The names of skills to reset.
|
|
14671
|
-
* @param options - The options parameters.
|
|
14672
|
-
*/
|
|
14673
|
-
async resetSkills(skillsetName, options = {}) {
|
|
14674
|
-
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
|
|
14675
|
-
try {
|
|
14676
|
-
await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
|
|
14677
|
-
}
|
|
14678
|
-
catch (e) {
|
|
14679
|
-
span.setStatus({
|
|
14680
|
-
status: "error",
|
|
14681
|
-
error: e.message,
|
|
14682
|
-
});
|
|
14683
|
-
throw e;
|
|
14684
|
-
}
|
|
14685
|
-
finally {
|
|
14686
|
-
span.end();
|
|
14687
|
-
}
|
|
14688
|
-
}
|
|
14689
13375
|
}
|
|
14690
13376
|
|
|
14691
13377
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -14952,7 +13638,7 @@ class SearchIndexingBufferedSender {
|
|
|
14952
13638
|
// Allow the final value to have some "jitter" (within 50% of the delay size) so
|
|
14953
13639
|
// that retries across multiple clients don't occur simultaneously.
|
|
14954
13640
|
const delayWithJitter = clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);
|
|
14955
|
-
await delay(delayWithJitter);
|
|
13641
|
+
await coreUtil.delay(delayWithJitter);
|
|
14956
13642
|
await this.submitDocuments(actionsToSend, options, retryAttempt + 1);
|
|
14957
13643
|
}
|
|
14958
13644
|
else {
|
|
@@ -14997,7 +13683,6 @@ exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
|
14997
13683
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
14998
13684
|
exports.GeographyPoint = GeographyPoint;
|
|
14999
13685
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
15000
|
-
exports.KnownLexicalNormalizerName = exports.KnownNormalizerNames;
|
|
15001
13686
|
exports.SearchClient = SearchClient;
|
|
15002
13687
|
exports.SearchIndexClient = SearchIndexClient;
|
|
15003
13688
|
exports.SearchIndexerClient = SearchIndexerClient;
|