@azure/search-documents 12.0.0-alpha.20240112.1 → 12.0.0-alpha.20240116.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +568 -1080
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +4 -10
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js +3 -9
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +278 -642
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +3 -7
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/indexDocumentsBatch.js +4 -16
- package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
- package/dist-esm/src/searchClient.js +68 -97
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +137 -116
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +25 -62
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/searchIndexingBufferedSender.js +8 -7
- package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
- package/dist-esm/src/serialization.js +1 -1
- package/dist-esm/src/serialization.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +39 -112
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var coreHttpCompat = require('@azure/core-http-compat');
|
|
7
8
|
var coreClient = require('@azure/core-client');
|
|
@@ -1032,9 +1033,7 @@ const RawVectorQuery = {
|
|
|
1032
1033
|
className: "RawVectorQuery",
|
|
1033
1034
|
uberParent: "VectorQuery",
|
|
1034
1035
|
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
1035
|
-
modelProperties: {
|
|
1036
|
-
...VectorQuery.type.modelProperties,
|
|
1037
|
-
vector: {
|
|
1036
|
+
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { vector: {
|
|
1038
1037
|
serializedName: "vector",
|
|
1039
1038
|
type: {
|
|
1040
1039
|
name: "Sequence",
|
|
@@ -1044,8 +1043,7 @@ const RawVectorQuery = {
|
|
|
1044
1043
|
}
|
|
1045
1044
|
}
|
|
1046
1045
|
}
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1046
|
+
} })
|
|
1049
1047
|
}
|
|
1050
1048
|
};
|
|
1051
1049
|
const VectorizableTextQuery = {
|
|
@@ -1055,15 +1053,12 @@ const VectorizableTextQuery = {
|
|
|
1055
1053
|
className: "VectorizableTextQuery",
|
|
1056
1054
|
uberParent: "VectorQuery",
|
|
1057
1055
|
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
1058
|
-
modelProperties: {
|
|
1059
|
-
...VectorQuery.type.modelProperties,
|
|
1060
|
-
text: {
|
|
1056
|
+
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { text: {
|
|
1061
1057
|
serializedName: "text",
|
|
1062
1058
|
type: {
|
|
1063
1059
|
name: "String"
|
|
1064
1060
|
}
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1061
|
+
} })
|
|
1067
1062
|
}
|
|
1068
1063
|
};
|
|
1069
1064
|
let discriminators$1 = {
|
|
@@ -2035,6 +2030,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
|
|
|
2035
2030
|
* @param options The parameter options
|
|
2036
2031
|
*/
|
|
2037
2032
|
constructor(endpoint, indexName, apiVersion, options) {
|
|
2033
|
+
var _a, _b;
|
|
2038
2034
|
if (endpoint === undefined) {
|
|
2039
2035
|
throw new Error("'endpoint' cannot be null");
|
|
2040
2036
|
}
|
|
@@ -2055,16 +2051,9 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
|
|
|
2055
2051
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2056
2052
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2057
2053
|
: `${packageDetails}`;
|
|
2058
|
-
const optionsWithDefaults = {
|
|
2059
|
-
...defaults,
|
|
2060
|
-
...options,
|
|
2061
|
-
userAgentOptions: {
|
|
2054
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2062
2055
|
userAgentPrefix
|
|
2063
|
-
},
|
|
2064
|
-
baseUri: options.endpoint ??
|
|
2065
|
-
options.baseUri ??
|
|
2066
|
-
"{endpoint}/indexes('{indexName}')"
|
|
2067
|
-
};
|
|
2056
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}/indexes('{indexName}')" });
|
|
2068
2057
|
super(optionsWithDefaults);
|
|
2069
2058
|
// Parameter assignments
|
|
2070
2059
|
this.endpoint = endpoint;
|
|
@@ -2178,7 +2167,7 @@ function walk(start, mapper) {
|
|
|
2178
2167
|
}
|
|
2179
2168
|
}
|
|
2180
2169
|
const mapped = mapper(current.value);
|
|
2181
|
-
if (current
|
|
2170
|
+
if ((current === null || current === void 0 ? void 0 : current.parent) && current.key) {
|
|
2182
2171
|
current.parent[current.key] = mapped;
|
|
2183
2172
|
}
|
|
2184
2173
|
if (typeof mapped === "object" && mapped !== null) {
|
|
@@ -2349,10 +2338,7 @@ class IndexDocumentsBatch {
|
|
|
2349
2338
|
*/
|
|
2350
2339
|
upload(documents) {
|
|
2351
2340
|
const batch = documents.map((doc) => {
|
|
2352
|
-
return {
|
|
2353
|
-
...doc,
|
|
2354
|
-
__actionType: "upload",
|
|
2355
|
-
};
|
|
2341
|
+
return Object.assign(Object.assign({}, doc), { __actionType: "upload" });
|
|
2356
2342
|
});
|
|
2357
2343
|
this.actions.push(...batch);
|
|
2358
2344
|
}
|
|
@@ -2363,10 +2349,7 @@ class IndexDocumentsBatch {
|
|
|
2363
2349
|
*/
|
|
2364
2350
|
merge(documents) {
|
|
2365
2351
|
const batch = documents.map((doc) => {
|
|
2366
|
-
return {
|
|
2367
|
-
...doc,
|
|
2368
|
-
__actionType: "merge",
|
|
2369
|
-
};
|
|
2352
|
+
return Object.assign(Object.assign({}, doc), { __actionType: "merge" });
|
|
2370
2353
|
});
|
|
2371
2354
|
this.actions.push(...batch);
|
|
2372
2355
|
}
|
|
@@ -2377,10 +2360,7 @@ class IndexDocumentsBatch {
|
|
|
2377
2360
|
*/
|
|
2378
2361
|
mergeOrUpload(documents) {
|
|
2379
2362
|
const batch = documents.map((doc) => {
|
|
2380
|
-
return {
|
|
2381
|
-
...doc,
|
|
2382
|
-
__actionType: "mergeOrUpload",
|
|
2383
|
-
};
|
|
2363
|
+
return Object.assign(Object.assign({}, doc), { __actionType: "mergeOrUpload" });
|
|
2384
2364
|
});
|
|
2385
2365
|
this.actions.push(...batch);
|
|
2386
2366
|
}
|
|
@@ -2398,10 +2378,7 @@ class IndexDocumentsBatch {
|
|
|
2398
2378
|
else {
|
|
2399
2379
|
const documents = keyNameOrDocuments;
|
|
2400
2380
|
const batch = documents.map((document) => {
|
|
2401
|
-
return {
|
|
2402
|
-
__actionType: "delete",
|
|
2403
|
-
...document,
|
|
2404
|
-
};
|
|
2381
|
+
return Object.assign({ __actionType: "delete" }, document);
|
|
2405
2382
|
});
|
|
2406
2383
|
this.actions.push(...batch);
|
|
2407
2384
|
}
|
|
@@ -3188,16 +3165,10 @@ function convertAnalyzersToGenerated(analyzers) {
|
|
|
3188
3165
|
result.push(analyzer);
|
|
3189
3166
|
break;
|
|
3190
3167
|
case "#Microsoft.Azure.Search.PatternAnalyzer":
|
|
3191
|
-
result.push({
|
|
3192
|
-
...analyzer,
|
|
3193
|
-
flags: analyzer.flags ? analyzer.flags.join("|") : undefined,
|
|
3194
|
-
});
|
|
3168
|
+
result.push(Object.assign(Object.assign({}, analyzer), { flags: analyzer.flags ? analyzer.flags.join("|") : undefined }));
|
|
3195
3169
|
break;
|
|
3196
3170
|
case "#Microsoft.Azure.Search.CustomAnalyzer":
|
|
3197
|
-
result.push({
|
|
3198
|
-
...analyzer,
|
|
3199
|
-
tokenizerName: analyzer.tokenizerName,
|
|
3200
|
-
});
|
|
3171
|
+
result.push(Object.assign(Object.assign({}, analyzer), { tokenizerName: analyzer.tokenizerName }));
|
|
3201
3172
|
break;
|
|
3202
3173
|
}
|
|
3203
3174
|
}
|
|
@@ -3217,18 +3188,12 @@ function convertAnalyzersToPublic(analyzers) {
|
|
|
3217
3188
|
result.push(analyzer);
|
|
3218
3189
|
break;
|
|
3219
3190
|
case "#Microsoft.Azure.Search.PatternAnalyzer":
|
|
3220
|
-
result.push({
|
|
3221
|
-
...analyzer,
|
|
3222
|
-
flags: analyzer.flags
|
|
3191
|
+
result.push(Object.assign(Object.assign({}, analyzer), { flags: analyzer.flags
|
|
3223
3192
|
? analyzer.flags.split("|")
|
|
3224
|
-
: undefined
|
|
3225
|
-
});
|
|
3193
|
+
: undefined }));
|
|
3226
3194
|
break;
|
|
3227
3195
|
case "#Microsoft.Azure.Search.CustomAnalyzer":
|
|
3228
|
-
result.push({
|
|
3229
|
-
...analyzer,
|
|
3230
|
-
tokenizerName: analyzer.tokenizerName,
|
|
3231
|
-
});
|
|
3196
|
+
result.push(Object.assign(Object.assign({}, analyzer), { tokenizerName: analyzer.tokenizerName }));
|
|
3232
3197
|
break;
|
|
3233
3198
|
}
|
|
3234
3199
|
}
|
|
@@ -3254,24 +3219,22 @@ function convertFieldsToPublic(fields) {
|
|
|
3254
3219
|
const indexAnalyzerName = field.indexAnalyzer;
|
|
3255
3220
|
const synonymMapNames = field.synonymMaps;
|
|
3256
3221
|
const normalizerName = field.normalizer;
|
|
3257
|
-
const { retrievable,
|
|
3222
|
+
const { retrievable } = field, restField = tslib.__rest(field, ["retrievable"]);
|
|
3258
3223
|
const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
|
|
3259
|
-
const result = {
|
|
3260
|
-
...restField,
|
|
3261
|
-
type,
|
|
3224
|
+
const result = Object.assign(Object.assign({}, restField), { type,
|
|
3262
3225
|
hidden,
|
|
3263
3226
|
analyzerName,
|
|
3264
3227
|
searchAnalyzerName,
|
|
3265
3228
|
indexAnalyzerName,
|
|
3266
3229
|
synonymMapNames,
|
|
3267
|
-
normalizerName
|
|
3268
|
-
};
|
|
3230
|
+
normalizerName });
|
|
3269
3231
|
return result;
|
|
3270
3232
|
}
|
|
3271
3233
|
});
|
|
3272
3234
|
}
|
|
3273
3235
|
function convertFieldsToGenerated(fields) {
|
|
3274
3236
|
return fields.map((field) => {
|
|
3237
|
+
var _a, _b, _c, _d;
|
|
3275
3238
|
if (isComplexField(field)) {
|
|
3276
3239
|
return {
|
|
3277
3240
|
name: field.name,
|
|
@@ -3280,22 +3243,11 @@ function convertFieldsToGenerated(fields) {
|
|
|
3280
3243
|
};
|
|
3281
3244
|
}
|
|
3282
3245
|
else {
|
|
3283
|
-
const { hidden,
|
|
3246
|
+
const { hidden } = field, restField = tslib.__rest(field, ["hidden"]);
|
|
3284
3247
|
const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
|
|
3285
|
-
return {
|
|
3286
|
-
...restField,
|
|
3287
|
-
retrievable,
|
|
3248
|
+
return Object.assign(Object.assign({}, restField), { retrievable,
|
|
3288
3249
|
// modify API defaults to use less storage for simple types
|
|
3289
|
-
searchable: field.searchable
|
|
3290
|
-
filterable: field.filterable ?? false,
|
|
3291
|
-
facetable: field.facetable ?? false,
|
|
3292
|
-
sortable: field.sortable ?? false,
|
|
3293
|
-
analyzer: field.analyzerName,
|
|
3294
|
-
searchAnalyzer: field.searchAnalyzerName,
|
|
3295
|
-
indexAnalyzer: field.indexAnalyzerName,
|
|
3296
|
-
synonymMaps: field.synonymMapNames,
|
|
3297
|
-
normalizer: field.normalizerName,
|
|
3298
|
-
};
|
|
3250
|
+
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, normalizer: field.normalizerName });
|
|
3299
3251
|
}
|
|
3300
3252
|
});
|
|
3301
3253
|
}
|
|
@@ -3306,10 +3258,7 @@ function convertTokenizersToGenerated(tokenizers) {
|
|
|
3306
3258
|
const result = [];
|
|
3307
3259
|
for (const tokenizer of tokenizers) {
|
|
3308
3260
|
if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") {
|
|
3309
|
-
result.push({
|
|
3310
|
-
...tokenizer,
|
|
3311
|
-
flags: tokenizer.flags ? tokenizer.flags.join("|") : undefined,
|
|
3312
|
-
});
|
|
3261
|
+
result.push(Object.assign(Object.assign({}, tokenizer), { flags: tokenizer.flags ? tokenizer.flags.join("|") : undefined }));
|
|
3313
3262
|
}
|
|
3314
3263
|
else {
|
|
3315
3264
|
result.push(tokenizer);
|
|
@@ -3324,12 +3273,9 @@ function convertTokenizersToPublic(tokenizers) {
|
|
|
3324
3273
|
const result = [];
|
|
3325
3274
|
for (const tokenizer of tokenizers) {
|
|
3326
3275
|
if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") {
|
|
3327
|
-
result.push({
|
|
3328
|
-
...tokenizer,
|
|
3329
|
-
flags: tokenizer.flags
|
|
3276
|
+
result.push(Object.assign(Object.assign({}, tokenizer), { flags: tokenizer.flags
|
|
3330
3277
|
? tokenizer.flags.split("|")
|
|
3331
|
-
: undefined
|
|
3332
|
-
});
|
|
3278
|
+
: undefined }));
|
|
3333
3279
|
}
|
|
3334
3280
|
else {
|
|
3335
3281
|
result.push(tokenizer);
|
|
@@ -3414,54 +3360,41 @@ function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer)
|
|
|
3414
3360
|
}
|
|
3415
3361
|
if (generatedVectorizer.kind === "azureOpenAI") {
|
|
3416
3362
|
const { azureOpenAIParameters } = generatedVectorizer;
|
|
3417
|
-
const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters
|
|
3418
|
-
const vectorizer = {
|
|
3419
|
-
...generatedVectorizer,
|
|
3420
|
-
azureOpenAIParameters: { ...azureOpenAIParameters, authIdentity },
|
|
3421
|
-
};
|
|
3363
|
+
const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters === null || azureOpenAIParameters === void 0 ? void 0 : azureOpenAIParameters.authIdentity);
|
|
3364
|
+
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { azureOpenAIParameters: Object.assign(Object.assign({}, azureOpenAIParameters), { authIdentity }) });
|
|
3422
3365
|
return vectorizer;
|
|
3423
3366
|
}
|
|
3424
3367
|
if (generatedVectorizer.kind === "customWebApi") {
|
|
3425
3368
|
const { customVectorizerParameters } = generatedVectorizer;
|
|
3426
|
-
const authIdentity = convertSearchIndexerDataIdentityToPublic(customVectorizerParameters
|
|
3427
|
-
const vectorizer = {
|
|
3428
|
-
...generatedVectorizer,
|
|
3429
|
-
customVectorizerParameters: { ...customVectorizerParameters, authIdentity },
|
|
3430
|
-
};
|
|
3369
|
+
const authIdentity = convertSearchIndexerDataIdentityToPublic(customVectorizerParameters === null || customVectorizerParameters === void 0 ? void 0 : customVectorizerParameters.authIdentity);
|
|
3370
|
+
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { customVectorizerParameters: Object.assign(Object.assign({}, customVectorizerParameters), { authIdentity }) });
|
|
3431
3371
|
return vectorizer;
|
|
3432
3372
|
}
|
|
3433
3373
|
throw Error("Unsupported vectorizer");
|
|
3434
3374
|
}
|
|
3435
3375
|
function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
|
|
3376
|
+
var _a;
|
|
3436
3377
|
if (!generatedAlgorithmConfiguration) {
|
|
3437
3378
|
return generatedAlgorithmConfiguration;
|
|
3438
3379
|
}
|
|
3439
3380
|
if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) {
|
|
3440
3381
|
const algorithmConfiguration = generatedAlgorithmConfiguration;
|
|
3441
|
-
const metric = algorithmConfiguration.parameters
|
|
3442
|
-
return {
|
|
3443
|
-
...algorithmConfiguration,
|
|
3444
|
-
parameters: { ...algorithmConfiguration.parameters, metric },
|
|
3445
|
-
};
|
|
3382
|
+
const metric = (_a = algorithmConfiguration.parameters) === null || _a === void 0 ? void 0 : _a.metric;
|
|
3383
|
+
return Object.assign(Object.assign({}, algorithmConfiguration), { parameters: Object.assign(Object.assign({}, algorithmConfiguration.parameters), { metric }) });
|
|
3446
3384
|
}
|
|
3447
3385
|
throw Error("Unsupported algorithm configuration");
|
|
3448
3386
|
}
|
|
3449
3387
|
function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
|
|
3388
|
+
var _a, _b;
|
|
3450
3389
|
if (!vectorSearch) {
|
|
3451
3390
|
return vectorSearch;
|
|
3452
3391
|
}
|
|
3453
|
-
return {
|
|
3454
|
-
...vectorSearch,
|
|
3455
|
-
algorithms: vectorSearch.algorithms?.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration),
|
|
3456
|
-
vectorizers: vectorSearch.vectorizers?.map(generatedVectorSearchVectorizerToPublicVectorizer),
|
|
3457
|
-
};
|
|
3392
|
+
return Object.assign(Object.assign({}, vectorSearch), { algorithms: (_a = vectorSearch.algorithms) === null || _a === void 0 ? void 0 : _a.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration), vectorizers: (_b = vectorSearch.vectorizers) === null || _b === void 0 ? void 0 : _b.map(generatedVectorSearchVectorizerToPublicVectorizer) });
|
|
3458
3393
|
}
|
|
3459
3394
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
3460
3395
|
const returnValues = results.map((result) => {
|
|
3461
|
-
const { _score, _highlights, rerankerScore, captions, documentDebugInfo,
|
|
3462
|
-
const doc = {
|
|
3463
|
-
...restProps,
|
|
3464
|
-
};
|
|
3396
|
+
const { _score, _highlights, rerankerScore, captions, documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "rerankerScore", "captions", "documentDebugInfo"]);
|
|
3397
|
+
const doc = Object.assign({}, restProps);
|
|
3465
3398
|
const obj = {
|
|
3466
3399
|
score: _score,
|
|
3467
3400
|
highlights: _highlights,
|
|
@@ -3476,10 +3409,8 @@ function generatedSearchResultToPublicSearchResult(results) {
|
|
|
3476
3409
|
}
|
|
3477
3410
|
function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDocumentsResult) {
|
|
3478
3411
|
const results = searchDocumentsResult.results.map((element) => {
|
|
3479
|
-
const { _text,
|
|
3480
|
-
const doc = {
|
|
3481
|
-
...restProps,
|
|
3482
|
-
};
|
|
3412
|
+
const { _text } = element, restProps = tslib.__rest(element, ["_text"]);
|
|
3413
|
+
const doc = Object.assign({}, restProps);
|
|
3483
3414
|
const obj = {
|
|
3484
3415
|
text: _text,
|
|
3485
3416
|
document: doc,
|
|
@@ -3494,15 +3425,7 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
|
|
|
3494
3425
|
}
|
|
3495
3426
|
function publicIndexToGeneratedIndex(index) {
|
|
3496
3427
|
const { encryptionKey, tokenFilters, analyzers, tokenizers, fields, similarity } = index;
|
|
3497
|
-
return {
|
|
3498
|
-
...index,
|
|
3499
|
-
encryptionKey: convertEncryptionKeyToGenerated(encryptionKey),
|
|
3500
|
-
tokenFilters: convertTokenFiltersToGenerated(tokenFilters),
|
|
3501
|
-
analyzers: convertAnalyzersToGenerated(analyzers),
|
|
3502
|
-
tokenizers: convertTokenizersToGenerated(tokenizers),
|
|
3503
|
-
fields: convertFieldsToGenerated(fields),
|
|
3504
|
-
similarity: convertSimilarityToGenerated(similarity),
|
|
3505
|
-
};
|
|
3428
|
+
return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
|
|
3506
3429
|
}
|
|
3507
3430
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
3508
3431
|
return {
|
|
@@ -3550,29 +3473,14 @@ function publicSynonymMapToGeneratedSynonymMap(synonymMap) {
|
|
|
3550
3473
|
return result;
|
|
3551
3474
|
}
|
|
3552
3475
|
function publicSearchIndexerToGeneratedSearchIndexer(indexer) {
|
|
3553
|
-
return {
|
|
3554
|
-
...indexer,
|
|
3555
|
-
encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey),
|
|
3556
|
-
};
|
|
3476
|
+
return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey) });
|
|
3557
3477
|
}
|
|
3558
3478
|
function generatedSearchIndexerToPublicSearchIndexer(indexer) {
|
|
3559
|
-
return {
|
|
3560
|
-
...indexer,
|
|
3561
|
-
encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey),
|
|
3562
|
-
cache: convertSearchIndexerCacheToPublic(indexer.cache),
|
|
3563
|
-
};
|
|
3479
|
+
return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
|
|
3564
3480
|
}
|
|
3565
3481
|
function generatedSearchRequestToPublicSearchRequest(request) {
|
|
3566
|
-
const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode,
|
|
3567
|
-
const publicRequest = {
|
|
3568
|
-
semanticErrorHandlingMode: semanticErrorHandling,
|
|
3569
|
-
debugMode: debug,
|
|
3570
|
-
vectorFilterMode: vectorFilterMode,
|
|
3571
|
-
vectorQueries: vectorQueries
|
|
3572
|
-
?.map((convertVectorQueryToPublic))
|
|
3573
|
-
.filter((v) => v !== undefined),
|
|
3574
|
-
...props,
|
|
3575
|
-
};
|
|
3482
|
+
const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode } = request, props = tslib.__rest(request, ["semanticErrorHandling", "debug", "vectorQueries", "vectorFilterMode"]);
|
|
3483
|
+
const publicRequest = Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug, vectorFilterMode: vectorFilterMode, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map((convertVectorQueryToPublic)).filter((v) => v !== undefined) }, props);
|
|
3576
3484
|
return publicRequest;
|
|
3577
3485
|
}
|
|
3578
3486
|
function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
@@ -3635,11 +3543,12 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
|
|
|
3635
3543
|
return dataDeletionDetectionPolicy;
|
|
3636
3544
|
}
|
|
3637
3545
|
function convertVectorQueryToPublic(vector) {
|
|
3546
|
+
var _a;
|
|
3638
3547
|
if (!vector) {
|
|
3639
3548
|
return vector;
|
|
3640
3549
|
}
|
|
3641
|
-
const fields = vector.fields
|
|
3642
|
-
return {
|
|
3550
|
+
const fields = (_a = vector.fields) === null || _a === void 0 ? void 0 : _a.split(",");
|
|
3551
|
+
return Object.assign(Object.assign({}, vector), { fields });
|
|
3643
3552
|
}
|
|
3644
3553
|
function getRandomIntegerInclusive(min, max) {
|
|
3645
3554
|
// Make sure inputs are integers.
|
|
@@ -3664,19 +3573,13 @@ function convertKnowledgeStoreToPublic(knowledgeStore) {
|
|
|
3664
3573
|
if (!knowledgeStore) {
|
|
3665
3574
|
return knowledgeStore;
|
|
3666
3575
|
}
|
|
3667
|
-
return {
|
|
3668
|
-
...knowledgeStore,
|
|
3669
|
-
identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity),
|
|
3670
|
-
};
|
|
3576
|
+
return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
|
|
3671
3577
|
}
|
|
3672
3578
|
function convertSearchIndexerCacheToPublic(cache) {
|
|
3673
3579
|
if (!cache) {
|
|
3674
3580
|
return cache;
|
|
3675
3581
|
}
|
|
3676
|
-
return {
|
|
3677
|
-
...cache,
|
|
3678
|
-
identity: convertSearchIndexerDataIdentityToPublic(cache.identity),
|
|
3679
|
-
};
|
|
3582
|
+
return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
|
|
3680
3583
|
}
|
|
3681
3584
|
|
|
3682
3585
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -3746,6 +3649,7 @@ class SearchClient {
|
|
|
3746
3649
|
* non-nullable type `string`.
|
|
3747
3650
|
*/
|
|
3748
3651
|
constructor(endpoint, indexName, credential, options = {}) {
|
|
3652
|
+
var _a, _b;
|
|
3749
3653
|
/// Maintenance note: when updating supported API versions,
|
|
3750
3654
|
/// the ContinuationToken logic will need to be updated below.
|
|
3751
3655
|
/**
|
|
@@ -3759,24 +3663,21 @@ class SearchClient {
|
|
|
3759
3663
|
this.apiVersion = defaultServiceVersion;
|
|
3760
3664
|
this.endpoint = endpoint;
|
|
3761
3665
|
this.indexName = indexName;
|
|
3762
|
-
const internalClientPipelineOptions = {
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
"throttle-reason",
|
|
3774
|
-
],
|
|
3775
|
-
},
|
|
3666
|
+
const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
3667
|
+
loggingOptions: {
|
|
3668
|
+
logger: logger.info,
|
|
3669
|
+
additionalAllowedHeaderNames: [
|
|
3670
|
+
"elapsed-time",
|
|
3671
|
+
"Location",
|
|
3672
|
+
"OData-MaxVersion",
|
|
3673
|
+
"OData-Version",
|
|
3674
|
+
"Prefer",
|
|
3675
|
+
"throttle-reason",
|
|
3676
|
+
],
|
|
3776
3677
|
},
|
|
3777
|
-
};
|
|
3678
|
+
});
|
|
3778
3679
|
this.serviceVersion =
|
|
3779
|
-
options.serviceVersion
|
|
3680
|
+
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
3780
3681
|
this.apiVersion = this.serviceVersion;
|
|
3781
3682
|
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3782
3683
|
if (coreAuth.isTokenCredential(credential)) {
|
|
@@ -3798,15 +3699,12 @@ class SearchClient {
|
|
|
3798
3699
|
const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
|
|
3799
3700
|
try {
|
|
3800
3701
|
let documentsCount = 0;
|
|
3801
|
-
await this.client.documents.count({
|
|
3802
|
-
...updatedOptions,
|
|
3803
|
-
onResponse: (rawResponse, flatResponse) => {
|
|
3702
|
+
await this.client.documents.count(Object.assign(Object.assign({}, updatedOptions), { onResponse: (rawResponse, flatResponse) => {
|
|
3804
3703
|
documentsCount = Number(rawResponse.bodyAsText);
|
|
3805
3704
|
if (updatedOptions.onResponse) {
|
|
3806
3705
|
updatedOptions.onResponse(rawResponse, flatResponse);
|
|
3807
3706
|
}
|
|
3808
|
-
}
|
|
3809
|
-
});
|
|
3707
|
+
} }));
|
|
3810
3708
|
return documentsCount;
|
|
3811
3709
|
}
|
|
3812
3710
|
catch (e) {
|
|
@@ -3855,13 +3753,8 @@ class SearchClient {
|
|
|
3855
3753
|
* ```
|
|
3856
3754
|
*/
|
|
3857
3755
|
async autocomplete(searchText, suggesterName, options = {}) {
|
|
3858
|
-
const { searchFields,
|
|
3859
|
-
const fullOptions = {
|
|
3860
|
-
searchText: searchText,
|
|
3861
|
-
suggesterName: suggesterName,
|
|
3862
|
-
searchFields: this.convertSearchFields(searchFields),
|
|
3863
|
-
...nonFieldOptions,
|
|
3864
|
-
};
|
|
3756
|
+
const { searchFields } = options, nonFieldOptions = tslib.__rest(options, ["searchFields"]);
|
|
3757
|
+
const fullOptions = Object.assign({ searchText: searchText, suggesterName: suggesterName, searchFields: this.convertSearchFields(searchFields) }, nonFieldOptions);
|
|
3865
3758
|
if (!fullOptions.searchText) {
|
|
3866
3759
|
throw new RangeError("searchText must be provided.");
|
|
3867
3760
|
}
|
|
@@ -3885,37 +3778,16 @@ class SearchClient {
|
|
|
3885
3778
|
}
|
|
3886
3779
|
}
|
|
3887
3780
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
3888
|
-
const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectorQueries, answers, semanticErrorHandlingMode, debugMode,
|
|
3889
|
-
const fullOptions = {
|
|
3890
|
-
...restOptions,
|
|
3891
|
-
...nextPageParameters,
|
|
3892
|
-
searchFields: this.convertSearchFields(searchFields),
|
|
3893
|
-
semanticFields: this.convertSemanticFields(semanticFields),
|
|
3894
|
-
select: this.convertSelect(select) || "*",
|
|
3895
|
-
orderBy: this.convertOrderBy(orderBy),
|
|
3896
|
-
includeTotalResultCount: includeTotalCount,
|
|
3897
|
-
vectorQueries: vectorQueries?.map(this.convertVectorQuery.bind(this)),
|
|
3898
|
-
answers: this.convertAnswers(answers),
|
|
3899
|
-
semanticErrorHandling: semanticErrorHandlingMode,
|
|
3900
|
-
debug: debugMode,
|
|
3901
|
-
};
|
|
3781
|
+
const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectorQueries, answers, semanticErrorHandlingMode, debugMode } = options, restOptions = tslib.__rest(options, ["searchFields", "semanticFields", "select", "orderBy", "includeTotalCount", "vectorQueries", "answers", "semanticErrorHandlingMode", "debugMode"]);
|
|
3782
|
+
const fullOptions = Object.assign(Object.assign(Object.assign({}, restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map(this.convertVectorQuery.bind(this)), answers: this.convertAnswers(answers), semanticErrorHandling: semanticErrorHandlingMode, debug: debugMode });
|
|
3902
3783
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
|
|
3903
3784
|
try {
|
|
3904
|
-
const result = await this.client.documents.searchPost({
|
|
3905
|
-
|
|
3906
|
-
searchText: searchText,
|
|
3907
|
-
}, updatedOptions);
|
|
3908
|
-
const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason, semanticPartialResponseType, ...restResult } = result;
|
|
3785
|
+
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
|
|
3786
|
+
const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason, semanticPartialResponseType } = result, restResult = tslib.__rest(result, ["results", "nextLink", "nextPageParameters", "semanticPartialResponseReason", "semanticPartialResponseType"]);
|
|
3909
3787
|
const modifiedResults = generatedSearchResultToPublicSearchResult(results);
|
|
3910
|
-
const converted = {
|
|
3911
|
-
...restResult,
|
|
3912
|
-
results: modifiedResults,
|
|
3913
|
-
semanticPartialResponseReason: semanticPartialResponseReason,
|
|
3914
|
-
semanticPartialResponseType: semanticPartialResponseType,
|
|
3915
|
-
continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters
|
|
3788
|
+
const converted = Object.assign(Object.assign({}, restResult), { results: modifiedResults, semanticPartialResponseReason: semanticPartialResponseReason, semanticPartialResponseType: semanticPartialResponseType, continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters
|
|
3916
3789
|
? generatedSearchRequestToPublicSearchRequest(resultNextPageParameters)
|
|
3917
|
-
: resultNextPageParameters)
|
|
3918
|
-
};
|
|
3790
|
+
: resultNextPageParameters) });
|
|
3919
3791
|
return deserialize(converted);
|
|
3920
3792
|
}
|
|
3921
3793
|
catch (e) {
|
|
@@ -3929,27 +3801,44 @@ class SearchClient {
|
|
|
3929
3801
|
span.end();
|
|
3930
3802
|
}
|
|
3931
3803
|
}
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3804
|
+
listSearchResultsPage(searchText, options = {}, settings = {}) {
|
|
3805
|
+
return tslib.__asyncGenerator(this, arguments, function* listSearchResultsPage_1() {
|
|
3806
|
+
let decodedContinuation = this.decodeContinuationToken(settings.continuationToken);
|
|
3807
|
+
let result = yield tslib.__await(this.searchDocuments(searchText, options, decodedContinuation === null || decodedContinuation === void 0 ? void 0 : decodedContinuation.nextPageParameters));
|
|
3808
|
+
yield yield tslib.__await(result);
|
|
3809
|
+
// Technically, we should also leverage nextLink, but the generated code
|
|
3810
|
+
// doesn't support this yet.
|
|
3811
|
+
while (result.continuationToken) {
|
|
3812
|
+
decodedContinuation = this.decodeContinuationToken(result.continuationToken);
|
|
3813
|
+
result = yield tslib.__await(this.searchDocuments(searchText, options, decodedContinuation === null || decodedContinuation === void 0 ? void 0 : decodedContinuation.nextPageParameters));
|
|
3814
|
+
yield yield tslib.__await(result);
|
|
3815
|
+
}
|
|
3816
|
+
});
|
|
3943
3817
|
}
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3818
|
+
listSearchResultsAll(firstPage, searchText, options = {}) {
|
|
3819
|
+
return tslib.__asyncGenerator(this, arguments, function* listSearchResultsAll_1() {
|
|
3820
|
+
var _a, e_1, _b, _c;
|
|
3821
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(firstPage.results)));
|
|
3822
|
+
if (firstPage.continuationToken) {
|
|
3823
|
+
try {
|
|
3824
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
|
|
3825
|
+
continuationToken: firstPage.continuationToken,
|
|
3826
|
+
})), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3827
|
+
_c = _f.value;
|
|
3828
|
+
_d = false;
|
|
3829
|
+
const page = _c;
|
|
3830
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3834
|
+
finally {
|
|
3835
|
+
try {
|
|
3836
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3837
|
+
}
|
|
3838
|
+
finally { if (e_1) throw e_1.error; }
|
|
3839
|
+
}
|
|
3951
3840
|
}
|
|
3952
|
-
}
|
|
3841
|
+
});
|
|
3953
3842
|
}
|
|
3954
3843
|
listSearchResults(firstPage, searchText, options = {}) {
|
|
3955
3844
|
const iter = this.listSearchResultsAll(firstPage, searchText, options);
|
|
@@ -4002,10 +3891,7 @@ class SearchClient {
|
|
|
4002
3891
|
const { span, updatedOptions } = createSpan("SearchClient-search", options);
|
|
4003
3892
|
try {
|
|
4004
3893
|
const pageResult = await this.searchDocuments(searchText, updatedOptions);
|
|
4005
|
-
return {
|
|
4006
|
-
...pageResult,
|
|
4007
|
-
results: this.listSearchResults(pageResult, searchText, updatedOptions),
|
|
4008
|
-
};
|
|
3894
|
+
return Object.assign(Object.assign({}, pageResult), { results: this.listSearchResults(pageResult, searchText, updatedOptions) });
|
|
4009
3895
|
}
|
|
4010
3896
|
catch (e) {
|
|
4011
3897
|
span.setStatus({
|
|
@@ -4053,15 +3939,8 @@ class SearchClient {
|
|
|
4053
3939
|
* ```
|
|
4054
3940
|
*/
|
|
4055
3941
|
async suggest(searchText, suggesterName, options = {}) {
|
|
4056
|
-
const { select, searchFields, orderBy,
|
|
4057
|
-
const fullOptions = {
|
|
4058
|
-
searchText: searchText,
|
|
4059
|
-
suggesterName: suggesterName,
|
|
4060
|
-
searchFields: this.convertSearchFields(searchFields),
|
|
4061
|
-
select: this.convertSelect(select),
|
|
4062
|
-
orderBy: this.convertOrderBy(orderBy),
|
|
4063
|
-
...nonFieldOptions,
|
|
4064
|
-
};
|
|
3942
|
+
const { select, searchFields, orderBy } = options, nonFieldOptions = tslib.__rest(options, ["select", "searchFields", "orderBy"]);
|
|
3943
|
+
const fullOptions = Object.assign({ searchText: searchText, suggesterName: suggesterName, searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions);
|
|
4065
3944
|
if (!fullOptions.searchText) {
|
|
4066
3945
|
throw new RangeError("searchText must be provided.");
|
|
4067
3946
|
}
|
|
@@ -4093,10 +3972,7 @@ class SearchClient {
|
|
|
4093
3972
|
async getDocument(key, options = {}) {
|
|
4094
3973
|
const { span, updatedOptions } = createSpan("SearchClient-getDocument", options);
|
|
4095
3974
|
try {
|
|
4096
|
-
const result = await this.client.documents.get(key, {
|
|
4097
|
-
...updatedOptions,
|
|
4098
|
-
selectedFields: updatedOptions.selectedFields,
|
|
4099
|
-
});
|
|
3975
|
+
const result = await this.client.documents.get(key, Object.assign(Object.assign({}, updatedOptions), { selectedFields: updatedOptions.selectedFields }));
|
|
4100
3976
|
return deserialize(result);
|
|
4101
3977
|
}
|
|
4102
3978
|
catch (e) {
|
|
@@ -4126,15 +4002,12 @@ class SearchClient {
|
|
|
4126
4002
|
const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options);
|
|
4127
4003
|
try {
|
|
4128
4004
|
let status = 0;
|
|
4129
|
-
const result = await this.client.documents.index({ actions: serialize(batch.actions) }, {
|
|
4130
|
-
...updatedOptions,
|
|
4131
|
-
onResponse: (rawResponse, flatResponse) => {
|
|
4005
|
+
const result = await this.client.documents.index({ actions: serialize(batch.actions) }, Object.assign(Object.assign({}, updatedOptions), { onResponse: (rawResponse, flatResponse) => {
|
|
4132
4006
|
status = rawResponse.status;
|
|
4133
4007
|
if (updatedOptions.onResponse) {
|
|
4134
4008
|
updatedOptions.onResponse(rawResponse, flatResponse);
|
|
4135
4009
|
}
|
|
4136
|
-
}
|
|
4137
|
-
});
|
|
4010
|
+
} }));
|
|
4138
4011
|
if (options.throwOnAnyFailure && status === 207) {
|
|
4139
4012
|
throw result;
|
|
4140
4013
|
}
|
|
@@ -4329,7 +4202,7 @@ class SearchClient {
|
|
|
4329
4202
|
if (!vectorQuery) {
|
|
4330
4203
|
return vectorQuery;
|
|
4331
4204
|
}
|
|
4332
|
-
return {
|
|
4205
|
+
return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
|
|
4333
4206
|
}
|
|
4334
4207
|
}
|
|
4335
4208
|
|
|
@@ -4364,6 +4237,7 @@ class SearchIndexingBufferedSender {
|
|
|
4364
4237
|
*
|
|
4365
4238
|
*/
|
|
4366
4239
|
constructor(client, documentKeyRetriever, options = {}) {
|
|
4240
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4367
4241
|
/**
|
|
4368
4242
|
* Event emitter/publisher used in the Buffered Sender
|
|
4369
4243
|
*/
|
|
@@ -4371,17 +4245,17 @@ class SearchIndexingBufferedSender {
|
|
|
4371
4245
|
this.client = client;
|
|
4372
4246
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
4373
4247
|
// General Configuration properties
|
|
4374
|
-
this.autoFlush = options.autoFlush
|
|
4375
|
-
this.initialBatchActionCount = options.initialBatchActionCount
|
|
4376
|
-
this.flushWindowInMs = options.flushWindowInMs
|
|
4248
|
+
this.autoFlush = (_a = options.autoFlush) !== null && _a !== void 0 ? _a : true;
|
|
4249
|
+
this.initialBatchActionCount = (_b = options.initialBatchActionCount) !== null && _b !== void 0 ? _b : DEFAULT_BATCH_SIZE;
|
|
4250
|
+
this.flushWindowInMs = (_c = options.flushWindowInMs) !== null && _c !== void 0 ? _c : DEFAULT_FLUSH_WINDOW;
|
|
4377
4251
|
// Retry specific configuration properties
|
|
4378
|
-
this.throttlingDelayInMs = options.throttlingDelayInMs
|
|
4379
|
-
this.maxRetriesPerAction = options.maxRetriesPerAction
|
|
4380
|
-
this.maxThrottlingDelayInMs = options.maxThrottlingDelayInMs
|
|
4252
|
+
this.throttlingDelayInMs = (_d = options.throttlingDelayInMs) !== null && _d !== void 0 ? _d : DEFAULT_FLUSH_WINDOW;
|
|
4253
|
+
this.maxRetriesPerAction = (_e = options.maxRetriesPerAction) !== null && _e !== void 0 ? _e : DEFAULT_RETRY_COUNT;
|
|
4254
|
+
this.maxThrottlingDelayInMs = (_f = options.maxThrottlingDelayInMs) !== null && _f !== void 0 ? _f : DEFAULT_MAX_RETRY_DELAY;
|
|
4381
4255
|
this.batchObject = new IndexDocumentsBatch();
|
|
4382
4256
|
if (this.autoFlush) {
|
|
4383
4257
|
const interval = setInterval(() => this.flush(), this.flushWindowInMs);
|
|
4384
|
-
interval
|
|
4258
|
+
interval === null || interval === void 0 ? void 0 : interval.unref();
|
|
4385
4259
|
this.cleanupTimer = () => {
|
|
4386
4260
|
clearInterval(interval);
|
|
4387
4261
|
};
|
|
@@ -7805,9 +7679,7 @@ const SearchIndexerDataNoneIdentity = {
|
|
|
7805
7679
|
className: "SearchIndexerDataNoneIdentity",
|
|
7806
7680
|
uberParent: "SearchIndexerDataIdentity",
|
|
7807
7681
|
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
7808
|
-
modelProperties: {
|
|
7809
|
-
...SearchIndexerDataIdentity.type.modelProperties
|
|
7810
|
-
}
|
|
7682
|
+
modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties)
|
|
7811
7683
|
}
|
|
7812
7684
|
};
|
|
7813
7685
|
const SearchIndexerDataUserAssignedIdentity = {
|
|
@@ -7817,16 +7689,13 @@ const SearchIndexerDataUserAssignedIdentity = {
|
|
|
7817
7689
|
className: "SearchIndexerDataUserAssignedIdentity",
|
|
7818
7690
|
uberParent: "SearchIndexerDataIdentity",
|
|
7819
7691
|
polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
|
|
7820
|
-
modelProperties: {
|
|
7821
|
-
...SearchIndexerDataIdentity.type.modelProperties,
|
|
7822
|
-
userAssignedIdentity: {
|
|
7692
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
|
|
7823
7693
|
serializedName: "userAssignedIdentity",
|
|
7824
7694
|
required: true,
|
|
7825
7695
|
type: {
|
|
7826
7696
|
name: "String"
|
|
7827
7697
|
}
|
|
7828
|
-
}
|
|
7829
|
-
}
|
|
7698
|
+
} })
|
|
7830
7699
|
}
|
|
7831
7700
|
};
|
|
7832
7701
|
const HighWaterMarkChangeDetectionPolicy = {
|
|
@@ -7836,16 +7705,13 @@ const HighWaterMarkChangeDetectionPolicy = {
|
|
|
7836
7705
|
className: "HighWaterMarkChangeDetectionPolicy",
|
|
7837
7706
|
uberParent: "DataChangeDetectionPolicy",
|
|
7838
7707
|
polymorphicDiscriminator: DataChangeDetectionPolicy.type.polymorphicDiscriminator,
|
|
7839
|
-
modelProperties: {
|
|
7840
|
-
...DataChangeDetectionPolicy.type.modelProperties,
|
|
7841
|
-
highWaterMarkColumnName: {
|
|
7708
|
+
modelProperties: Object.assign(Object.assign({}, DataChangeDetectionPolicy.type.modelProperties), { highWaterMarkColumnName: {
|
|
7842
7709
|
serializedName: "highWaterMarkColumnName",
|
|
7843
7710
|
required: true,
|
|
7844
7711
|
type: {
|
|
7845
7712
|
name: "String"
|
|
7846
7713
|
}
|
|
7847
|
-
}
|
|
7848
|
-
}
|
|
7714
|
+
} })
|
|
7849
7715
|
}
|
|
7850
7716
|
};
|
|
7851
7717
|
const SqlIntegratedChangeTrackingPolicy = {
|
|
@@ -7855,9 +7721,7 @@ const SqlIntegratedChangeTrackingPolicy = {
|
|
|
7855
7721
|
className: "SqlIntegratedChangeTrackingPolicy",
|
|
7856
7722
|
uberParent: "DataChangeDetectionPolicy",
|
|
7857
7723
|
polymorphicDiscriminator: DataChangeDetectionPolicy.type.polymorphicDiscriminator,
|
|
7858
|
-
modelProperties: {
|
|
7859
|
-
...DataChangeDetectionPolicy.type.modelProperties
|
|
7860
|
-
}
|
|
7724
|
+
modelProperties: Object.assign({}, DataChangeDetectionPolicy.type.modelProperties)
|
|
7861
7725
|
}
|
|
7862
7726
|
};
|
|
7863
7727
|
const SoftDeleteColumnDeletionDetectionPolicy = {
|
|
@@ -7867,21 +7731,17 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
|
|
|
7867
7731
|
className: "SoftDeleteColumnDeletionDetectionPolicy",
|
|
7868
7732
|
uberParent: "DataDeletionDetectionPolicy",
|
|
7869
7733
|
polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
|
|
7870
|
-
modelProperties: {
|
|
7871
|
-
...DataDeletionDetectionPolicy.type.modelProperties,
|
|
7872
|
-
softDeleteColumnName: {
|
|
7734
|
+
modelProperties: Object.assign(Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties), { softDeleteColumnName: {
|
|
7873
7735
|
serializedName: "softDeleteColumnName",
|
|
7874
7736
|
type: {
|
|
7875
7737
|
name: "String"
|
|
7876
7738
|
}
|
|
7877
|
-
},
|
|
7878
|
-
softDeleteMarkerValue: {
|
|
7739
|
+
}, softDeleteMarkerValue: {
|
|
7879
7740
|
serializedName: "softDeleteMarkerValue",
|
|
7880
7741
|
type: {
|
|
7881
7742
|
name: "String"
|
|
7882
7743
|
}
|
|
7883
|
-
}
|
|
7884
|
-
}
|
|
7744
|
+
} })
|
|
7885
7745
|
}
|
|
7886
7746
|
};
|
|
7887
7747
|
const NativeBlobSoftDeleteDeletionDetectionPolicy = {
|
|
@@ -7891,9 +7751,7 @@ const NativeBlobSoftDeleteDeletionDetectionPolicy = {
|
|
|
7891
7751
|
className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
7892
7752
|
uberParent: "DataDeletionDetectionPolicy",
|
|
7893
7753
|
polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
|
|
7894
|
-
modelProperties: {
|
|
7895
|
-
...DataDeletionDetectionPolicy.type.modelProperties
|
|
7896
|
-
}
|
|
7754
|
+
modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties)
|
|
7897
7755
|
}
|
|
7898
7756
|
};
|
|
7899
7757
|
const ConditionalSkill = {
|
|
@@ -7903,9 +7761,7 @@ const ConditionalSkill = {
|
|
|
7903
7761
|
className: "ConditionalSkill",
|
|
7904
7762
|
uberParent: "SearchIndexerSkill",
|
|
7905
7763
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7906
|
-
modelProperties: {
|
|
7907
|
-
...SearchIndexerSkill.type.modelProperties
|
|
7908
|
-
}
|
|
7764
|
+
modelProperties: Object.assign({}, SearchIndexerSkill.type.modelProperties)
|
|
7909
7765
|
}
|
|
7910
7766
|
};
|
|
7911
7767
|
const KeyPhraseExtractionSkill = {
|
|
@@ -7915,29 +7771,24 @@ const KeyPhraseExtractionSkill = {
|
|
|
7915
7771
|
className: "KeyPhraseExtractionSkill",
|
|
7916
7772
|
uberParent: "SearchIndexerSkill",
|
|
7917
7773
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7918
|
-
modelProperties: {
|
|
7919
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
7920
|
-
defaultLanguageCode: {
|
|
7774
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
7921
7775
|
serializedName: "defaultLanguageCode",
|
|
7922
7776
|
type: {
|
|
7923
7777
|
name: "String"
|
|
7924
7778
|
}
|
|
7925
|
-
},
|
|
7926
|
-
maxKeyPhraseCount: {
|
|
7779
|
+
}, maxKeyPhraseCount: {
|
|
7927
7780
|
serializedName: "maxKeyPhraseCount",
|
|
7928
7781
|
nullable: true,
|
|
7929
7782
|
type: {
|
|
7930
7783
|
name: "Number"
|
|
7931
7784
|
}
|
|
7932
|
-
},
|
|
7933
|
-
modelVersion: {
|
|
7785
|
+
}, modelVersion: {
|
|
7934
7786
|
serializedName: "modelVersion",
|
|
7935
7787
|
nullable: true,
|
|
7936
7788
|
type: {
|
|
7937
7789
|
name: "String"
|
|
7938
7790
|
}
|
|
7939
|
-
}
|
|
7940
|
-
}
|
|
7791
|
+
} })
|
|
7941
7792
|
}
|
|
7942
7793
|
};
|
|
7943
7794
|
const OcrSkill = {
|
|
@@ -7947,28 +7798,23 @@ const OcrSkill = {
|
|
|
7947
7798
|
className: "OcrSkill",
|
|
7948
7799
|
uberParent: "SearchIndexerSkill",
|
|
7949
7800
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7950
|
-
modelProperties: {
|
|
7951
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
7952
|
-
defaultLanguageCode: {
|
|
7801
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
7953
7802
|
serializedName: "defaultLanguageCode",
|
|
7954
7803
|
type: {
|
|
7955
7804
|
name: "String"
|
|
7956
7805
|
}
|
|
7957
|
-
},
|
|
7958
|
-
shouldDetectOrientation: {
|
|
7806
|
+
}, shouldDetectOrientation: {
|
|
7959
7807
|
defaultValue: false,
|
|
7960
7808
|
serializedName: "detectOrientation",
|
|
7961
7809
|
type: {
|
|
7962
7810
|
name: "Boolean"
|
|
7963
7811
|
}
|
|
7964
|
-
},
|
|
7965
|
-
lineEnding: {
|
|
7812
|
+
}, lineEnding: {
|
|
7966
7813
|
serializedName: "lineEnding",
|
|
7967
7814
|
type: {
|
|
7968
7815
|
name: "String"
|
|
7969
7816
|
}
|
|
7970
|
-
}
|
|
7971
|
-
}
|
|
7817
|
+
} })
|
|
7972
7818
|
}
|
|
7973
7819
|
};
|
|
7974
7820
|
const ImageAnalysisSkill = {
|
|
@@ -7978,15 +7824,12 @@ const ImageAnalysisSkill = {
|
|
|
7978
7824
|
className: "ImageAnalysisSkill",
|
|
7979
7825
|
uberParent: "SearchIndexerSkill",
|
|
7980
7826
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7981
|
-
modelProperties: {
|
|
7982
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
7983
|
-
defaultLanguageCode: {
|
|
7827
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
7984
7828
|
serializedName: "defaultLanguageCode",
|
|
7985
7829
|
type: {
|
|
7986
7830
|
name: "String"
|
|
7987
7831
|
}
|
|
7988
|
-
},
|
|
7989
|
-
visualFeatures: {
|
|
7832
|
+
}, visualFeatures: {
|
|
7990
7833
|
serializedName: "visualFeatures",
|
|
7991
7834
|
type: {
|
|
7992
7835
|
name: "Sequence",
|
|
@@ -7996,8 +7839,7 @@ const ImageAnalysisSkill = {
|
|
|
7996
7839
|
}
|
|
7997
7840
|
}
|
|
7998
7841
|
}
|
|
7999
|
-
},
|
|
8000
|
-
details: {
|
|
7842
|
+
}, details: {
|
|
8001
7843
|
serializedName: "details",
|
|
8002
7844
|
type: {
|
|
8003
7845
|
name: "Sequence",
|
|
@@ -8007,8 +7849,7 @@ const ImageAnalysisSkill = {
|
|
|
8007
7849
|
}
|
|
8008
7850
|
}
|
|
8009
7851
|
}
|
|
8010
|
-
}
|
|
8011
|
-
}
|
|
7852
|
+
} })
|
|
8012
7853
|
}
|
|
8013
7854
|
};
|
|
8014
7855
|
const LanguageDetectionSkill = {
|
|
@@ -8018,23 +7859,19 @@ const LanguageDetectionSkill = {
|
|
|
8018
7859
|
className: "LanguageDetectionSkill",
|
|
8019
7860
|
uberParent: "SearchIndexerSkill",
|
|
8020
7861
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8021
|
-
modelProperties: {
|
|
8022
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8023
|
-
defaultCountryHint: {
|
|
7862
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultCountryHint: {
|
|
8024
7863
|
serializedName: "defaultCountryHint",
|
|
8025
7864
|
nullable: true,
|
|
8026
7865
|
type: {
|
|
8027
7866
|
name: "String"
|
|
8028
7867
|
}
|
|
8029
|
-
},
|
|
8030
|
-
modelVersion: {
|
|
7868
|
+
}, modelVersion: {
|
|
8031
7869
|
serializedName: "modelVersion",
|
|
8032
7870
|
nullable: true,
|
|
8033
7871
|
type: {
|
|
8034
7872
|
name: "String"
|
|
8035
7873
|
}
|
|
8036
|
-
}
|
|
8037
|
-
}
|
|
7874
|
+
} })
|
|
8038
7875
|
}
|
|
8039
7876
|
};
|
|
8040
7877
|
const ShaperSkill = {
|
|
@@ -8044,9 +7881,7 @@ const ShaperSkill = {
|
|
|
8044
7881
|
className: "ShaperSkill",
|
|
8045
7882
|
uberParent: "SearchIndexerSkill",
|
|
8046
7883
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8047
|
-
modelProperties: {
|
|
8048
|
-
...SearchIndexerSkill.type.modelProperties
|
|
8049
|
-
}
|
|
7884
|
+
modelProperties: Object.assign({}, SearchIndexerSkill.type.modelProperties)
|
|
8050
7885
|
}
|
|
8051
7886
|
};
|
|
8052
7887
|
const MergeSkill = {
|
|
@@ -8056,23 +7891,19 @@ const MergeSkill = {
|
|
|
8056
7891
|
className: "MergeSkill",
|
|
8057
7892
|
uberParent: "SearchIndexerSkill",
|
|
8058
7893
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8059
|
-
modelProperties: {
|
|
8060
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8061
|
-
insertPreTag: {
|
|
7894
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { insertPreTag: {
|
|
8062
7895
|
defaultValue: " ",
|
|
8063
7896
|
serializedName: "insertPreTag",
|
|
8064
7897
|
type: {
|
|
8065
7898
|
name: "String"
|
|
8066
7899
|
}
|
|
8067
|
-
},
|
|
8068
|
-
insertPostTag: {
|
|
7900
|
+
}, insertPostTag: {
|
|
8069
7901
|
defaultValue: " ",
|
|
8070
7902
|
serializedName: "insertPostTag",
|
|
8071
7903
|
type: {
|
|
8072
7904
|
name: "String"
|
|
8073
7905
|
}
|
|
8074
|
-
}
|
|
8075
|
-
}
|
|
7906
|
+
} })
|
|
8076
7907
|
}
|
|
8077
7908
|
};
|
|
8078
7909
|
const EntityRecognitionSkill = {
|
|
@@ -8082,9 +7913,7 @@ const EntityRecognitionSkill = {
|
|
|
8082
7913
|
className: "EntityRecognitionSkill",
|
|
8083
7914
|
uberParent: "SearchIndexerSkill",
|
|
8084
7915
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8085
|
-
modelProperties: {
|
|
8086
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8087
|
-
categories: {
|
|
7916
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { categories: {
|
|
8088
7917
|
serializedName: "categories",
|
|
8089
7918
|
type: {
|
|
8090
7919
|
name: "Sequence",
|
|
@@ -8094,28 +7923,24 @@ const EntityRecognitionSkill = {
|
|
|
8094
7923
|
}
|
|
8095
7924
|
}
|
|
8096
7925
|
}
|
|
8097
|
-
},
|
|
8098
|
-
defaultLanguageCode: {
|
|
7926
|
+
}, defaultLanguageCode: {
|
|
8099
7927
|
serializedName: "defaultLanguageCode",
|
|
8100
7928
|
type: {
|
|
8101
7929
|
name: "String"
|
|
8102
7930
|
}
|
|
8103
|
-
},
|
|
8104
|
-
includeTypelessEntities: {
|
|
7931
|
+
}, includeTypelessEntities: {
|
|
8105
7932
|
serializedName: "includeTypelessEntities",
|
|
8106
7933
|
nullable: true,
|
|
8107
7934
|
type: {
|
|
8108
7935
|
name: "Boolean"
|
|
8109
7936
|
}
|
|
8110
|
-
},
|
|
8111
|
-
minimumPrecision: {
|
|
7937
|
+
}, minimumPrecision: {
|
|
8112
7938
|
serializedName: "minimumPrecision",
|
|
8113
7939
|
nullable: true,
|
|
8114
7940
|
type: {
|
|
8115
7941
|
name: "Number"
|
|
8116
7942
|
}
|
|
8117
|
-
}
|
|
8118
|
-
}
|
|
7943
|
+
} })
|
|
8119
7944
|
}
|
|
8120
7945
|
};
|
|
8121
7946
|
const SentimentSkill = {
|
|
@@ -8125,15 +7950,12 @@ const SentimentSkill = {
|
|
|
8125
7950
|
className: "SentimentSkill",
|
|
8126
7951
|
uberParent: "SearchIndexerSkill",
|
|
8127
7952
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8128
|
-
modelProperties: {
|
|
8129
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8130
|
-
defaultLanguageCode: {
|
|
7953
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
8131
7954
|
serializedName: "defaultLanguageCode",
|
|
8132
7955
|
type: {
|
|
8133
7956
|
name: "String"
|
|
8134
7957
|
}
|
|
8135
|
-
}
|
|
8136
|
-
}
|
|
7958
|
+
} })
|
|
8137
7959
|
}
|
|
8138
7960
|
};
|
|
8139
7961
|
const SentimentSkillV3 = {
|
|
@@ -8143,30 +7965,25 @@ const SentimentSkillV3 = {
|
|
|
8143
7965
|
className: "SentimentSkillV3",
|
|
8144
7966
|
uberParent: "SearchIndexerSkill",
|
|
8145
7967
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8146
|
-
modelProperties: {
|
|
8147
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8148
|
-
defaultLanguageCode: {
|
|
7968
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
8149
7969
|
serializedName: "defaultLanguageCode",
|
|
8150
7970
|
nullable: true,
|
|
8151
7971
|
type: {
|
|
8152
7972
|
name: "String"
|
|
8153
7973
|
}
|
|
8154
|
-
},
|
|
8155
|
-
includeOpinionMining: {
|
|
7974
|
+
}, includeOpinionMining: {
|
|
8156
7975
|
defaultValue: false,
|
|
8157
7976
|
serializedName: "includeOpinionMining",
|
|
8158
7977
|
type: {
|
|
8159
7978
|
name: "Boolean"
|
|
8160
7979
|
}
|
|
8161
|
-
},
|
|
8162
|
-
modelVersion: {
|
|
7980
|
+
}, modelVersion: {
|
|
8163
7981
|
serializedName: "modelVersion",
|
|
8164
7982
|
nullable: true,
|
|
8165
7983
|
type: {
|
|
8166
7984
|
name: "String"
|
|
8167
7985
|
}
|
|
8168
|
-
}
|
|
8169
|
-
}
|
|
7986
|
+
} })
|
|
8170
7987
|
}
|
|
8171
7988
|
};
|
|
8172
7989
|
const EntityLinkingSkill = {
|
|
@@ -8176,16 +7993,13 @@ const EntityLinkingSkill = {
|
|
|
8176
7993
|
className: "EntityLinkingSkill",
|
|
8177
7994
|
uberParent: "SearchIndexerSkill",
|
|
8178
7995
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8179
|
-
modelProperties: {
|
|
8180
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8181
|
-
defaultLanguageCode: {
|
|
7996
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
8182
7997
|
serializedName: "defaultLanguageCode",
|
|
8183
7998
|
nullable: true,
|
|
8184
7999
|
type: {
|
|
8185
8000
|
name: "String"
|
|
8186
8001
|
}
|
|
8187
|
-
},
|
|
8188
|
-
minimumPrecision: {
|
|
8002
|
+
}, minimumPrecision: {
|
|
8189
8003
|
constraints: {
|
|
8190
8004
|
InclusiveMaximum: 1,
|
|
8191
8005
|
InclusiveMinimum: 0
|
|
@@ -8195,15 +8009,13 @@ const EntityLinkingSkill = {
|
|
|
8195
8009
|
type: {
|
|
8196
8010
|
name: "Number"
|
|
8197
8011
|
}
|
|
8198
|
-
},
|
|
8199
|
-
modelVersion: {
|
|
8012
|
+
}, modelVersion: {
|
|
8200
8013
|
serializedName: "modelVersion",
|
|
8201
8014
|
nullable: true,
|
|
8202
8015
|
type: {
|
|
8203
8016
|
name: "String"
|
|
8204
8017
|
}
|
|
8205
|
-
}
|
|
8206
|
-
}
|
|
8018
|
+
} })
|
|
8207
8019
|
}
|
|
8208
8020
|
};
|
|
8209
8021
|
const EntityRecognitionSkillV3 = {
|
|
@@ -8213,9 +8025,7 @@ const EntityRecognitionSkillV3 = {
|
|
|
8213
8025
|
className: "EntityRecognitionSkillV3",
|
|
8214
8026
|
uberParent: "SearchIndexerSkill",
|
|
8215
8027
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8216
|
-
modelProperties: {
|
|
8217
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8218
|
-
categories: {
|
|
8028
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { categories: {
|
|
8219
8029
|
serializedName: "categories",
|
|
8220
8030
|
type: {
|
|
8221
8031
|
name: "Sequence",
|
|
@@ -8225,15 +8035,13 @@ const EntityRecognitionSkillV3 = {
|
|
|
8225
8035
|
}
|
|
8226
8036
|
}
|
|
8227
8037
|
}
|
|
8228
|
-
},
|
|
8229
|
-
defaultLanguageCode: {
|
|
8038
|
+
}, defaultLanguageCode: {
|
|
8230
8039
|
serializedName: "defaultLanguageCode",
|
|
8231
8040
|
nullable: true,
|
|
8232
8041
|
type: {
|
|
8233
8042
|
name: "String"
|
|
8234
8043
|
}
|
|
8235
|
-
},
|
|
8236
|
-
minimumPrecision: {
|
|
8044
|
+
}, minimumPrecision: {
|
|
8237
8045
|
constraints: {
|
|
8238
8046
|
InclusiveMaximum: 1,
|
|
8239
8047
|
InclusiveMinimum: 0
|
|
@@ -8243,15 +8051,13 @@ const EntityRecognitionSkillV3 = {
|
|
|
8243
8051
|
type: {
|
|
8244
8052
|
name: "Number"
|
|
8245
8053
|
}
|
|
8246
|
-
},
|
|
8247
|
-
modelVersion: {
|
|
8054
|
+
}, modelVersion: {
|
|
8248
8055
|
serializedName: "modelVersion",
|
|
8249
8056
|
nullable: true,
|
|
8250
8057
|
type: {
|
|
8251
8058
|
name: "String"
|
|
8252
8059
|
}
|
|
8253
|
-
}
|
|
8254
|
-
}
|
|
8060
|
+
} })
|
|
8255
8061
|
}
|
|
8256
8062
|
};
|
|
8257
8063
|
const PIIDetectionSkill = {
|
|
@@ -8261,16 +8067,13 @@ const PIIDetectionSkill = {
|
|
|
8261
8067
|
className: "PIIDetectionSkill",
|
|
8262
8068
|
uberParent: "SearchIndexerSkill",
|
|
8263
8069
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8264
|
-
modelProperties: {
|
|
8265
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8266
|
-
defaultLanguageCode: {
|
|
8070
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
8267
8071
|
serializedName: "defaultLanguageCode",
|
|
8268
8072
|
nullable: true,
|
|
8269
8073
|
type: {
|
|
8270
8074
|
name: "String"
|
|
8271
8075
|
}
|
|
8272
|
-
},
|
|
8273
|
-
minimumPrecision: {
|
|
8076
|
+
}, minimumPrecision: {
|
|
8274
8077
|
constraints: {
|
|
8275
8078
|
InclusiveMaximum: 1,
|
|
8276
8079
|
InclusiveMinimum: 0
|
|
@@ -8280,14 +8083,12 @@ const PIIDetectionSkill = {
|
|
|
8280
8083
|
type: {
|
|
8281
8084
|
name: "Number"
|
|
8282
8085
|
}
|
|
8283
|
-
},
|
|
8284
|
-
maskingMode: {
|
|
8086
|
+
}, maskingMode: {
|
|
8285
8087
|
serializedName: "maskingMode",
|
|
8286
8088
|
type: {
|
|
8287
8089
|
name: "String"
|
|
8288
8090
|
}
|
|
8289
|
-
},
|
|
8290
|
-
maskingCharacter: {
|
|
8091
|
+
}, maskingCharacter: {
|
|
8291
8092
|
constraints: {
|
|
8292
8093
|
MaxLength: 1
|
|
8293
8094
|
},
|
|
@@ -8296,15 +8097,13 @@ const PIIDetectionSkill = {
|
|
|
8296
8097
|
type: {
|
|
8297
8098
|
name: "String"
|
|
8298
8099
|
}
|
|
8299
|
-
},
|
|
8300
|
-
modelVersion: {
|
|
8100
|
+
}, modelVersion: {
|
|
8301
8101
|
serializedName: "modelVersion",
|
|
8302
8102
|
nullable: true,
|
|
8303
8103
|
type: {
|
|
8304
8104
|
name: "String"
|
|
8305
8105
|
}
|
|
8306
|
-
},
|
|
8307
|
-
piiCategories: {
|
|
8106
|
+
}, piiCategories: {
|
|
8308
8107
|
serializedName: "piiCategories",
|
|
8309
8108
|
type: {
|
|
8310
8109
|
name: "Sequence",
|
|
@@ -8314,15 +8113,13 @@ const PIIDetectionSkill = {
|
|
|
8314
8113
|
}
|
|
8315
8114
|
}
|
|
8316
8115
|
}
|
|
8317
|
-
},
|
|
8318
|
-
domain: {
|
|
8116
|
+
}, domain: {
|
|
8319
8117
|
serializedName: "domain",
|
|
8320
8118
|
nullable: true,
|
|
8321
8119
|
type: {
|
|
8322
8120
|
name: "String"
|
|
8323
8121
|
}
|
|
8324
|
-
}
|
|
8325
|
-
}
|
|
8122
|
+
} })
|
|
8326
8123
|
}
|
|
8327
8124
|
};
|
|
8328
8125
|
const SplitSkill = {
|
|
@@ -8332,42 +8129,35 @@ const SplitSkill = {
|
|
|
8332
8129
|
className: "SplitSkill",
|
|
8333
8130
|
uberParent: "SearchIndexerSkill",
|
|
8334
8131
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8335
|
-
modelProperties: {
|
|
8336
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8337
|
-
defaultLanguageCode: {
|
|
8132
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
8338
8133
|
serializedName: "defaultLanguageCode",
|
|
8339
8134
|
type: {
|
|
8340
8135
|
name: "String"
|
|
8341
8136
|
}
|
|
8342
|
-
},
|
|
8343
|
-
textSplitMode: {
|
|
8137
|
+
}, textSplitMode: {
|
|
8344
8138
|
serializedName: "textSplitMode",
|
|
8345
8139
|
type: {
|
|
8346
8140
|
name: "String"
|
|
8347
8141
|
}
|
|
8348
|
-
},
|
|
8349
|
-
maxPageLength: {
|
|
8142
|
+
}, maxPageLength: {
|
|
8350
8143
|
serializedName: "maximumPageLength",
|
|
8351
8144
|
nullable: true,
|
|
8352
8145
|
type: {
|
|
8353
8146
|
name: "Number"
|
|
8354
8147
|
}
|
|
8355
|
-
},
|
|
8356
|
-
pageOverlapLength: {
|
|
8148
|
+
}, pageOverlapLength: {
|
|
8357
8149
|
serializedName: "pageOverlapLength",
|
|
8358
8150
|
nullable: true,
|
|
8359
8151
|
type: {
|
|
8360
8152
|
name: "Number"
|
|
8361
8153
|
}
|
|
8362
|
-
},
|
|
8363
|
-
maximumPagesToTake: {
|
|
8154
|
+
}, maximumPagesToTake: {
|
|
8364
8155
|
serializedName: "maximumPagesToTake",
|
|
8365
8156
|
nullable: true,
|
|
8366
8157
|
type: {
|
|
8367
8158
|
name: "Number"
|
|
8368
8159
|
}
|
|
8369
|
-
}
|
|
8370
|
-
}
|
|
8160
|
+
} })
|
|
8371
8161
|
}
|
|
8372
8162
|
};
|
|
8373
8163
|
const CustomEntityLookupSkill = {
|
|
@@ -8377,23 +8167,19 @@ const CustomEntityLookupSkill = {
|
|
|
8377
8167
|
className: "CustomEntityLookupSkill",
|
|
8378
8168
|
uberParent: "SearchIndexerSkill",
|
|
8379
8169
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8380
|
-
modelProperties: {
|
|
8381
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8382
|
-
defaultLanguageCode: {
|
|
8170
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
|
|
8383
8171
|
serializedName: "defaultLanguageCode",
|
|
8384
8172
|
nullable: true,
|
|
8385
8173
|
type: {
|
|
8386
8174
|
name: "String"
|
|
8387
8175
|
}
|
|
8388
|
-
},
|
|
8389
|
-
entitiesDefinitionUri: {
|
|
8176
|
+
}, entitiesDefinitionUri: {
|
|
8390
8177
|
serializedName: "entitiesDefinitionUri",
|
|
8391
8178
|
nullable: true,
|
|
8392
8179
|
type: {
|
|
8393
8180
|
name: "String"
|
|
8394
8181
|
}
|
|
8395
|
-
},
|
|
8396
|
-
inlineEntitiesDefinition: {
|
|
8182
|
+
}, inlineEntitiesDefinition: {
|
|
8397
8183
|
serializedName: "inlineEntitiesDefinition",
|
|
8398
8184
|
nullable: true,
|
|
8399
8185
|
type: {
|
|
@@ -8405,29 +8191,25 @@ const CustomEntityLookupSkill = {
|
|
|
8405
8191
|
}
|
|
8406
8192
|
}
|
|
8407
8193
|
}
|
|
8408
|
-
},
|
|
8409
|
-
globalDefaultCaseSensitive: {
|
|
8194
|
+
}, globalDefaultCaseSensitive: {
|
|
8410
8195
|
serializedName: "globalDefaultCaseSensitive",
|
|
8411
8196
|
nullable: true,
|
|
8412
8197
|
type: {
|
|
8413
8198
|
name: "Boolean"
|
|
8414
8199
|
}
|
|
8415
|
-
},
|
|
8416
|
-
globalDefaultAccentSensitive: {
|
|
8200
|
+
}, globalDefaultAccentSensitive: {
|
|
8417
8201
|
serializedName: "globalDefaultAccentSensitive",
|
|
8418
8202
|
nullable: true,
|
|
8419
8203
|
type: {
|
|
8420
8204
|
name: "Boolean"
|
|
8421
8205
|
}
|
|
8422
|
-
},
|
|
8423
|
-
globalDefaultFuzzyEditDistance: {
|
|
8206
|
+
}, globalDefaultFuzzyEditDistance: {
|
|
8424
8207
|
serializedName: "globalDefaultFuzzyEditDistance",
|
|
8425
8208
|
nullable: true,
|
|
8426
8209
|
type: {
|
|
8427
8210
|
name: "Number"
|
|
8428
8211
|
}
|
|
8429
|
-
}
|
|
8430
|
-
}
|
|
8212
|
+
} })
|
|
8431
8213
|
}
|
|
8432
8214
|
};
|
|
8433
8215
|
const TextTranslationSkill = {
|
|
@@ -8437,29 +8219,24 @@ const TextTranslationSkill = {
|
|
|
8437
8219
|
className: "TextTranslationSkill",
|
|
8438
8220
|
uberParent: "SearchIndexerSkill",
|
|
8439
8221
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8440
|
-
modelProperties: {
|
|
8441
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8442
|
-
defaultToLanguageCode: {
|
|
8222
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultToLanguageCode: {
|
|
8443
8223
|
serializedName: "defaultToLanguageCode",
|
|
8444
8224
|
required: true,
|
|
8445
8225
|
type: {
|
|
8446
8226
|
name: "String"
|
|
8447
8227
|
}
|
|
8448
|
-
},
|
|
8449
|
-
defaultFromLanguageCode: {
|
|
8228
|
+
}, defaultFromLanguageCode: {
|
|
8450
8229
|
serializedName: "defaultFromLanguageCode",
|
|
8451
8230
|
type: {
|
|
8452
8231
|
name: "String"
|
|
8453
8232
|
}
|
|
8454
|
-
},
|
|
8455
|
-
suggestedFrom: {
|
|
8233
|
+
}, suggestedFrom: {
|
|
8456
8234
|
serializedName: "suggestedFrom",
|
|
8457
8235
|
nullable: true,
|
|
8458
8236
|
type: {
|
|
8459
8237
|
name: "String"
|
|
8460
8238
|
}
|
|
8461
|
-
}
|
|
8462
|
-
}
|
|
8239
|
+
} })
|
|
8463
8240
|
}
|
|
8464
8241
|
};
|
|
8465
8242
|
const DocumentExtractionSkill = {
|
|
@@ -8469,31 +8246,26 @@ const DocumentExtractionSkill = {
|
|
|
8469
8246
|
className: "DocumentExtractionSkill",
|
|
8470
8247
|
uberParent: "SearchIndexerSkill",
|
|
8471
8248
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8472
|
-
modelProperties: {
|
|
8473
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8474
|
-
parsingMode: {
|
|
8249
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { parsingMode: {
|
|
8475
8250
|
serializedName: "parsingMode",
|
|
8476
8251
|
nullable: true,
|
|
8477
8252
|
type: {
|
|
8478
8253
|
name: "String"
|
|
8479
8254
|
}
|
|
8480
|
-
},
|
|
8481
|
-
dataToExtract: {
|
|
8255
|
+
}, dataToExtract: {
|
|
8482
8256
|
serializedName: "dataToExtract",
|
|
8483
8257
|
nullable: true,
|
|
8484
8258
|
type: {
|
|
8485
8259
|
name: "String"
|
|
8486
8260
|
}
|
|
8487
|
-
},
|
|
8488
|
-
configuration: {
|
|
8261
|
+
}, configuration: {
|
|
8489
8262
|
serializedName: "configuration",
|
|
8490
8263
|
nullable: true,
|
|
8491
8264
|
type: {
|
|
8492
8265
|
name: "Dictionary",
|
|
8493
8266
|
value: { type: { name: "any" } }
|
|
8494
8267
|
}
|
|
8495
|
-
}
|
|
8496
|
-
}
|
|
8268
|
+
} })
|
|
8497
8269
|
}
|
|
8498
8270
|
};
|
|
8499
8271
|
const WebApiSkill = {
|
|
@@ -8503,63 +8275,53 @@ const WebApiSkill = {
|
|
|
8503
8275
|
className: "WebApiSkill",
|
|
8504
8276
|
uberParent: "SearchIndexerSkill",
|
|
8505
8277
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8506
|
-
modelProperties: {
|
|
8507
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8508
|
-
uri: {
|
|
8278
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { uri: {
|
|
8509
8279
|
serializedName: "uri",
|
|
8510
8280
|
required: true,
|
|
8511
8281
|
type: {
|
|
8512
8282
|
name: "String"
|
|
8513
8283
|
}
|
|
8514
|
-
},
|
|
8515
|
-
httpHeaders: {
|
|
8284
|
+
}, httpHeaders: {
|
|
8516
8285
|
serializedName: "httpHeaders",
|
|
8517
8286
|
type: {
|
|
8518
8287
|
name: "Dictionary",
|
|
8519
8288
|
value: { type: { name: "String" } }
|
|
8520
8289
|
}
|
|
8521
|
-
},
|
|
8522
|
-
httpMethod: {
|
|
8290
|
+
}, httpMethod: {
|
|
8523
8291
|
serializedName: "httpMethod",
|
|
8524
8292
|
type: {
|
|
8525
8293
|
name: "String"
|
|
8526
8294
|
}
|
|
8527
|
-
},
|
|
8528
|
-
timeout: {
|
|
8295
|
+
}, timeout: {
|
|
8529
8296
|
serializedName: "timeout",
|
|
8530
8297
|
type: {
|
|
8531
8298
|
name: "TimeSpan"
|
|
8532
8299
|
}
|
|
8533
|
-
},
|
|
8534
|
-
batchSize: {
|
|
8300
|
+
}, batchSize: {
|
|
8535
8301
|
serializedName: "batchSize",
|
|
8536
8302
|
nullable: true,
|
|
8537
8303
|
type: {
|
|
8538
8304
|
name: "Number"
|
|
8539
8305
|
}
|
|
8540
|
-
},
|
|
8541
|
-
degreeOfParallelism: {
|
|
8306
|
+
}, degreeOfParallelism: {
|
|
8542
8307
|
serializedName: "degreeOfParallelism",
|
|
8543
8308
|
nullable: true,
|
|
8544
8309
|
type: {
|
|
8545
8310
|
name: "Number"
|
|
8546
8311
|
}
|
|
8547
|
-
},
|
|
8548
|
-
authResourceId: {
|
|
8312
|
+
}, authResourceId: {
|
|
8549
8313
|
serializedName: "authResourceId",
|
|
8550
8314
|
nullable: true,
|
|
8551
8315
|
type: {
|
|
8552
8316
|
name: "String"
|
|
8553
8317
|
}
|
|
8554
|
-
},
|
|
8555
|
-
authIdentity: {
|
|
8318
|
+
}, authIdentity: {
|
|
8556
8319
|
serializedName: "authIdentity",
|
|
8557
8320
|
type: {
|
|
8558
8321
|
name: "Composite",
|
|
8559
8322
|
className: "SearchIndexerDataIdentity"
|
|
8560
8323
|
}
|
|
8561
|
-
}
|
|
8562
|
-
}
|
|
8324
|
+
} })
|
|
8563
8325
|
}
|
|
8564
8326
|
};
|
|
8565
8327
|
const AzureMachineLearningSkill = {
|
|
@@ -8569,51 +8331,43 @@ const AzureMachineLearningSkill = {
|
|
|
8569
8331
|
className: "AzureMachineLearningSkill",
|
|
8570
8332
|
uberParent: "SearchIndexerSkill",
|
|
8571
8333
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8572
|
-
modelProperties: {
|
|
8573
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8574
|
-
scoringUri: {
|
|
8334
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
|
|
8575
8335
|
serializedName: "uri",
|
|
8576
8336
|
nullable: true,
|
|
8577
8337
|
type: {
|
|
8578
8338
|
name: "String"
|
|
8579
8339
|
}
|
|
8580
|
-
},
|
|
8581
|
-
authenticationKey: {
|
|
8340
|
+
}, authenticationKey: {
|
|
8582
8341
|
serializedName: "key",
|
|
8583
8342
|
nullable: true,
|
|
8584
8343
|
type: {
|
|
8585
8344
|
name: "String"
|
|
8586
8345
|
}
|
|
8587
|
-
},
|
|
8588
|
-
resourceId: {
|
|
8346
|
+
}, resourceId: {
|
|
8589
8347
|
serializedName: "resourceId",
|
|
8590
8348
|
nullable: true,
|
|
8591
8349
|
type: {
|
|
8592
8350
|
name: "String"
|
|
8593
8351
|
}
|
|
8594
|
-
},
|
|
8595
|
-
timeout: {
|
|
8352
|
+
}, timeout: {
|
|
8596
8353
|
serializedName: "timeout",
|
|
8597
8354
|
nullable: true,
|
|
8598
8355
|
type: {
|
|
8599
8356
|
name: "TimeSpan"
|
|
8600
8357
|
}
|
|
8601
|
-
},
|
|
8602
|
-
region: {
|
|
8358
|
+
}, region: {
|
|
8603
8359
|
serializedName: "region",
|
|
8604
8360
|
nullable: true,
|
|
8605
8361
|
type: {
|
|
8606
8362
|
name: "String"
|
|
8607
8363
|
}
|
|
8608
|
-
},
|
|
8609
|
-
degreeOfParallelism: {
|
|
8364
|
+
}, degreeOfParallelism: {
|
|
8610
8365
|
serializedName: "degreeOfParallelism",
|
|
8611
8366
|
nullable: true,
|
|
8612
8367
|
type: {
|
|
8613
8368
|
name: "Number"
|
|
8614
8369
|
}
|
|
8615
|
-
}
|
|
8616
|
-
}
|
|
8370
|
+
} })
|
|
8617
8371
|
}
|
|
8618
8372
|
};
|
|
8619
8373
|
const AzureOpenAIEmbeddingSkill = {
|
|
@@ -8623,34 +8377,28 @@ const AzureOpenAIEmbeddingSkill = {
|
|
|
8623
8377
|
className: "AzureOpenAIEmbeddingSkill",
|
|
8624
8378
|
uberParent: "SearchIndexerSkill",
|
|
8625
8379
|
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8626
|
-
modelProperties: {
|
|
8627
|
-
...SearchIndexerSkill.type.modelProperties,
|
|
8628
|
-
resourceUri: {
|
|
8380
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { resourceUri: {
|
|
8629
8381
|
serializedName: "resourceUri",
|
|
8630
8382
|
type: {
|
|
8631
8383
|
name: "String"
|
|
8632
8384
|
}
|
|
8633
|
-
},
|
|
8634
|
-
deploymentId: {
|
|
8385
|
+
}, deploymentId: {
|
|
8635
8386
|
serializedName: "deploymentId",
|
|
8636
8387
|
type: {
|
|
8637
8388
|
name: "String"
|
|
8638
8389
|
}
|
|
8639
|
-
},
|
|
8640
|
-
apiKey: {
|
|
8390
|
+
}, apiKey: {
|
|
8641
8391
|
serializedName: "apiKey",
|
|
8642
8392
|
type: {
|
|
8643
8393
|
name: "String"
|
|
8644
8394
|
}
|
|
8645
|
-
},
|
|
8646
|
-
authIdentity: {
|
|
8395
|
+
}, authIdentity: {
|
|
8647
8396
|
serializedName: "authIdentity",
|
|
8648
8397
|
type: {
|
|
8649
8398
|
name: "Composite",
|
|
8650
8399
|
className: "SearchIndexerDataIdentity"
|
|
8651
8400
|
}
|
|
8652
|
-
}
|
|
8653
|
-
}
|
|
8401
|
+
} })
|
|
8654
8402
|
}
|
|
8655
8403
|
};
|
|
8656
8404
|
const DefaultCognitiveServicesAccount = {
|
|
@@ -8660,9 +8408,7 @@ const DefaultCognitiveServicesAccount = {
|
|
|
8660
8408
|
className: "DefaultCognitiveServicesAccount",
|
|
8661
8409
|
uberParent: "CognitiveServicesAccount",
|
|
8662
8410
|
polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
|
|
8663
|
-
modelProperties: {
|
|
8664
|
-
...CognitiveServicesAccount.type.modelProperties
|
|
8665
|
-
}
|
|
8411
|
+
modelProperties: Object.assign({}, CognitiveServicesAccount.type.modelProperties)
|
|
8666
8412
|
}
|
|
8667
8413
|
};
|
|
8668
8414
|
const CognitiveServicesAccountKey = {
|
|
@@ -8672,48 +8418,39 @@ const CognitiveServicesAccountKey = {
|
|
|
8672
8418
|
className: "CognitiveServicesAccountKey",
|
|
8673
8419
|
uberParent: "CognitiveServicesAccount",
|
|
8674
8420
|
polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
|
|
8675
|
-
modelProperties: {
|
|
8676
|
-
...CognitiveServicesAccount.type.modelProperties,
|
|
8677
|
-
key: {
|
|
8421
|
+
modelProperties: Object.assign(Object.assign({}, CognitiveServicesAccount.type.modelProperties), { key: {
|
|
8678
8422
|
serializedName: "key",
|
|
8679
8423
|
required: true,
|
|
8680
8424
|
type: {
|
|
8681
8425
|
name: "String"
|
|
8682
8426
|
}
|
|
8683
|
-
}
|
|
8684
|
-
}
|
|
8427
|
+
} })
|
|
8685
8428
|
}
|
|
8686
8429
|
};
|
|
8687
8430
|
const SearchIndexerKnowledgeStoreTableProjectionSelector = {
|
|
8688
8431
|
type: {
|
|
8689
8432
|
name: "Composite",
|
|
8690
8433
|
className: "SearchIndexerKnowledgeStoreTableProjectionSelector",
|
|
8691
|
-
modelProperties: {
|
|
8692
|
-
...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties,
|
|
8693
|
-
tableName: {
|
|
8434
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties), { tableName: {
|
|
8694
8435
|
serializedName: "tableName",
|
|
8695
8436
|
required: true,
|
|
8696
8437
|
type: {
|
|
8697
8438
|
name: "String"
|
|
8698
8439
|
}
|
|
8699
|
-
}
|
|
8700
|
-
}
|
|
8440
|
+
} })
|
|
8701
8441
|
}
|
|
8702
8442
|
};
|
|
8703
8443
|
const SearchIndexerKnowledgeStoreBlobProjectionSelector = {
|
|
8704
8444
|
type: {
|
|
8705
8445
|
name: "Composite",
|
|
8706
8446
|
className: "SearchIndexerKnowledgeStoreBlobProjectionSelector",
|
|
8707
|
-
modelProperties: {
|
|
8708
|
-
...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties,
|
|
8709
|
-
storageContainer: {
|
|
8447
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties), { storageContainer: {
|
|
8710
8448
|
serializedName: "storageContainer",
|
|
8711
8449
|
required: true,
|
|
8712
8450
|
type: {
|
|
8713
8451
|
name: "String"
|
|
8714
8452
|
}
|
|
8715
|
-
}
|
|
8716
|
-
}
|
|
8453
|
+
} })
|
|
8717
8454
|
}
|
|
8718
8455
|
};
|
|
8719
8456
|
const DistanceScoringFunction = {
|
|
@@ -8723,16 +8460,13 @@ const DistanceScoringFunction = {
|
|
|
8723
8460
|
className: "DistanceScoringFunction",
|
|
8724
8461
|
uberParent: "ScoringFunction",
|
|
8725
8462
|
polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
|
|
8726
|
-
modelProperties: {
|
|
8727
|
-
...ScoringFunction.type.modelProperties,
|
|
8728
|
-
parameters: {
|
|
8463
|
+
modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
|
|
8729
8464
|
serializedName: "distance",
|
|
8730
8465
|
type: {
|
|
8731
8466
|
name: "Composite",
|
|
8732
8467
|
className: "DistanceScoringParameters"
|
|
8733
8468
|
}
|
|
8734
|
-
}
|
|
8735
|
-
}
|
|
8469
|
+
} })
|
|
8736
8470
|
}
|
|
8737
8471
|
};
|
|
8738
8472
|
const FreshnessScoringFunction = {
|
|
@@ -8742,16 +8476,13 @@ const FreshnessScoringFunction = {
|
|
|
8742
8476
|
className: "FreshnessScoringFunction",
|
|
8743
8477
|
uberParent: "ScoringFunction",
|
|
8744
8478
|
polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
|
|
8745
|
-
modelProperties: {
|
|
8746
|
-
...ScoringFunction.type.modelProperties,
|
|
8747
|
-
parameters: {
|
|
8479
|
+
modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
|
|
8748
8480
|
serializedName: "freshness",
|
|
8749
8481
|
type: {
|
|
8750
8482
|
name: "Composite",
|
|
8751
8483
|
className: "FreshnessScoringParameters"
|
|
8752
8484
|
}
|
|
8753
|
-
}
|
|
8754
|
-
}
|
|
8485
|
+
} })
|
|
8755
8486
|
}
|
|
8756
8487
|
};
|
|
8757
8488
|
const MagnitudeScoringFunction = {
|
|
@@ -8761,16 +8492,13 @@ const MagnitudeScoringFunction = {
|
|
|
8761
8492
|
className: "MagnitudeScoringFunction",
|
|
8762
8493
|
uberParent: "ScoringFunction",
|
|
8763
8494
|
polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
|
|
8764
|
-
modelProperties: {
|
|
8765
|
-
...ScoringFunction.type.modelProperties,
|
|
8766
|
-
parameters: {
|
|
8495
|
+
modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
|
|
8767
8496
|
serializedName: "magnitude",
|
|
8768
8497
|
type: {
|
|
8769
8498
|
name: "Composite",
|
|
8770
8499
|
className: "MagnitudeScoringParameters"
|
|
8771
8500
|
}
|
|
8772
|
-
}
|
|
8773
|
-
}
|
|
8501
|
+
} })
|
|
8774
8502
|
}
|
|
8775
8503
|
};
|
|
8776
8504
|
const TagScoringFunction = {
|
|
@@ -8780,16 +8508,13 @@ const TagScoringFunction = {
|
|
|
8780
8508
|
className: "TagScoringFunction",
|
|
8781
8509
|
uberParent: "ScoringFunction",
|
|
8782
8510
|
polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
|
|
8783
|
-
modelProperties: {
|
|
8784
|
-
...ScoringFunction.type.modelProperties,
|
|
8785
|
-
parameters: {
|
|
8511
|
+
modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
|
|
8786
8512
|
serializedName: "tag",
|
|
8787
8513
|
type: {
|
|
8788
8514
|
name: "Composite",
|
|
8789
8515
|
className: "TagScoringParameters"
|
|
8790
8516
|
}
|
|
8791
|
-
}
|
|
8792
|
-
}
|
|
8517
|
+
} })
|
|
8793
8518
|
}
|
|
8794
8519
|
};
|
|
8795
8520
|
const CustomAnalyzer = {
|
|
@@ -8799,16 +8524,13 @@ const CustomAnalyzer = {
|
|
|
8799
8524
|
className: "CustomAnalyzer",
|
|
8800
8525
|
uberParent: "LexicalAnalyzer",
|
|
8801
8526
|
polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
|
|
8802
|
-
modelProperties: {
|
|
8803
|
-
...LexicalAnalyzer.type.modelProperties,
|
|
8804
|
-
tokenizerName: {
|
|
8527
|
+
modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { tokenizerName: {
|
|
8805
8528
|
serializedName: "tokenizer",
|
|
8806
8529
|
required: true,
|
|
8807
8530
|
type: {
|
|
8808
8531
|
name: "String"
|
|
8809
8532
|
}
|
|
8810
|
-
},
|
|
8811
|
-
tokenFilters: {
|
|
8533
|
+
}, tokenFilters: {
|
|
8812
8534
|
serializedName: "tokenFilters",
|
|
8813
8535
|
type: {
|
|
8814
8536
|
name: "Sequence",
|
|
@@ -8818,8 +8540,7 @@ const CustomAnalyzer = {
|
|
|
8818
8540
|
}
|
|
8819
8541
|
}
|
|
8820
8542
|
}
|
|
8821
|
-
},
|
|
8822
|
-
charFilters: {
|
|
8543
|
+
}, charFilters: {
|
|
8823
8544
|
serializedName: "charFilters",
|
|
8824
8545
|
type: {
|
|
8825
8546
|
name: "Sequence",
|
|
@@ -8829,8 +8550,7 @@ const CustomAnalyzer = {
|
|
|
8829
8550
|
}
|
|
8830
8551
|
}
|
|
8831
8552
|
}
|
|
8832
|
-
}
|
|
8833
|
-
}
|
|
8553
|
+
} })
|
|
8834
8554
|
}
|
|
8835
8555
|
};
|
|
8836
8556
|
const PatternAnalyzer = {
|
|
@@ -8840,29 +8560,24 @@ const PatternAnalyzer = {
|
|
|
8840
8560
|
className: "PatternAnalyzer",
|
|
8841
8561
|
uberParent: "LexicalAnalyzer",
|
|
8842
8562
|
polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
|
|
8843
|
-
modelProperties: {
|
|
8844
|
-
...LexicalAnalyzer.type.modelProperties,
|
|
8845
|
-
lowerCaseTerms: {
|
|
8563
|
+
modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { lowerCaseTerms: {
|
|
8846
8564
|
defaultValue: true,
|
|
8847
8565
|
serializedName: "lowercase",
|
|
8848
8566
|
type: {
|
|
8849
8567
|
name: "Boolean"
|
|
8850
8568
|
}
|
|
8851
|
-
},
|
|
8852
|
-
pattern: {
|
|
8569
|
+
}, pattern: {
|
|
8853
8570
|
defaultValue: "W+",
|
|
8854
8571
|
serializedName: "pattern",
|
|
8855
8572
|
type: {
|
|
8856
8573
|
name: "String"
|
|
8857
8574
|
}
|
|
8858
|
-
},
|
|
8859
|
-
flags: {
|
|
8575
|
+
}, flags: {
|
|
8860
8576
|
serializedName: "flags",
|
|
8861
8577
|
type: {
|
|
8862
8578
|
name: "String"
|
|
8863
8579
|
}
|
|
8864
|
-
},
|
|
8865
|
-
stopwords: {
|
|
8580
|
+
}, stopwords: {
|
|
8866
8581
|
serializedName: "stopwords",
|
|
8867
8582
|
type: {
|
|
8868
8583
|
name: "Sequence",
|
|
@@ -8872,8 +8587,7 @@ const PatternAnalyzer = {
|
|
|
8872
8587
|
}
|
|
8873
8588
|
}
|
|
8874
8589
|
}
|
|
8875
|
-
}
|
|
8876
|
-
}
|
|
8590
|
+
} })
|
|
8877
8591
|
}
|
|
8878
8592
|
};
|
|
8879
8593
|
const LuceneStandardAnalyzer = {
|
|
@@ -8883,9 +8597,7 @@ const LuceneStandardAnalyzer = {
|
|
|
8883
8597
|
className: "LuceneStandardAnalyzer",
|
|
8884
8598
|
uberParent: "LexicalAnalyzer",
|
|
8885
8599
|
polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
|
|
8886
|
-
modelProperties: {
|
|
8887
|
-
...LexicalAnalyzer.type.modelProperties,
|
|
8888
|
-
maxTokenLength: {
|
|
8600
|
+
modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { maxTokenLength: {
|
|
8889
8601
|
defaultValue: 255,
|
|
8890
8602
|
constraints: {
|
|
8891
8603
|
InclusiveMaximum: 300
|
|
@@ -8894,8 +8606,7 @@ const LuceneStandardAnalyzer = {
|
|
|
8894
8606
|
type: {
|
|
8895
8607
|
name: "Number"
|
|
8896
8608
|
}
|
|
8897
|
-
},
|
|
8898
|
-
stopwords: {
|
|
8609
|
+
}, stopwords: {
|
|
8899
8610
|
serializedName: "stopwords",
|
|
8900
8611
|
type: {
|
|
8901
8612
|
name: "Sequence",
|
|
@@ -8905,8 +8616,7 @@ const LuceneStandardAnalyzer = {
|
|
|
8905
8616
|
}
|
|
8906
8617
|
}
|
|
8907
8618
|
}
|
|
8908
|
-
}
|
|
8909
|
-
}
|
|
8619
|
+
} })
|
|
8910
8620
|
}
|
|
8911
8621
|
};
|
|
8912
8622
|
const StopAnalyzer = {
|
|
@@ -8916,9 +8626,7 @@ const StopAnalyzer = {
|
|
|
8916
8626
|
className: "StopAnalyzer",
|
|
8917
8627
|
uberParent: "LexicalAnalyzer",
|
|
8918
8628
|
polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
|
|
8919
|
-
modelProperties: {
|
|
8920
|
-
...LexicalAnalyzer.type.modelProperties,
|
|
8921
|
-
stopwords: {
|
|
8629
|
+
modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { stopwords: {
|
|
8922
8630
|
serializedName: "stopwords",
|
|
8923
8631
|
type: {
|
|
8924
8632
|
name: "Sequence",
|
|
@@ -8928,8 +8636,7 @@ const StopAnalyzer = {
|
|
|
8928
8636
|
}
|
|
8929
8637
|
}
|
|
8930
8638
|
}
|
|
8931
|
-
}
|
|
8932
|
-
}
|
|
8639
|
+
} })
|
|
8933
8640
|
}
|
|
8934
8641
|
};
|
|
8935
8642
|
const ClassicTokenizer = {
|
|
@@ -8939,9 +8646,7 @@ const ClassicTokenizer = {
|
|
|
8939
8646
|
className: "ClassicTokenizer",
|
|
8940
8647
|
uberParent: "LexicalTokenizer",
|
|
8941
8648
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
8942
|
-
modelProperties: {
|
|
8943
|
-
...LexicalTokenizer.type.modelProperties,
|
|
8944
|
-
maxTokenLength: {
|
|
8649
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
8945
8650
|
defaultValue: 255,
|
|
8946
8651
|
constraints: {
|
|
8947
8652
|
InclusiveMaximum: 300
|
|
@@ -8950,8 +8655,7 @@ const ClassicTokenizer = {
|
|
|
8950
8655
|
type: {
|
|
8951
8656
|
name: "Number"
|
|
8952
8657
|
}
|
|
8953
|
-
}
|
|
8954
|
-
}
|
|
8658
|
+
} })
|
|
8955
8659
|
}
|
|
8956
8660
|
};
|
|
8957
8661
|
const EdgeNGramTokenizer = {
|
|
@@ -8961,9 +8665,7 @@ const EdgeNGramTokenizer = {
|
|
|
8961
8665
|
className: "EdgeNGramTokenizer",
|
|
8962
8666
|
uberParent: "LexicalTokenizer",
|
|
8963
8667
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
8964
|
-
modelProperties: {
|
|
8965
|
-
...LexicalTokenizer.type.modelProperties,
|
|
8966
|
-
minGram: {
|
|
8668
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { minGram: {
|
|
8967
8669
|
defaultValue: 1,
|
|
8968
8670
|
constraints: {
|
|
8969
8671
|
InclusiveMaximum: 300
|
|
@@ -8972,8 +8674,7 @@ const EdgeNGramTokenizer = {
|
|
|
8972
8674
|
type: {
|
|
8973
8675
|
name: "Number"
|
|
8974
8676
|
}
|
|
8975
|
-
},
|
|
8976
|
-
maxGram: {
|
|
8677
|
+
}, maxGram: {
|
|
8977
8678
|
defaultValue: 2,
|
|
8978
8679
|
constraints: {
|
|
8979
8680
|
InclusiveMaximum: 300
|
|
@@ -8982,8 +8683,7 @@ const EdgeNGramTokenizer = {
|
|
|
8982
8683
|
type: {
|
|
8983
8684
|
name: "Number"
|
|
8984
8685
|
}
|
|
8985
|
-
},
|
|
8986
|
-
tokenChars: {
|
|
8686
|
+
}, tokenChars: {
|
|
8987
8687
|
serializedName: "tokenChars",
|
|
8988
8688
|
type: {
|
|
8989
8689
|
name: "Sequence",
|
|
@@ -9000,8 +8700,7 @@ const EdgeNGramTokenizer = {
|
|
|
9000
8700
|
}
|
|
9001
8701
|
}
|
|
9002
8702
|
}
|
|
9003
|
-
}
|
|
9004
|
-
}
|
|
8703
|
+
} })
|
|
9005
8704
|
}
|
|
9006
8705
|
};
|
|
9007
8706
|
const KeywordTokenizer = {
|
|
@@ -9011,16 +8710,13 @@ const KeywordTokenizer = {
|
|
|
9011
8710
|
className: "KeywordTokenizer",
|
|
9012
8711
|
uberParent: "LexicalTokenizer",
|
|
9013
8712
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9014
|
-
modelProperties: {
|
|
9015
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9016
|
-
bufferSize: {
|
|
8713
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { bufferSize: {
|
|
9017
8714
|
defaultValue: 256,
|
|
9018
8715
|
serializedName: "bufferSize",
|
|
9019
8716
|
type: {
|
|
9020
8717
|
name: "Number"
|
|
9021
8718
|
}
|
|
9022
|
-
}
|
|
9023
|
-
}
|
|
8719
|
+
} })
|
|
9024
8720
|
}
|
|
9025
8721
|
};
|
|
9026
8722
|
const KeywordTokenizerV2 = {
|
|
@@ -9030,9 +8726,7 @@ const KeywordTokenizerV2 = {
|
|
|
9030
8726
|
className: "KeywordTokenizerV2",
|
|
9031
8727
|
uberParent: "LexicalTokenizer",
|
|
9032
8728
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9033
|
-
modelProperties: {
|
|
9034
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9035
|
-
maxTokenLength: {
|
|
8729
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
9036
8730
|
defaultValue: 256,
|
|
9037
8731
|
constraints: {
|
|
9038
8732
|
InclusiveMaximum: 300
|
|
@@ -9041,8 +8735,7 @@ const KeywordTokenizerV2 = {
|
|
|
9041
8735
|
type: {
|
|
9042
8736
|
name: "Number"
|
|
9043
8737
|
}
|
|
9044
|
-
}
|
|
9045
|
-
}
|
|
8738
|
+
} })
|
|
9046
8739
|
}
|
|
9047
8740
|
};
|
|
9048
8741
|
const MicrosoftLanguageTokenizer = {
|
|
@@ -9052,9 +8745,7 @@ const MicrosoftLanguageTokenizer = {
|
|
|
9052
8745
|
className: "MicrosoftLanguageTokenizer",
|
|
9053
8746
|
uberParent: "LexicalTokenizer",
|
|
9054
8747
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9055
|
-
modelProperties: {
|
|
9056
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9057
|
-
maxTokenLength: {
|
|
8748
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
9058
8749
|
defaultValue: 255,
|
|
9059
8750
|
constraints: {
|
|
9060
8751
|
InclusiveMaximum: 300
|
|
@@ -9063,15 +8754,13 @@ const MicrosoftLanguageTokenizer = {
|
|
|
9063
8754
|
type: {
|
|
9064
8755
|
name: "Number"
|
|
9065
8756
|
}
|
|
9066
|
-
},
|
|
9067
|
-
isSearchTokenizer: {
|
|
8757
|
+
}, isSearchTokenizer: {
|
|
9068
8758
|
defaultValue: false,
|
|
9069
8759
|
serializedName: "isSearchTokenizer",
|
|
9070
8760
|
type: {
|
|
9071
8761
|
name: "Boolean"
|
|
9072
8762
|
}
|
|
9073
|
-
},
|
|
9074
|
-
language: {
|
|
8763
|
+
}, language: {
|
|
9075
8764
|
serializedName: "language",
|
|
9076
8765
|
type: {
|
|
9077
8766
|
name: "Enum",
|
|
@@ -9120,8 +8809,7 @@ const MicrosoftLanguageTokenizer = {
|
|
|
9120
8809
|
"vietnamese"
|
|
9121
8810
|
]
|
|
9122
8811
|
}
|
|
9123
|
-
}
|
|
9124
|
-
}
|
|
8812
|
+
} })
|
|
9125
8813
|
}
|
|
9126
8814
|
};
|
|
9127
8815
|
const MicrosoftLanguageStemmingTokenizer = {
|
|
@@ -9131,9 +8819,7 @@ const MicrosoftLanguageStemmingTokenizer = {
|
|
|
9131
8819
|
className: "MicrosoftLanguageStemmingTokenizer",
|
|
9132
8820
|
uberParent: "LexicalTokenizer",
|
|
9133
8821
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9134
|
-
modelProperties: {
|
|
9135
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9136
|
-
maxTokenLength: {
|
|
8822
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
9137
8823
|
defaultValue: 255,
|
|
9138
8824
|
constraints: {
|
|
9139
8825
|
InclusiveMaximum: 300
|
|
@@ -9142,15 +8828,13 @@ const MicrosoftLanguageStemmingTokenizer = {
|
|
|
9142
8828
|
type: {
|
|
9143
8829
|
name: "Number"
|
|
9144
8830
|
}
|
|
9145
|
-
},
|
|
9146
|
-
isSearchTokenizer: {
|
|
8831
|
+
}, isSearchTokenizer: {
|
|
9147
8832
|
defaultValue: false,
|
|
9148
8833
|
serializedName: "isSearchTokenizer",
|
|
9149
8834
|
type: {
|
|
9150
8835
|
name: "Boolean"
|
|
9151
8836
|
}
|
|
9152
|
-
},
|
|
9153
|
-
language: {
|
|
8837
|
+
}, language: {
|
|
9154
8838
|
serializedName: "language",
|
|
9155
8839
|
type: {
|
|
9156
8840
|
name: "Enum",
|
|
@@ -9202,8 +8886,7 @@ const MicrosoftLanguageStemmingTokenizer = {
|
|
|
9202
8886
|
"urdu"
|
|
9203
8887
|
]
|
|
9204
8888
|
}
|
|
9205
|
-
}
|
|
9206
|
-
}
|
|
8889
|
+
} })
|
|
9207
8890
|
}
|
|
9208
8891
|
};
|
|
9209
8892
|
const NGramTokenizer = {
|
|
@@ -9213,9 +8896,7 @@ const NGramTokenizer = {
|
|
|
9213
8896
|
className: "NGramTokenizer",
|
|
9214
8897
|
uberParent: "LexicalTokenizer",
|
|
9215
8898
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9216
|
-
modelProperties: {
|
|
9217
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9218
|
-
minGram: {
|
|
8899
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { minGram: {
|
|
9219
8900
|
defaultValue: 1,
|
|
9220
8901
|
constraints: {
|
|
9221
8902
|
InclusiveMaximum: 300
|
|
@@ -9224,8 +8905,7 @@ const NGramTokenizer = {
|
|
|
9224
8905
|
type: {
|
|
9225
8906
|
name: "Number"
|
|
9226
8907
|
}
|
|
9227
|
-
},
|
|
9228
|
-
maxGram: {
|
|
8908
|
+
}, maxGram: {
|
|
9229
8909
|
defaultValue: 2,
|
|
9230
8910
|
constraints: {
|
|
9231
8911
|
InclusiveMaximum: 300
|
|
@@ -9234,8 +8914,7 @@ const NGramTokenizer = {
|
|
|
9234
8914
|
type: {
|
|
9235
8915
|
name: "Number"
|
|
9236
8916
|
}
|
|
9237
|
-
},
|
|
9238
|
-
tokenChars: {
|
|
8917
|
+
}, tokenChars: {
|
|
9239
8918
|
serializedName: "tokenChars",
|
|
9240
8919
|
type: {
|
|
9241
8920
|
name: "Sequence",
|
|
@@ -9252,8 +8931,7 @@ const NGramTokenizer = {
|
|
|
9252
8931
|
}
|
|
9253
8932
|
}
|
|
9254
8933
|
}
|
|
9255
|
-
}
|
|
9256
|
-
}
|
|
8934
|
+
} })
|
|
9257
8935
|
}
|
|
9258
8936
|
};
|
|
9259
8937
|
const PathHierarchyTokenizerV2 = {
|
|
@@ -9263,23 +8941,19 @@ const PathHierarchyTokenizerV2 = {
|
|
|
9263
8941
|
className: "PathHierarchyTokenizerV2",
|
|
9264
8942
|
uberParent: "LexicalTokenizer",
|
|
9265
8943
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9266
|
-
modelProperties: {
|
|
9267
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9268
|
-
delimiter: {
|
|
8944
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { delimiter: {
|
|
9269
8945
|
defaultValue: "/",
|
|
9270
8946
|
serializedName: "delimiter",
|
|
9271
8947
|
type: {
|
|
9272
8948
|
name: "String"
|
|
9273
8949
|
}
|
|
9274
|
-
},
|
|
9275
|
-
replacement: {
|
|
8950
|
+
}, replacement: {
|
|
9276
8951
|
defaultValue: "/",
|
|
9277
8952
|
serializedName: "replacement",
|
|
9278
8953
|
type: {
|
|
9279
8954
|
name: "String"
|
|
9280
8955
|
}
|
|
9281
|
-
},
|
|
9282
|
-
maxTokenLength: {
|
|
8956
|
+
}, maxTokenLength: {
|
|
9283
8957
|
defaultValue: 300,
|
|
9284
8958
|
constraints: {
|
|
9285
8959
|
InclusiveMaximum: 300
|
|
@@ -9288,22 +8962,19 @@ const PathHierarchyTokenizerV2 = {
|
|
|
9288
8962
|
type: {
|
|
9289
8963
|
name: "Number"
|
|
9290
8964
|
}
|
|
9291
|
-
},
|
|
9292
|
-
reverseTokenOrder: {
|
|
8965
|
+
}, reverseTokenOrder: {
|
|
9293
8966
|
defaultValue: false,
|
|
9294
8967
|
serializedName: "reverse",
|
|
9295
8968
|
type: {
|
|
9296
8969
|
name: "Boolean"
|
|
9297
8970
|
}
|
|
9298
|
-
},
|
|
9299
|
-
numberOfTokensToSkip: {
|
|
8971
|
+
}, numberOfTokensToSkip: {
|
|
9300
8972
|
defaultValue: 0,
|
|
9301
8973
|
serializedName: "skip",
|
|
9302
8974
|
type: {
|
|
9303
8975
|
name: "Number"
|
|
9304
8976
|
}
|
|
9305
|
-
}
|
|
9306
|
-
}
|
|
8977
|
+
} })
|
|
9307
8978
|
}
|
|
9308
8979
|
};
|
|
9309
8980
|
const PatternTokenizer = {
|
|
@@ -9313,29 +8984,24 @@ const PatternTokenizer = {
|
|
|
9313
8984
|
className: "PatternTokenizer",
|
|
9314
8985
|
uberParent: "LexicalTokenizer",
|
|
9315
8986
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9316
|
-
modelProperties: {
|
|
9317
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9318
|
-
pattern: {
|
|
8987
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { pattern: {
|
|
9319
8988
|
defaultValue: "W+",
|
|
9320
8989
|
serializedName: "pattern",
|
|
9321
8990
|
type: {
|
|
9322
8991
|
name: "String"
|
|
9323
8992
|
}
|
|
9324
|
-
},
|
|
9325
|
-
flags: {
|
|
8993
|
+
}, flags: {
|
|
9326
8994
|
serializedName: "flags",
|
|
9327
8995
|
type: {
|
|
9328
8996
|
name: "String"
|
|
9329
8997
|
}
|
|
9330
|
-
},
|
|
9331
|
-
group: {
|
|
8998
|
+
}, group: {
|
|
9332
8999
|
defaultValue: -1,
|
|
9333
9000
|
serializedName: "group",
|
|
9334
9001
|
type: {
|
|
9335
9002
|
name: "Number"
|
|
9336
9003
|
}
|
|
9337
|
-
}
|
|
9338
|
-
}
|
|
9004
|
+
} })
|
|
9339
9005
|
}
|
|
9340
9006
|
};
|
|
9341
9007
|
const LuceneStandardTokenizer = {
|
|
@@ -9345,16 +9011,13 @@ const LuceneStandardTokenizer = {
|
|
|
9345
9011
|
className: "LuceneStandardTokenizer",
|
|
9346
9012
|
uberParent: "LexicalTokenizer",
|
|
9347
9013
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9348
|
-
modelProperties: {
|
|
9349
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9350
|
-
maxTokenLength: {
|
|
9014
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
9351
9015
|
defaultValue: 255,
|
|
9352
9016
|
serializedName: "maxTokenLength",
|
|
9353
9017
|
type: {
|
|
9354
9018
|
name: "Number"
|
|
9355
9019
|
}
|
|
9356
|
-
}
|
|
9357
|
-
}
|
|
9020
|
+
} })
|
|
9358
9021
|
}
|
|
9359
9022
|
};
|
|
9360
9023
|
const LuceneStandardTokenizerV2 = {
|
|
@@ -9364,9 +9027,7 @@ const LuceneStandardTokenizerV2 = {
|
|
|
9364
9027
|
className: "LuceneStandardTokenizerV2",
|
|
9365
9028
|
uberParent: "LexicalTokenizer",
|
|
9366
9029
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9367
|
-
modelProperties: {
|
|
9368
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9369
|
-
maxTokenLength: {
|
|
9030
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
9370
9031
|
defaultValue: 255,
|
|
9371
9032
|
constraints: {
|
|
9372
9033
|
InclusiveMaximum: 300
|
|
@@ -9375,8 +9036,7 @@ const LuceneStandardTokenizerV2 = {
|
|
|
9375
9036
|
type: {
|
|
9376
9037
|
name: "Number"
|
|
9377
9038
|
}
|
|
9378
|
-
}
|
|
9379
|
-
}
|
|
9039
|
+
} })
|
|
9380
9040
|
}
|
|
9381
9041
|
};
|
|
9382
9042
|
const UaxUrlEmailTokenizer = {
|
|
@@ -9386,9 +9046,7 @@ const UaxUrlEmailTokenizer = {
|
|
|
9386
9046
|
className: "UaxUrlEmailTokenizer",
|
|
9387
9047
|
uberParent: "LexicalTokenizer",
|
|
9388
9048
|
polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
|
|
9389
|
-
modelProperties: {
|
|
9390
|
-
...LexicalTokenizer.type.modelProperties,
|
|
9391
|
-
maxTokenLength: {
|
|
9049
|
+
modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
|
|
9392
9050
|
defaultValue: 255,
|
|
9393
9051
|
constraints: {
|
|
9394
9052
|
InclusiveMaximum: 300
|
|
@@ -9397,8 +9055,7 @@ const UaxUrlEmailTokenizer = {
|
|
|
9397
9055
|
type: {
|
|
9398
9056
|
name: "Number"
|
|
9399
9057
|
}
|
|
9400
|
-
}
|
|
9401
|
-
}
|
|
9058
|
+
} })
|
|
9402
9059
|
}
|
|
9403
9060
|
};
|
|
9404
9061
|
const AsciiFoldingTokenFilter = {
|
|
@@ -9408,16 +9065,13 @@ const AsciiFoldingTokenFilter = {
|
|
|
9408
9065
|
className: "AsciiFoldingTokenFilter",
|
|
9409
9066
|
uberParent: "TokenFilter",
|
|
9410
9067
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9411
|
-
modelProperties: {
|
|
9412
|
-
...TokenFilter.type.modelProperties,
|
|
9413
|
-
preserveOriginal: {
|
|
9068
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { preserveOriginal: {
|
|
9414
9069
|
defaultValue: false,
|
|
9415
9070
|
serializedName: "preserveOriginal",
|
|
9416
9071
|
type: {
|
|
9417
9072
|
name: "Boolean"
|
|
9418
9073
|
}
|
|
9419
|
-
}
|
|
9420
|
-
}
|
|
9074
|
+
} })
|
|
9421
9075
|
}
|
|
9422
9076
|
};
|
|
9423
9077
|
const CjkBigramTokenFilter = {
|
|
@@ -9427,9 +9081,7 @@ const CjkBigramTokenFilter = {
|
|
|
9427
9081
|
className: "CjkBigramTokenFilter",
|
|
9428
9082
|
uberParent: "TokenFilter",
|
|
9429
9083
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9430
|
-
modelProperties: {
|
|
9431
|
-
...TokenFilter.type.modelProperties,
|
|
9432
|
-
ignoreScripts: {
|
|
9084
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { ignoreScripts: {
|
|
9433
9085
|
serializedName: "ignoreScripts",
|
|
9434
9086
|
type: {
|
|
9435
9087
|
name: "Sequence",
|
|
@@ -9440,15 +9092,13 @@ const CjkBigramTokenFilter = {
|
|
|
9440
9092
|
}
|
|
9441
9093
|
}
|
|
9442
9094
|
}
|
|
9443
|
-
},
|
|
9444
|
-
outputUnigrams: {
|
|
9095
|
+
}, outputUnigrams: {
|
|
9445
9096
|
defaultValue: false,
|
|
9446
9097
|
serializedName: "outputUnigrams",
|
|
9447
9098
|
type: {
|
|
9448
9099
|
name: "Boolean"
|
|
9449
9100
|
}
|
|
9450
|
-
}
|
|
9451
|
-
}
|
|
9101
|
+
} })
|
|
9452
9102
|
}
|
|
9453
9103
|
};
|
|
9454
9104
|
const CommonGramTokenFilter = {
|
|
@@ -9458,9 +9108,7 @@ const CommonGramTokenFilter = {
|
|
|
9458
9108
|
className: "CommonGramTokenFilter",
|
|
9459
9109
|
uberParent: "TokenFilter",
|
|
9460
9110
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9461
|
-
modelProperties: {
|
|
9462
|
-
...TokenFilter.type.modelProperties,
|
|
9463
|
-
commonWords: {
|
|
9111
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { commonWords: {
|
|
9464
9112
|
serializedName: "commonWords",
|
|
9465
9113
|
required: true,
|
|
9466
9114
|
type: {
|
|
@@ -9471,22 +9119,19 @@ const CommonGramTokenFilter = {
|
|
|
9471
9119
|
}
|
|
9472
9120
|
}
|
|
9473
9121
|
}
|
|
9474
|
-
},
|
|
9475
|
-
ignoreCase: {
|
|
9122
|
+
}, ignoreCase: {
|
|
9476
9123
|
defaultValue: false,
|
|
9477
9124
|
serializedName: "ignoreCase",
|
|
9478
9125
|
type: {
|
|
9479
9126
|
name: "Boolean"
|
|
9480
9127
|
}
|
|
9481
|
-
},
|
|
9482
|
-
useQueryMode: {
|
|
9128
|
+
}, useQueryMode: {
|
|
9483
9129
|
defaultValue: false,
|
|
9484
9130
|
serializedName: "queryMode",
|
|
9485
9131
|
type: {
|
|
9486
9132
|
name: "Boolean"
|
|
9487
9133
|
}
|
|
9488
|
-
}
|
|
9489
|
-
}
|
|
9134
|
+
} })
|
|
9490
9135
|
}
|
|
9491
9136
|
};
|
|
9492
9137
|
const DictionaryDecompounderTokenFilter = {
|
|
@@ -9496,9 +9141,7 @@ const DictionaryDecompounderTokenFilter = {
|
|
|
9496
9141
|
className: "DictionaryDecompounderTokenFilter",
|
|
9497
9142
|
uberParent: "TokenFilter",
|
|
9498
9143
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9499
|
-
modelProperties: {
|
|
9500
|
-
...TokenFilter.type.modelProperties,
|
|
9501
|
-
wordList: {
|
|
9144
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { wordList: {
|
|
9502
9145
|
serializedName: "wordList",
|
|
9503
9146
|
required: true,
|
|
9504
9147
|
type: {
|
|
@@ -9509,8 +9152,7 @@ const DictionaryDecompounderTokenFilter = {
|
|
|
9509
9152
|
}
|
|
9510
9153
|
}
|
|
9511
9154
|
}
|
|
9512
|
-
},
|
|
9513
|
-
minWordSize: {
|
|
9155
|
+
}, minWordSize: {
|
|
9514
9156
|
defaultValue: 5,
|
|
9515
9157
|
constraints: {
|
|
9516
9158
|
InclusiveMaximum: 300
|
|
@@ -9519,8 +9161,7 @@ const DictionaryDecompounderTokenFilter = {
|
|
|
9519
9161
|
type: {
|
|
9520
9162
|
name: "Number"
|
|
9521
9163
|
}
|
|
9522
|
-
},
|
|
9523
|
-
minSubwordSize: {
|
|
9164
|
+
}, minSubwordSize: {
|
|
9524
9165
|
defaultValue: 2,
|
|
9525
9166
|
constraints: {
|
|
9526
9167
|
InclusiveMaximum: 300
|
|
@@ -9529,8 +9170,7 @@ const DictionaryDecompounderTokenFilter = {
|
|
|
9529
9170
|
type: {
|
|
9530
9171
|
name: "Number"
|
|
9531
9172
|
}
|
|
9532
|
-
},
|
|
9533
|
-
maxSubwordSize: {
|
|
9173
|
+
}, maxSubwordSize: {
|
|
9534
9174
|
defaultValue: 15,
|
|
9535
9175
|
constraints: {
|
|
9536
9176
|
InclusiveMaximum: 300
|
|
@@ -9539,15 +9179,13 @@ const DictionaryDecompounderTokenFilter = {
|
|
|
9539
9179
|
type: {
|
|
9540
9180
|
name: "Number"
|
|
9541
9181
|
}
|
|
9542
|
-
},
|
|
9543
|
-
onlyLongestMatch: {
|
|
9182
|
+
}, onlyLongestMatch: {
|
|
9544
9183
|
defaultValue: false,
|
|
9545
9184
|
serializedName: "onlyLongestMatch",
|
|
9546
9185
|
type: {
|
|
9547
9186
|
name: "Boolean"
|
|
9548
9187
|
}
|
|
9549
|
-
}
|
|
9550
|
-
}
|
|
9188
|
+
} })
|
|
9551
9189
|
}
|
|
9552
9190
|
};
|
|
9553
9191
|
const EdgeNGramTokenFilter = {
|
|
@@ -9557,30 +9195,25 @@ const EdgeNGramTokenFilter = {
|
|
|
9557
9195
|
className: "EdgeNGramTokenFilter",
|
|
9558
9196
|
uberParent: "TokenFilter",
|
|
9559
9197
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9560
|
-
modelProperties: {
|
|
9561
|
-
...TokenFilter.type.modelProperties,
|
|
9562
|
-
minGram: {
|
|
9198
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
|
|
9563
9199
|
defaultValue: 1,
|
|
9564
9200
|
serializedName: "minGram",
|
|
9565
9201
|
type: {
|
|
9566
9202
|
name: "Number"
|
|
9567
9203
|
}
|
|
9568
|
-
},
|
|
9569
|
-
maxGram: {
|
|
9204
|
+
}, maxGram: {
|
|
9570
9205
|
defaultValue: 2,
|
|
9571
9206
|
serializedName: "maxGram",
|
|
9572
9207
|
type: {
|
|
9573
9208
|
name: "Number"
|
|
9574
9209
|
}
|
|
9575
|
-
},
|
|
9576
|
-
side: {
|
|
9210
|
+
}, side: {
|
|
9577
9211
|
serializedName: "side",
|
|
9578
9212
|
type: {
|
|
9579
9213
|
name: "Enum",
|
|
9580
9214
|
allowedValues: ["front", "back"]
|
|
9581
9215
|
}
|
|
9582
|
-
}
|
|
9583
|
-
}
|
|
9216
|
+
} })
|
|
9584
9217
|
}
|
|
9585
9218
|
};
|
|
9586
9219
|
const EdgeNGramTokenFilterV2 = {
|
|
@@ -9590,9 +9223,7 @@ const EdgeNGramTokenFilterV2 = {
|
|
|
9590
9223
|
className: "EdgeNGramTokenFilterV2",
|
|
9591
9224
|
uberParent: "TokenFilter",
|
|
9592
9225
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9593
|
-
modelProperties: {
|
|
9594
|
-
...TokenFilter.type.modelProperties,
|
|
9595
|
-
minGram: {
|
|
9226
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
|
|
9596
9227
|
defaultValue: 1,
|
|
9597
9228
|
constraints: {
|
|
9598
9229
|
InclusiveMaximum: 300
|
|
@@ -9601,8 +9232,7 @@ const EdgeNGramTokenFilterV2 = {
|
|
|
9601
9232
|
type: {
|
|
9602
9233
|
name: "Number"
|
|
9603
9234
|
}
|
|
9604
|
-
},
|
|
9605
|
-
maxGram: {
|
|
9235
|
+
}, maxGram: {
|
|
9606
9236
|
defaultValue: 2,
|
|
9607
9237
|
constraints: {
|
|
9608
9238
|
InclusiveMaximum: 300
|
|
@@ -9611,15 +9241,13 @@ const EdgeNGramTokenFilterV2 = {
|
|
|
9611
9241
|
type: {
|
|
9612
9242
|
name: "Number"
|
|
9613
9243
|
}
|
|
9614
|
-
},
|
|
9615
|
-
side: {
|
|
9244
|
+
}, side: {
|
|
9616
9245
|
serializedName: "side",
|
|
9617
9246
|
type: {
|
|
9618
9247
|
name: "Enum",
|
|
9619
9248
|
allowedValues: ["front", "back"]
|
|
9620
9249
|
}
|
|
9621
|
-
}
|
|
9622
|
-
}
|
|
9250
|
+
} })
|
|
9623
9251
|
}
|
|
9624
9252
|
};
|
|
9625
9253
|
const ElisionTokenFilter = {
|
|
@@ -9629,9 +9257,7 @@ const ElisionTokenFilter = {
|
|
|
9629
9257
|
className: "ElisionTokenFilter",
|
|
9630
9258
|
uberParent: "TokenFilter",
|
|
9631
9259
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9632
|
-
modelProperties: {
|
|
9633
|
-
...TokenFilter.type.modelProperties,
|
|
9634
|
-
articles: {
|
|
9260
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { articles: {
|
|
9635
9261
|
serializedName: "articles",
|
|
9636
9262
|
type: {
|
|
9637
9263
|
name: "Sequence",
|
|
@@ -9641,8 +9267,7 @@ const ElisionTokenFilter = {
|
|
|
9641
9267
|
}
|
|
9642
9268
|
}
|
|
9643
9269
|
}
|
|
9644
|
-
}
|
|
9645
|
-
}
|
|
9270
|
+
} })
|
|
9646
9271
|
}
|
|
9647
9272
|
};
|
|
9648
9273
|
const KeepTokenFilter = {
|
|
@@ -9652,9 +9277,7 @@ const KeepTokenFilter = {
|
|
|
9652
9277
|
className: "KeepTokenFilter",
|
|
9653
9278
|
uberParent: "TokenFilter",
|
|
9654
9279
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9655
|
-
modelProperties: {
|
|
9656
|
-
...TokenFilter.type.modelProperties,
|
|
9657
|
-
keepWords: {
|
|
9280
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { keepWords: {
|
|
9658
9281
|
serializedName: "keepWords",
|
|
9659
9282
|
required: true,
|
|
9660
9283
|
type: {
|
|
@@ -9665,15 +9288,13 @@ const KeepTokenFilter = {
|
|
|
9665
9288
|
}
|
|
9666
9289
|
}
|
|
9667
9290
|
}
|
|
9668
|
-
},
|
|
9669
|
-
lowerCaseKeepWords: {
|
|
9291
|
+
}, lowerCaseKeepWords: {
|
|
9670
9292
|
defaultValue: false,
|
|
9671
9293
|
serializedName: "keepWordsCase",
|
|
9672
9294
|
type: {
|
|
9673
9295
|
name: "Boolean"
|
|
9674
9296
|
}
|
|
9675
|
-
}
|
|
9676
|
-
}
|
|
9297
|
+
} })
|
|
9677
9298
|
}
|
|
9678
9299
|
};
|
|
9679
9300
|
const KeywordMarkerTokenFilter = {
|
|
@@ -9683,9 +9304,7 @@ const KeywordMarkerTokenFilter = {
|
|
|
9683
9304
|
className: "KeywordMarkerTokenFilter",
|
|
9684
9305
|
uberParent: "TokenFilter",
|
|
9685
9306
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9686
|
-
modelProperties: {
|
|
9687
|
-
...TokenFilter.type.modelProperties,
|
|
9688
|
-
keywords: {
|
|
9307
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { keywords: {
|
|
9689
9308
|
serializedName: "keywords",
|
|
9690
9309
|
required: true,
|
|
9691
9310
|
type: {
|
|
@@ -9696,15 +9315,13 @@ const KeywordMarkerTokenFilter = {
|
|
|
9696
9315
|
}
|
|
9697
9316
|
}
|
|
9698
9317
|
}
|
|
9699
|
-
},
|
|
9700
|
-
ignoreCase: {
|
|
9318
|
+
}, ignoreCase: {
|
|
9701
9319
|
defaultValue: false,
|
|
9702
9320
|
serializedName: "ignoreCase",
|
|
9703
9321
|
type: {
|
|
9704
9322
|
name: "Boolean"
|
|
9705
9323
|
}
|
|
9706
|
-
}
|
|
9707
|
-
}
|
|
9324
|
+
} })
|
|
9708
9325
|
}
|
|
9709
9326
|
};
|
|
9710
9327
|
const LengthTokenFilter = {
|
|
@@ -9714,9 +9331,7 @@ const LengthTokenFilter = {
|
|
|
9714
9331
|
className: "LengthTokenFilter",
|
|
9715
9332
|
uberParent: "TokenFilter",
|
|
9716
9333
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9717
|
-
modelProperties: {
|
|
9718
|
-
...TokenFilter.type.modelProperties,
|
|
9719
|
-
minLength: {
|
|
9334
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minLength: {
|
|
9720
9335
|
defaultValue: 0,
|
|
9721
9336
|
constraints: {
|
|
9722
9337
|
InclusiveMaximum: 300
|
|
@@ -9725,8 +9340,7 @@ const LengthTokenFilter = {
|
|
|
9725
9340
|
type: {
|
|
9726
9341
|
name: "Number"
|
|
9727
9342
|
}
|
|
9728
|
-
},
|
|
9729
|
-
maxLength: {
|
|
9343
|
+
}, maxLength: {
|
|
9730
9344
|
defaultValue: 300,
|
|
9731
9345
|
constraints: {
|
|
9732
9346
|
InclusiveMaximum: 300
|
|
@@ -9735,8 +9349,7 @@ const LengthTokenFilter = {
|
|
|
9735
9349
|
type: {
|
|
9736
9350
|
name: "Number"
|
|
9737
9351
|
}
|
|
9738
|
-
}
|
|
9739
|
-
}
|
|
9352
|
+
} })
|
|
9740
9353
|
}
|
|
9741
9354
|
};
|
|
9742
9355
|
const LimitTokenFilter = {
|
|
@@ -9746,23 +9359,19 @@ const LimitTokenFilter = {
|
|
|
9746
9359
|
className: "LimitTokenFilter",
|
|
9747
9360
|
uberParent: "TokenFilter",
|
|
9748
9361
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9749
|
-
modelProperties: {
|
|
9750
|
-
...TokenFilter.type.modelProperties,
|
|
9751
|
-
maxTokenCount: {
|
|
9362
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { maxTokenCount: {
|
|
9752
9363
|
defaultValue: 1,
|
|
9753
9364
|
serializedName: "maxTokenCount",
|
|
9754
9365
|
type: {
|
|
9755
9366
|
name: "Number"
|
|
9756
9367
|
}
|
|
9757
|
-
},
|
|
9758
|
-
consumeAllTokens: {
|
|
9368
|
+
}, consumeAllTokens: {
|
|
9759
9369
|
defaultValue: false,
|
|
9760
9370
|
serializedName: "consumeAllTokens",
|
|
9761
9371
|
type: {
|
|
9762
9372
|
name: "Boolean"
|
|
9763
9373
|
}
|
|
9764
|
-
}
|
|
9765
|
-
}
|
|
9374
|
+
} })
|
|
9766
9375
|
}
|
|
9767
9376
|
};
|
|
9768
9377
|
const NGramTokenFilter = {
|
|
@@ -9772,23 +9381,19 @@ const NGramTokenFilter = {
|
|
|
9772
9381
|
className: "NGramTokenFilter",
|
|
9773
9382
|
uberParent: "TokenFilter",
|
|
9774
9383
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9775
|
-
modelProperties: {
|
|
9776
|
-
...TokenFilter.type.modelProperties,
|
|
9777
|
-
minGram: {
|
|
9384
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
|
|
9778
9385
|
defaultValue: 1,
|
|
9779
9386
|
serializedName: "minGram",
|
|
9780
9387
|
type: {
|
|
9781
9388
|
name: "Number"
|
|
9782
9389
|
}
|
|
9783
|
-
},
|
|
9784
|
-
maxGram: {
|
|
9390
|
+
}, maxGram: {
|
|
9785
9391
|
defaultValue: 2,
|
|
9786
9392
|
serializedName: "maxGram",
|
|
9787
9393
|
type: {
|
|
9788
9394
|
name: "Number"
|
|
9789
9395
|
}
|
|
9790
|
-
}
|
|
9791
|
-
}
|
|
9396
|
+
} })
|
|
9792
9397
|
}
|
|
9793
9398
|
};
|
|
9794
9399
|
const NGramTokenFilterV2 = {
|
|
@@ -9798,9 +9403,7 @@ const NGramTokenFilterV2 = {
|
|
|
9798
9403
|
className: "NGramTokenFilterV2",
|
|
9799
9404
|
uberParent: "TokenFilter",
|
|
9800
9405
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9801
|
-
modelProperties: {
|
|
9802
|
-
...TokenFilter.type.modelProperties,
|
|
9803
|
-
minGram: {
|
|
9406
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
|
|
9804
9407
|
defaultValue: 1,
|
|
9805
9408
|
constraints: {
|
|
9806
9409
|
InclusiveMaximum: 300
|
|
@@ -9809,8 +9412,7 @@ const NGramTokenFilterV2 = {
|
|
|
9809
9412
|
type: {
|
|
9810
9413
|
name: "Number"
|
|
9811
9414
|
}
|
|
9812
|
-
},
|
|
9813
|
-
maxGram: {
|
|
9415
|
+
}, maxGram: {
|
|
9814
9416
|
defaultValue: 2,
|
|
9815
9417
|
constraints: {
|
|
9816
9418
|
InclusiveMaximum: 300
|
|
@@ -9819,8 +9421,7 @@ const NGramTokenFilterV2 = {
|
|
|
9819
9421
|
type: {
|
|
9820
9422
|
name: "Number"
|
|
9821
9423
|
}
|
|
9822
|
-
}
|
|
9823
|
-
}
|
|
9424
|
+
} })
|
|
9824
9425
|
}
|
|
9825
9426
|
};
|
|
9826
9427
|
const PatternCaptureTokenFilter = {
|
|
@@ -9830,9 +9431,7 @@ const PatternCaptureTokenFilter = {
|
|
|
9830
9431
|
className: "PatternCaptureTokenFilter",
|
|
9831
9432
|
uberParent: "TokenFilter",
|
|
9832
9433
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9833
|
-
modelProperties: {
|
|
9834
|
-
...TokenFilter.type.modelProperties,
|
|
9835
|
-
patterns: {
|
|
9434
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { patterns: {
|
|
9836
9435
|
serializedName: "patterns",
|
|
9837
9436
|
required: true,
|
|
9838
9437
|
type: {
|
|
@@ -9843,15 +9442,13 @@ const PatternCaptureTokenFilter = {
|
|
|
9843
9442
|
}
|
|
9844
9443
|
}
|
|
9845
9444
|
}
|
|
9846
|
-
},
|
|
9847
|
-
preserveOriginal: {
|
|
9445
|
+
}, preserveOriginal: {
|
|
9848
9446
|
defaultValue: true,
|
|
9849
9447
|
serializedName: "preserveOriginal",
|
|
9850
9448
|
type: {
|
|
9851
9449
|
name: "Boolean"
|
|
9852
9450
|
}
|
|
9853
|
-
}
|
|
9854
|
-
}
|
|
9451
|
+
} })
|
|
9855
9452
|
}
|
|
9856
9453
|
};
|
|
9857
9454
|
const PatternReplaceTokenFilter = {
|
|
@@ -9861,23 +9458,19 @@ const PatternReplaceTokenFilter = {
|
|
|
9861
9458
|
className: "PatternReplaceTokenFilter",
|
|
9862
9459
|
uberParent: "TokenFilter",
|
|
9863
9460
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9864
|
-
modelProperties: {
|
|
9865
|
-
...TokenFilter.type.modelProperties,
|
|
9866
|
-
pattern: {
|
|
9461
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { pattern: {
|
|
9867
9462
|
serializedName: "pattern",
|
|
9868
9463
|
required: true,
|
|
9869
9464
|
type: {
|
|
9870
9465
|
name: "String"
|
|
9871
9466
|
}
|
|
9872
|
-
},
|
|
9873
|
-
replacement: {
|
|
9467
|
+
}, replacement: {
|
|
9874
9468
|
serializedName: "replacement",
|
|
9875
9469
|
required: true,
|
|
9876
9470
|
type: {
|
|
9877
9471
|
name: "String"
|
|
9878
9472
|
}
|
|
9879
|
-
}
|
|
9880
|
-
}
|
|
9473
|
+
} })
|
|
9881
9474
|
}
|
|
9882
9475
|
};
|
|
9883
9476
|
const PhoneticTokenFilter = {
|
|
@@ -9887,9 +9480,7 @@ const PhoneticTokenFilter = {
|
|
|
9887
9480
|
className: "PhoneticTokenFilter",
|
|
9888
9481
|
uberParent: "TokenFilter",
|
|
9889
9482
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9890
|
-
modelProperties: {
|
|
9891
|
-
...TokenFilter.type.modelProperties,
|
|
9892
|
-
encoder: {
|
|
9483
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { encoder: {
|
|
9893
9484
|
serializedName: "encoder",
|
|
9894
9485
|
type: {
|
|
9895
9486
|
name: "Enum",
|
|
@@ -9907,15 +9498,13 @@ const PhoneticTokenFilter = {
|
|
|
9907
9498
|
"beiderMorse"
|
|
9908
9499
|
]
|
|
9909
9500
|
}
|
|
9910
|
-
},
|
|
9911
|
-
replaceOriginalTokens: {
|
|
9501
|
+
}, replaceOriginalTokens: {
|
|
9912
9502
|
defaultValue: true,
|
|
9913
9503
|
serializedName: "replace",
|
|
9914
9504
|
type: {
|
|
9915
9505
|
name: "Boolean"
|
|
9916
9506
|
}
|
|
9917
|
-
}
|
|
9918
|
-
}
|
|
9507
|
+
} })
|
|
9919
9508
|
}
|
|
9920
9509
|
};
|
|
9921
9510
|
const ShingleTokenFilter = {
|
|
@@ -9925,9 +9514,7 @@ const ShingleTokenFilter = {
|
|
|
9925
9514
|
className: "ShingleTokenFilter",
|
|
9926
9515
|
uberParent: "TokenFilter",
|
|
9927
9516
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9928
|
-
modelProperties: {
|
|
9929
|
-
...TokenFilter.type.modelProperties,
|
|
9930
|
-
maxShingleSize: {
|
|
9517
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { maxShingleSize: {
|
|
9931
9518
|
defaultValue: 2,
|
|
9932
9519
|
constraints: {
|
|
9933
9520
|
InclusiveMinimum: 2
|
|
@@ -9936,8 +9523,7 @@ const ShingleTokenFilter = {
|
|
|
9936
9523
|
type: {
|
|
9937
9524
|
name: "Number"
|
|
9938
9525
|
}
|
|
9939
|
-
},
|
|
9940
|
-
minShingleSize: {
|
|
9526
|
+
}, minShingleSize: {
|
|
9941
9527
|
defaultValue: 2,
|
|
9942
9528
|
constraints: {
|
|
9943
9529
|
InclusiveMinimum: 2
|
|
@@ -9946,36 +9532,31 @@ const ShingleTokenFilter = {
|
|
|
9946
9532
|
type: {
|
|
9947
9533
|
name: "Number"
|
|
9948
9534
|
}
|
|
9949
|
-
},
|
|
9950
|
-
outputUnigrams: {
|
|
9535
|
+
}, outputUnigrams: {
|
|
9951
9536
|
defaultValue: true,
|
|
9952
9537
|
serializedName: "outputUnigrams",
|
|
9953
9538
|
type: {
|
|
9954
9539
|
name: "Boolean"
|
|
9955
9540
|
}
|
|
9956
|
-
},
|
|
9957
|
-
outputUnigramsIfNoShingles: {
|
|
9541
|
+
}, outputUnigramsIfNoShingles: {
|
|
9958
9542
|
defaultValue: false,
|
|
9959
9543
|
serializedName: "outputUnigramsIfNoShingles",
|
|
9960
9544
|
type: {
|
|
9961
9545
|
name: "Boolean"
|
|
9962
9546
|
}
|
|
9963
|
-
},
|
|
9964
|
-
tokenSeparator: {
|
|
9547
|
+
}, tokenSeparator: {
|
|
9965
9548
|
defaultValue: " ",
|
|
9966
9549
|
serializedName: "tokenSeparator",
|
|
9967
9550
|
type: {
|
|
9968
9551
|
name: "String"
|
|
9969
9552
|
}
|
|
9970
|
-
},
|
|
9971
|
-
filterToken: {
|
|
9553
|
+
}, filterToken: {
|
|
9972
9554
|
defaultValue: "_",
|
|
9973
9555
|
serializedName: "filterToken",
|
|
9974
9556
|
type: {
|
|
9975
9557
|
name: "String"
|
|
9976
9558
|
}
|
|
9977
|
-
}
|
|
9978
|
-
}
|
|
9559
|
+
} })
|
|
9979
9560
|
}
|
|
9980
9561
|
};
|
|
9981
9562
|
const SnowballTokenFilter = {
|
|
@@ -9985,9 +9566,7 @@ const SnowballTokenFilter = {
|
|
|
9985
9566
|
className: "SnowballTokenFilter",
|
|
9986
9567
|
uberParent: "TokenFilter",
|
|
9987
9568
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
9988
|
-
modelProperties: {
|
|
9989
|
-
...TokenFilter.type.modelProperties,
|
|
9990
|
-
language: {
|
|
9569
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { language: {
|
|
9991
9570
|
serializedName: "language",
|
|
9992
9571
|
required: true,
|
|
9993
9572
|
type: {
|
|
@@ -10017,8 +9596,7 @@ const SnowballTokenFilter = {
|
|
|
10017
9596
|
"turkish"
|
|
10018
9597
|
]
|
|
10019
9598
|
}
|
|
10020
|
-
}
|
|
10021
|
-
}
|
|
9599
|
+
} })
|
|
10022
9600
|
}
|
|
10023
9601
|
};
|
|
10024
9602
|
const StemmerTokenFilter = {
|
|
@@ -10028,9 +9606,7 @@ const StemmerTokenFilter = {
|
|
|
10028
9606
|
className: "StemmerTokenFilter",
|
|
10029
9607
|
uberParent: "TokenFilter",
|
|
10030
9608
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10031
|
-
modelProperties: {
|
|
10032
|
-
...TokenFilter.type.modelProperties,
|
|
10033
|
-
language: {
|
|
9609
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { language: {
|
|
10034
9610
|
serializedName: "language",
|
|
10035
9611
|
required: true,
|
|
10036
9612
|
type: {
|
|
@@ -10092,8 +9668,7 @@ const StemmerTokenFilter = {
|
|
|
10092
9668
|
"turkish"
|
|
10093
9669
|
]
|
|
10094
9670
|
}
|
|
10095
|
-
}
|
|
10096
|
-
}
|
|
9671
|
+
} })
|
|
10097
9672
|
}
|
|
10098
9673
|
};
|
|
10099
9674
|
const StemmerOverrideTokenFilter = {
|
|
@@ -10103,9 +9678,7 @@ const StemmerOverrideTokenFilter = {
|
|
|
10103
9678
|
className: "StemmerOverrideTokenFilter",
|
|
10104
9679
|
uberParent: "TokenFilter",
|
|
10105
9680
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10106
|
-
modelProperties: {
|
|
10107
|
-
...TokenFilter.type.modelProperties,
|
|
10108
|
-
rules: {
|
|
9681
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { rules: {
|
|
10109
9682
|
serializedName: "rules",
|
|
10110
9683
|
required: true,
|
|
10111
9684
|
type: {
|
|
@@ -10116,8 +9689,7 @@ const StemmerOverrideTokenFilter = {
|
|
|
10116
9689
|
}
|
|
10117
9690
|
}
|
|
10118
9691
|
}
|
|
10119
|
-
}
|
|
10120
|
-
}
|
|
9692
|
+
} })
|
|
10121
9693
|
}
|
|
10122
9694
|
};
|
|
10123
9695
|
const StopwordsTokenFilter = {
|
|
@@ -10127,9 +9699,7 @@ const StopwordsTokenFilter = {
|
|
|
10127
9699
|
className: "StopwordsTokenFilter",
|
|
10128
9700
|
uberParent: "TokenFilter",
|
|
10129
9701
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10130
|
-
modelProperties: {
|
|
10131
|
-
...TokenFilter.type.modelProperties,
|
|
10132
|
-
stopwords: {
|
|
9702
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { stopwords: {
|
|
10133
9703
|
serializedName: "stopwords",
|
|
10134
9704
|
type: {
|
|
10135
9705
|
name: "Sequence",
|
|
@@ -10139,8 +9709,7 @@ const StopwordsTokenFilter = {
|
|
|
10139
9709
|
}
|
|
10140
9710
|
}
|
|
10141
9711
|
}
|
|
10142
|
-
},
|
|
10143
|
-
stopwordsList: {
|
|
9712
|
+
}, stopwordsList: {
|
|
10144
9713
|
serializedName: "stopwordsList",
|
|
10145
9714
|
type: {
|
|
10146
9715
|
name: "Enum",
|
|
@@ -10178,22 +9747,19 @@ const StopwordsTokenFilter = {
|
|
|
10178
9747
|
"turkish"
|
|
10179
9748
|
]
|
|
10180
9749
|
}
|
|
10181
|
-
},
|
|
10182
|
-
ignoreCase: {
|
|
9750
|
+
}, ignoreCase: {
|
|
10183
9751
|
defaultValue: false,
|
|
10184
9752
|
serializedName: "ignoreCase",
|
|
10185
9753
|
type: {
|
|
10186
9754
|
name: "Boolean"
|
|
10187
9755
|
}
|
|
10188
|
-
},
|
|
10189
|
-
removeTrailingStopWords: {
|
|
9756
|
+
}, removeTrailingStopWords: {
|
|
10190
9757
|
defaultValue: true,
|
|
10191
9758
|
serializedName: "removeTrailing",
|
|
10192
9759
|
type: {
|
|
10193
9760
|
name: "Boolean"
|
|
10194
9761
|
}
|
|
10195
|
-
}
|
|
10196
|
-
}
|
|
9762
|
+
} })
|
|
10197
9763
|
}
|
|
10198
9764
|
};
|
|
10199
9765
|
const SynonymTokenFilter = {
|
|
@@ -10203,9 +9769,7 @@ const SynonymTokenFilter = {
|
|
|
10203
9769
|
className: "SynonymTokenFilter",
|
|
10204
9770
|
uberParent: "TokenFilter",
|
|
10205
9771
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10206
|
-
modelProperties: {
|
|
10207
|
-
...TokenFilter.type.modelProperties,
|
|
10208
|
-
synonyms: {
|
|
9772
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { synonyms: {
|
|
10209
9773
|
serializedName: "synonyms",
|
|
10210
9774
|
required: true,
|
|
10211
9775
|
type: {
|
|
@@ -10216,22 +9780,19 @@ const SynonymTokenFilter = {
|
|
|
10216
9780
|
}
|
|
10217
9781
|
}
|
|
10218
9782
|
}
|
|
10219
|
-
},
|
|
10220
|
-
ignoreCase: {
|
|
9783
|
+
}, ignoreCase: {
|
|
10221
9784
|
defaultValue: false,
|
|
10222
9785
|
serializedName: "ignoreCase",
|
|
10223
9786
|
type: {
|
|
10224
9787
|
name: "Boolean"
|
|
10225
9788
|
}
|
|
10226
|
-
},
|
|
10227
|
-
expand: {
|
|
9789
|
+
}, expand: {
|
|
10228
9790
|
defaultValue: true,
|
|
10229
9791
|
serializedName: "expand",
|
|
10230
9792
|
type: {
|
|
10231
9793
|
name: "Boolean"
|
|
10232
9794
|
}
|
|
10233
|
-
}
|
|
10234
|
-
}
|
|
9795
|
+
} })
|
|
10235
9796
|
}
|
|
10236
9797
|
};
|
|
10237
9798
|
const TruncateTokenFilter = {
|
|
@@ -10241,9 +9802,7 @@ const TruncateTokenFilter = {
|
|
|
10241
9802
|
className: "TruncateTokenFilter",
|
|
10242
9803
|
uberParent: "TokenFilter",
|
|
10243
9804
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10244
|
-
modelProperties: {
|
|
10245
|
-
...TokenFilter.type.modelProperties,
|
|
10246
|
-
length: {
|
|
9805
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { length: {
|
|
10247
9806
|
defaultValue: 300,
|
|
10248
9807
|
constraints: {
|
|
10249
9808
|
InclusiveMaximum: 300
|
|
@@ -10252,8 +9811,7 @@ const TruncateTokenFilter = {
|
|
|
10252
9811
|
type: {
|
|
10253
9812
|
name: "Number"
|
|
10254
9813
|
}
|
|
10255
|
-
}
|
|
10256
|
-
}
|
|
9814
|
+
} })
|
|
10257
9815
|
}
|
|
10258
9816
|
};
|
|
10259
9817
|
const UniqueTokenFilter = {
|
|
@@ -10263,16 +9821,13 @@ const UniqueTokenFilter = {
|
|
|
10263
9821
|
className: "UniqueTokenFilter",
|
|
10264
9822
|
uberParent: "TokenFilter",
|
|
10265
9823
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10266
|
-
modelProperties: {
|
|
10267
|
-
...TokenFilter.type.modelProperties,
|
|
10268
|
-
onlyOnSamePosition: {
|
|
9824
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { onlyOnSamePosition: {
|
|
10269
9825
|
defaultValue: false,
|
|
10270
9826
|
serializedName: "onlyOnSamePosition",
|
|
10271
9827
|
type: {
|
|
10272
9828
|
name: "Boolean"
|
|
10273
9829
|
}
|
|
10274
|
-
}
|
|
10275
|
-
}
|
|
9830
|
+
} })
|
|
10276
9831
|
}
|
|
10277
9832
|
};
|
|
10278
9833
|
const WordDelimiterTokenFilter = {
|
|
@@ -10282,72 +9837,61 @@ const WordDelimiterTokenFilter = {
|
|
|
10282
9837
|
className: "WordDelimiterTokenFilter",
|
|
10283
9838
|
uberParent: "TokenFilter",
|
|
10284
9839
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
10285
|
-
modelProperties: {
|
|
10286
|
-
...TokenFilter.type.modelProperties,
|
|
10287
|
-
generateWordParts: {
|
|
9840
|
+
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { generateWordParts: {
|
|
10288
9841
|
defaultValue: true,
|
|
10289
9842
|
serializedName: "generateWordParts",
|
|
10290
9843
|
type: {
|
|
10291
9844
|
name: "Boolean"
|
|
10292
9845
|
}
|
|
10293
|
-
},
|
|
10294
|
-
generateNumberParts: {
|
|
9846
|
+
}, generateNumberParts: {
|
|
10295
9847
|
defaultValue: true,
|
|
10296
9848
|
serializedName: "generateNumberParts",
|
|
10297
9849
|
type: {
|
|
10298
9850
|
name: "Boolean"
|
|
10299
9851
|
}
|
|
10300
|
-
},
|
|
10301
|
-
catenateWords: {
|
|
9852
|
+
}, catenateWords: {
|
|
10302
9853
|
defaultValue: false,
|
|
10303
9854
|
serializedName: "catenateWords",
|
|
10304
9855
|
type: {
|
|
10305
9856
|
name: "Boolean"
|
|
10306
9857
|
}
|
|
10307
|
-
},
|
|
10308
|
-
catenateNumbers: {
|
|
9858
|
+
}, catenateNumbers: {
|
|
10309
9859
|
defaultValue: false,
|
|
10310
9860
|
serializedName: "catenateNumbers",
|
|
10311
9861
|
type: {
|
|
10312
9862
|
name: "Boolean"
|
|
10313
9863
|
}
|
|
10314
|
-
},
|
|
10315
|
-
catenateAll: {
|
|
9864
|
+
}, catenateAll: {
|
|
10316
9865
|
defaultValue: false,
|
|
10317
9866
|
serializedName: "catenateAll",
|
|
10318
9867
|
type: {
|
|
10319
9868
|
name: "Boolean"
|
|
10320
9869
|
}
|
|
10321
|
-
},
|
|
10322
|
-
splitOnCaseChange: {
|
|
9870
|
+
}, splitOnCaseChange: {
|
|
10323
9871
|
defaultValue: true,
|
|
10324
9872
|
serializedName: "splitOnCaseChange",
|
|
10325
9873
|
type: {
|
|
10326
9874
|
name: "Boolean"
|
|
10327
9875
|
}
|
|
10328
|
-
},
|
|
10329
|
-
preserveOriginal: {
|
|
9876
|
+
}, preserveOriginal: {
|
|
10330
9877
|
defaultValue: false,
|
|
10331
9878
|
serializedName: "preserveOriginal",
|
|
10332
9879
|
type: {
|
|
10333
9880
|
name: "Boolean"
|
|
10334
9881
|
}
|
|
10335
|
-
},
|
|
10336
|
-
splitOnNumerics: {
|
|
9882
|
+
}, splitOnNumerics: {
|
|
10337
9883
|
defaultValue: true,
|
|
10338
9884
|
serializedName: "splitOnNumerics",
|
|
10339
9885
|
type: {
|
|
10340
9886
|
name: "Boolean"
|
|
10341
9887
|
}
|
|
10342
|
-
},
|
|
10343
|
-
stemEnglishPossessive: {
|
|
9888
|
+
}, stemEnglishPossessive: {
|
|
10344
9889
|
defaultValue: true,
|
|
10345
9890
|
serializedName: "stemEnglishPossessive",
|
|
10346
9891
|
type: {
|
|
10347
9892
|
name: "Boolean"
|
|
10348
9893
|
}
|
|
10349
|
-
},
|
|
10350
|
-
protectedWords: {
|
|
9894
|
+
}, protectedWords: {
|
|
10351
9895
|
serializedName: "protectedWords",
|
|
10352
9896
|
type: {
|
|
10353
9897
|
name: "Sequence",
|
|
@@ -10357,8 +9901,7 @@ const WordDelimiterTokenFilter = {
|
|
|
10357
9901
|
}
|
|
10358
9902
|
}
|
|
10359
9903
|
}
|
|
10360
|
-
}
|
|
10361
|
-
}
|
|
9904
|
+
} })
|
|
10362
9905
|
}
|
|
10363
9906
|
};
|
|
10364
9907
|
const MappingCharFilter = {
|
|
@@ -10368,9 +9911,7 @@ const MappingCharFilter = {
|
|
|
10368
9911
|
className: "MappingCharFilter",
|
|
10369
9912
|
uberParent: "CharFilter",
|
|
10370
9913
|
polymorphicDiscriminator: CharFilter.type.polymorphicDiscriminator,
|
|
10371
|
-
modelProperties: {
|
|
10372
|
-
...CharFilter.type.modelProperties,
|
|
10373
|
-
mappings: {
|
|
9914
|
+
modelProperties: Object.assign(Object.assign({}, CharFilter.type.modelProperties), { mappings: {
|
|
10374
9915
|
serializedName: "mappings",
|
|
10375
9916
|
required: true,
|
|
10376
9917
|
type: {
|
|
@@ -10381,8 +9922,7 @@ const MappingCharFilter = {
|
|
|
10381
9922
|
}
|
|
10382
9923
|
}
|
|
10383
9924
|
}
|
|
10384
|
-
}
|
|
10385
|
-
}
|
|
9925
|
+
} })
|
|
10386
9926
|
}
|
|
10387
9927
|
};
|
|
10388
9928
|
const PatternReplaceCharFilter = {
|
|
@@ -10392,23 +9932,19 @@ const PatternReplaceCharFilter = {
|
|
|
10392
9932
|
className: "PatternReplaceCharFilter",
|
|
10393
9933
|
uberParent: "CharFilter",
|
|
10394
9934
|
polymorphicDiscriminator: CharFilter.type.polymorphicDiscriminator,
|
|
10395
|
-
modelProperties: {
|
|
10396
|
-
...CharFilter.type.modelProperties,
|
|
10397
|
-
pattern: {
|
|
9935
|
+
modelProperties: Object.assign(Object.assign({}, CharFilter.type.modelProperties), { pattern: {
|
|
10398
9936
|
serializedName: "pattern",
|
|
10399
9937
|
required: true,
|
|
10400
9938
|
type: {
|
|
10401
9939
|
name: "String"
|
|
10402
9940
|
}
|
|
10403
|
-
},
|
|
10404
|
-
replacement: {
|
|
9941
|
+
}, replacement: {
|
|
10405
9942
|
serializedName: "replacement",
|
|
10406
9943
|
required: true,
|
|
10407
9944
|
type: {
|
|
10408
9945
|
name: "String"
|
|
10409
9946
|
}
|
|
10410
|
-
}
|
|
10411
|
-
}
|
|
9947
|
+
} })
|
|
10412
9948
|
}
|
|
10413
9949
|
};
|
|
10414
9950
|
const CustomNormalizer = {
|
|
@@ -10418,9 +9954,7 @@ const CustomNormalizer = {
|
|
|
10418
9954
|
className: "CustomNormalizer",
|
|
10419
9955
|
uberParent: "LexicalNormalizer",
|
|
10420
9956
|
polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
|
|
10421
|
-
modelProperties: {
|
|
10422
|
-
...LexicalNormalizer.type.modelProperties,
|
|
10423
|
-
tokenFilters: {
|
|
9957
|
+
modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
|
|
10424
9958
|
serializedName: "tokenFilters",
|
|
10425
9959
|
type: {
|
|
10426
9960
|
name: "Sequence",
|
|
@@ -10430,8 +9964,7 @@ const CustomNormalizer = {
|
|
|
10430
9964
|
}
|
|
10431
9965
|
}
|
|
10432
9966
|
}
|
|
10433
|
-
},
|
|
10434
|
-
charFilters: {
|
|
9967
|
+
}, charFilters: {
|
|
10435
9968
|
serializedName: "charFilters",
|
|
10436
9969
|
type: {
|
|
10437
9970
|
name: "Sequence",
|
|
@@ -10441,8 +9974,7 @@ const CustomNormalizer = {
|
|
|
10441
9974
|
}
|
|
10442
9975
|
}
|
|
10443
9976
|
}
|
|
10444
|
-
}
|
|
10445
|
-
}
|
|
9977
|
+
} })
|
|
10446
9978
|
}
|
|
10447
9979
|
};
|
|
10448
9980
|
const ClassicSimilarity = {
|
|
@@ -10452,9 +9984,7 @@ const ClassicSimilarity = {
|
|
|
10452
9984
|
className: "ClassicSimilarity",
|
|
10453
9985
|
uberParent: "Similarity",
|
|
10454
9986
|
polymorphicDiscriminator: Similarity.type.polymorphicDiscriminator,
|
|
10455
|
-
modelProperties: {
|
|
10456
|
-
...Similarity.type.modelProperties
|
|
10457
|
-
}
|
|
9987
|
+
modelProperties: Object.assign({}, Similarity.type.modelProperties)
|
|
10458
9988
|
}
|
|
10459
9989
|
};
|
|
10460
9990
|
const BM25Similarity = {
|
|
@@ -10464,23 +9994,19 @@ const BM25Similarity = {
|
|
|
10464
9994
|
className: "BM25Similarity",
|
|
10465
9995
|
uberParent: "Similarity",
|
|
10466
9996
|
polymorphicDiscriminator: Similarity.type.polymorphicDiscriminator,
|
|
10467
|
-
modelProperties: {
|
|
10468
|
-
...Similarity.type.modelProperties,
|
|
10469
|
-
k1: {
|
|
9997
|
+
modelProperties: Object.assign(Object.assign({}, Similarity.type.modelProperties), { k1: {
|
|
10470
9998
|
serializedName: "k1",
|
|
10471
9999
|
nullable: true,
|
|
10472
10000
|
type: {
|
|
10473
10001
|
name: "Number"
|
|
10474
10002
|
}
|
|
10475
|
-
},
|
|
10476
|
-
b: {
|
|
10003
|
+
}, b: {
|
|
10477
10004
|
serializedName: "b",
|
|
10478
10005
|
nullable: true,
|
|
10479
10006
|
type: {
|
|
10480
10007
|
name: "Number"
|
|
10481
10008
|
}
|
|
10482
|
-
}
|
|
10483
|
-
}
|
|
10009
|
+
} })
|
|
10484
10010
|
}
|
|
10485
10011
|
};
|
|
10486
10012
|
const HnswVectorSearchAlgorithmConfiguration = {
|
|
@@ -10490,16 +10016,13 @@ const HnswVectorSearchAlgorithmConfiguration = {
|
|
|
10490
10016
|
className: "HnswVectorSearchAlgorithmConfiguration",
|
|
10491
10017
|
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
10492
10018
|
polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
|
|
10493
|
-
modelProperties: {
|
|
10494
|
-
...VectorSearchAlgorithmConfiguration.type.modelProperties,
|
|
10495
|
-
parameters: {
|
|
10019
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
|
|
10496
10020
|
serializedName: "hnswParameters",
|
|
10497
10021
|
type: {
|
|
10498
10022
|
name: "Composite",
|
|
10499
10023
|
className: "HnswParameters"
|
|
10500
10024
|
}
|
|
10501
|
-
}
|
|
10502
|
-
}
|
|
10025
|
+
} })
|
|
10503
10026
|
}
|
|
10504
10027
|
};
|
|
10505
10028
|
const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
|
|
@@ -10509,16 +10032,13 @@ const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
|
|
|
10509
10032
|
className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration",
|
|
10510
10033
|
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
10511
10034
|
polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
|
|
10512
|
-
modelProperties: {
|
|
10513
|
-
...VectorSearchAlgorithmConfiguration.type.modelProperties,
|
|
10514
|
-
parameters: {
|
|
10035
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
|
|
10515
10036
|
serializedName: "exhaustiveKnnParameters",
|
|
10516
10037
|
type: {
|
|
10517
10038
|
name: "Composite",
|
|
10518
10039
|
className: "ExhaustiveKnnParameters"
|
|
10519
10040
|
}
|
|
10520
|
-
}
|
|
10521
|
-
}
|
|
10041
|
+
} })
|
|
10522
10042
|
}
|
|
10523
10043
|
};
|
|
10524
10044
|
const AzureOpenAIVectorizer = {
|
|
@@ -10528,16 +10048,13 @@ const AzureOpenAIVectorizer = {
|
|
|
10528
10048
|
className: "AzureOpenAIVectorizer",
|
|
10529
10049
|
uberParent: "VectorSearchVectorizer",
|
|
10530
10050
|
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
10531
|
-
modelProperties: {
|
|
10532
|
-
...VectorSearchVectorizer.type.modelProperties,
|
|
10533
|
-
azureOpenAIParameters: {
|
|
10051
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { azureOpenAIParameters: {
|
|
10534
10052
|
serializedName: "azureOpenAIParameters",
|
|
10535
10053
|
type: {
|
|
10536
10054
|
name: "Composite",
|
|
10537
10055
|
className: "AzureOpenAIParameters"
|
|
10538
10056
|
}
|
|
10539
|
-
}
|
|
10540
|
-
}
|
|
10057
|
+
} })
|
|
10541
10058
|
}
|
|
10542
10059
|
};
|
|
10543
10060
|
const CustomVectorizer = {
|
|
@@ -10547,34 +10064,27 @@ const CustomVectorizer = {
|
|
|
10547
10064
|
className: "CustomVectorizer",
|
|
10548
10065
|
uberParent: "VectorSearchVectorizer",
|
|
10549
10066
|
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
10550
|
-
modelProperties: {
|
|
10551
|
-
...VectorSearchVectorizer.type.modelProperties,
|
|
10552
|
-
customVectorizerParameters: {
|
|
10067
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { customVectorizerParameters: {
|
|
10553
10068
|
serializedName: "customVectorizerParameters",
|
|
10554
10069
|
type: {
|
|
10555
10070
|
name: "Composite",
|
|
10556
10071
|
className: "CustomVectorizerParameters"
|
|
10557
10072
|
}
|
|
10558
|
-
}
|
|
10559
|
-
}
|
|
10073
|
+
} })
|
|
10560
10074
|
}
|
|
10561
10075
|
};
|
|
10562
10076
|
const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
|
|
10563
10077
|
type: {
|
|
10564
10078
|
name: "Composite",
|
|
10565
10079
|
className: "SearchIndexerKnowledgeStoreObjectProjectionSelector",
|
|
10566
|
-
modelProperties: {
|
|
10567
|
-
...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties
|
|
10568
|
-
}
|
|
10080
|
+
modelProperties: Object.assign({}, SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties)
|
|
10569
10081
|
}
|
|
10570
10082
|
};
|
|
10571
10083
|
const SearchIndexerKnowledgeStoreFileProjectionSelector = {
|
|
10572
10084
|
type: {
|
|
10573
10085
|
name: "Composite",
|
|
10574
10086
|
className: "SearchIndexerKnowledgeStoreFileProjectionSelector",
|
|
10575
|
-
modelProperties: {
|
|
10576
|
-
...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties
|
|
10577
|
-
}
|
|
10087
|
+
modelProperties: Object.assign({}, SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties)
|
|
10578
10088
|
}
|
|
10579
10089
|
};
|
|
10580
10090
|
let discriminators = {
|
|
@@ -12206,6 +11716,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
12206
11716
|
* @param options The parameter options
|
|
12207
11717
|
*/
|
|
12208
11718
|
constructor(endpoint, apiVersion, options) {
|
|
11719
|
+
var _a, _b;
|
|
12209
11720
|
if (endpoint === undefined) {
|
|
12210
11721
|
throw new Error("'endpoint' cannot be null");
|
|
12211
11722
|
}
|
|
@@ -12223,14 +11734,9 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
|
|
|
12223
11734
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
12224
11735
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
12225
11736
|
: `${packageDetails}`;
|
|
12226
|
-
const optionsWithDefaults = {
|
|
12227
|
-
...defaults,
|
|
12228
|
-
...options,
|
|
12229
|
-
userAgentOptions: {
|
|
11737
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
12230
11738
|
userAgentPrefix
|
|
12231
|
-
},
|
|
12232
|
-
baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}"
|
|
12233
|
-
};
|
|
11739
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
|
12234
11740
|
super(optionsWithDefaults);
|
|
12235
11741
|
// Parameter assignments
|
|
12236
11742
|
this.endpoint = endpoint;
|
|
@@ -12271,7 +11777,6 @@ const getServiceStatisticsOperationSpec = {
|
|
|
12271
11777
|
|
|
12272
11778
|
// Copyright (c) Microsoft Corporation.
|
|
12273
11779
|
// Licensed under the MIT license.
|
|
12274
|
-
/// <reference lib="esnext.asynciterable" />
|
|
12275
11780
|
/**
|
|
12276
11781
|
* Class to perform operations to manage
|
|
12277
11782
|
* (create, update, list/delete)
|
|
@@ -12295,6 +11800,7 @@ class SearchIndexClient {
|
|
|
12295
11800
|
* @param options - Used to configure the Search Index client.
|
|
12296
11801
|
*/
|
|
12297
11802
|
constructor(endpoint, credential, options = {}) {
|
|
11803
|
+
var _a, _b;
|
|
12298
11804
|
/**
|
|
12299
11805
|
* The API version to use when communicating with the service.
|
|
12300
11806
|
*/
|
|
@@ -12307,24 +11813,21 @@ class SearchIndexClient {
|
|
|
12307
11813
|
this.endpoint = endpoint;
|
|
12308
11814
|
this.credential = credential;
|
|
12309
11815
|
this.options = options;
|
|
12310
|
-
const internalClientPipelineOptions = {
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
"throttle-reason",
|
|
12322
|
-
],
|
|
12323
|
-
},
|
|
11816
|
+
const internalClientPipelineOptions = Object.assign(Object.assign({}, this.options), {
|
|
11817
|
+
loggingOptions: {
|
|
11818
|
+
logger: logger.info,
|
|
11819
|
+
additionalAllowedHeaderNames: [
|
|
11820
|
+
"elapsed-time",
|
|
11821
|
+
"Location",
|
|
11822
|
+
"OData-MaxVersion",
|
|
11823
|
+
"OData-Version",
|
|
11824
|
+
"Prefer",
|
|
11825
|
+
"throttle-reason",
|
|
11826
|
+
],
|
|
12324
11827
|
},
|
|
12325
|
-
};
|
|
11828
|
+
});
|
|
12326
11829
|
this.serviceVersion =
|
|
12327
|
-
this.options.serviceVersion
|
|
11830
|
+
(_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
12328
11831
|
this.apiVersion = this.serviceVersion;
|
|
12329
11832
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
12330
11833
|
if (coreAuth.isTokenCredential(credential)) {
|
|
@@ -12338,28 +11841,45 @@ class SearchIndexClient {
|
|
|
12338
11841
|
}
|
|
12339
11842
|
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
12340
11843
|
}
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
11844
|
+
listIndexesPage(options = {}) {
|
|
11845
|
+
return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
|
|
11846
|
+
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
|
|
11847
|
+
try {
|
|
11848
|
+
const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
|
|
11849
|
+
const mapped = result.indexes.map(generatedIndexToPublicIndex);
|
|
11850
|
+
yield yield tslib.__await(mapped);
|
|
11851
|
+
}
|
|
11852
|
+
catch (e) {
|
|
11853
|
+
span.setStatus({
|
|
11854
|
+
status: "error",
|
|
11855
|
+
error: e.message,
|
|
11856
|
+
});
|
|
11857
|
+
throw e;
|
|
11858
|
+
}
|
|
11859
|
+
finally {
|
|
11860
|
+
span.end();
|
|
11861
|
+
}
|
|
11862
|
+
});
|
|
12358
11863
|
}
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
11864
|
+
listIndexesAll(options = {}) {
|
|
11865
|
+
return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
|
|
11866
|
+
var _a, e_1, _b, _c;
|
|
11867
|
+
try {
|
|
11868
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11869
|
+
_c = _f.value;
|
|
11870
|
+
_d = false;
|
|
11871
|
+
const page = _c;
|
|
11872
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11873
|
+
}
|
|
11874
|
+
}
|
|
11875
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
11876
|
+
finally {
|
|
11877
|
+
try {
|
|
11878
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
11879
|
+
}
|
|
11880
|
+
finally { if (e_1) throw e_1.error; }
|
|
11881
|
+
}
|
|
11882
|
+
});
|
|
12363
11883
|
}
|
|
12364
11884
|
/**
|
|
12365
11885
|
* Retrieves a list of existing indexes in the service.
|
|
@@ -12379,27 +11899,44 @@ class SearchIndexClient {
|
|
|
12379
11899
|
},
|
|
12380
11900
|
};
|
|
12381
11901
|
}
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
11902
|
+
listAliasesPage(options = {}) {
|
|
11903
|
+
return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
|
|
11904
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options);
|
|
11905
|
+
try {
|
|
11906
|
+
const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
|
|
11907
|
+
yield yield tslib.__await(result.aliases);
|
|
11908
|
+
}
|
|
11909
|
+
catch (e) {
|
|
11910
|
+
span.setStatus({
|
|
11911
|
+
status: "error",
|
|
11912
|
+
error: e.message,
|
|
11913
|
+
});
|
|
11914
|
+
throw e;
|
|
11915
|
+
}
|
|
11916
|
+
finally {
|
|
11917
|
+
span.end();
|
|
11918
|
+
}
|
|
11919
|
+
});
|
|
12398
11920
|
}
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
11921
|
+
listAliasesAll(options = {}) {
|
|
11922
|
+
return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
|
|
11923
|
+
var _a, e_2, _b, _c;
|
|
11924
|
+
try {
|
|
11925
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11926
|
+
_c = _f.value;
|
|
11927
|
+
_d = false;
|
|
11928
|
+
const page = _c;
|
|
11929
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11930
|
+
}
|
|
11931
|
+
}
|
|
11932
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
11933
|
+
finally {
|
|
11934
|
+
try {
|
|
11935
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
11936
|
+
}
|
|
11937
|
+
finally { if (e_2) throw e_2.error; }
|
|
11938
|
+
}
|
|
11939
|
+
});
|
|
12403
11940
|
}
|
|
12404
11941
|
/**
|
|
12405
11942
|
* Lists all aliases available for a search service.
|
|
@@ -12419,31 +11956,45 @@ class SearchIndexClient {
|
|
|
12419
11956
|
},
|
|
12420
11957
|
};
|
|
12421
11958
|
}
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
}
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
}
|
|
11959
|
+
listIndexesNamesPage(options = {}) {
|
|
11960
|
+
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
|
|
11961
|
+
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
|
|
11962
|
+
try {
|
|
11963
|
+
const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" })));
|
|
11964
|
+
const mapped = result.indexes.map((idx) => idx.name);
|
|
11965
|
+
yield yield tslib.__await(mapped);
|
|
11966
|
+
}
|
|
11967
|
+
catch (e) {
|
|
11968
|
+
span.setStatus({
|
|
11969
|
+
status: "error",
|
|
11970
|
+
error: e.message,
|
|
11971
|
+
});
|
|
11972
|
+
throw e;
|
|
11973
|
+
}
|
|
11974
|
+
finally {
|
|
11975
|
+
span.end();
|
|
11976
|
+
}
|
|
11977
|
+
});
|
|
12442
11978
|
}
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
11979
|
+
listIndexesNamesAll(options = {}) {
|
|
11980
|
+
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
|
|
11981
|
+
var _a, e_3, _b, _c;
|
|
11982
|
+
try {
|
|
11983
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11984
|
+
_c = _f.value;
|
|
11985
|
+
_d = false;
|
|
11986
|
+
const page = _c;
|
|
11987
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11988
|
+
}
|
|
11989
|
+
}
|
|
11990
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
11991
|
+
finally {
|
|
11992
|
+
try {
|
|
11993
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
11994
|
+
}
|
|
11995
|
+
finally { if (e_3) throw e_3.error; }
|
|
11996
|
+
}
|
|
11997
|
+
});
|
|
12447
11998
|
}
|
|
12448
11999
|
/**
|
|
12449
12000
|
* Retrieves a list of names of existing indexes in the service.
|
|
@@ -12491,10 +12042,7 @@ class SearchIndexClient {
|
|
|
12491
12042
|
async listSynonymMapsNames(options = {}) {
|
|
12492
12043
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
|
|
12493
12044
|
try {
|
|
12494
|
-
const result = await this.client.synonymMaps.list({
|
|
12495
|
-
...updatedOptions,
|
|
12496
|
-
select: "name",
|
|
12497
|
-
});
|
|
12045
|
+
const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
12498
12046
|
return result.synonymMaps.map((sm) => sm.name);
|
|
12499
12047
|
}
|
|
12500
12048
|
catch (e) {
|
|
@@ -12605,10 +12153,7 @@ class SearchIndexClient {
|
|
|
12605
12153
|
const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateIndex", options);
|
|
12606
12154
|
try {
|
|
12607
12155
|
const etag = options.onlyIfUnchanged ? index.etag : undefined;
|
|
12608
|
-
const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), {
|
|
12609
|
-
...updatedOptions,
|
|
12610
|
-
ifMatch: etag,
|
|
12611
|
-
});
|
|
12156
|
+
const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12612
12157
|
return generatedIndexToPublicIndex(result);
|
|
12613
12158
|
}
|
|
12614
12159
|
catch (e) {
|
|
@@ -12631,10 +12176,7 @@ class SearchIndexClient {
|
|
|
12631
12176
|
const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateSynonymMap", options);
|
|
12632
12177
|
try {
|
|
12633
12178
|
const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;
|
|
12634
|
-
const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), {
|
|
12635
|
-
...updatedOptions,
|
|
12636
|
-
ifMatch: etag,
|
|
12637
|
-
});
|
|
12179
|
+
const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12638
12180
|
return generatedSynonymMapToPublicSynonymMap(result);
|
|
12639
12181
|
}
|
|
12640
12182
|
catch (e) {
|
|
@@ -12658,10 +12200,7 @@ class SearchIndexClient {
|
|
|
12658
12200
|
try {
|
|
12659
12201
|
const indexName = typeof index === "string" ? index : index.name;
|
|
12660
12202
|
const etag = typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;
|
|
12661
|
-
await this.client.indexes.delete(indexName, {
|
|
12662
|
-
...updatedOptions,
|
|
12663
|
-
ifMatch: etag,
|
|
12664
|
-
});
|
|
12203
|
+
await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12665
12204
|
}
|
|
12666
12205
|
catch (e) {
|
|
12667
12206
|
span.setStatus({
|
|
@@ -12688,10 +12227,7 @@ class SearchIndexClient {
|
|
|
12688
12227
|
: options.onlyIfUnchanged
|
|
12689
12228
|
? synonymMap.etag
|
|
12690
12229
|
: undefined;
|
|
12691
|
-
await this.client.synonymMaps.delete(synonymMapName, {
|
|
12692
|
-
...updatedOptions,
|
|
12693
|
-
ifMatch: etag,
|
|
12694
|
-
});
|
|
12230
|
+
await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12695
12231
|
}
|
|
12696
12232
|
catch (e) {
|
|
12697
12233
|
span.setStatus({
|
|
@@ -12713,10 +12249,7 @@ class SearchIndexClient {
|
|
|
12713
12249
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options);
|
|
12714
12250
|
try {
|
|
12715
12251
|
const etag = options.onlyIfUnchanged ? alias.etag : undefined;
|
|
12716
|
-
const result = await this.client.aliases.createOrUpdate(alias.name, alias, {
|
|
12717
|
-
...updatedOptions,
|
|
12718
|
-
ifMatch: etag,
|
|
12719
|
-
});
|
|
12252
|
+
const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12720
12253
|
return result;
|
|
12721
12254
|
}
|
|
12722
12255
|
catch (e) {
|
|
@@ -12763,10 +12296,7 @@ class SearchIndexClient {
|
|
|
12763
12296
|
try {
|
|
12764
12297
|
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
12765
12298
|
const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
|
|
12766
|
-
await this.client.aliases.delete(aliasName, {
|
|
12767
|
-
...updatedOptions,
|
|
12768
|
-
ifMatch: etag,
|
|
12769
|
-
});
|
|
12299
|
+
await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
12770
12300
|
}
|
|
12771
12301
|
catch (e) {
|
|
12772
12302
|
span.setStatus({
|
|
@@ -12831,7 +12361,7 @@ class SearchIndexClient {
|
|
|
12831
12361
|
* @param options - Additional arguments
|
|
12832
12362
|
*/
|
|
12833
12363
|
async analyzeText(indexName, options) {
|
|
12834
|
-
const { abortSignal, requestOptions, tracingOptions,
|
|
12364
|
+
const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
|
|
12835
12365
|
const operationOptions = {
|
|
12836
12366
|
abortSignal,
|
|
12837
12367
|
requestOptions,
|
|
@@ -12839,12 +12369,7 @@ class SearchIndexClient {
|
|
|
12839
12369
|
};
|
|
12840
12370
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
12841
12371
|
try {
|
|
12842
|
-
const result = await this.client.indexes.analyze(indexName, {
|
|
12843
|
-
...restOptions,
|
|
12844
|
-
analyzer: restOptions.analyzerName,
|
|
12845
|
-
tokenizer: restOptions.tokenizerName,
|
|
12846
|
-
normalizer: restOptions.normalizerName,
|
|
12847
|
-
}, updatedOptions);
|
|
12372
|
+
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), updatedOptions);
|
|
12848
12373
|
return result;
|
|
12849
12374
|
}
|
|
12850
12375
|
catch (e) {
|
|
@@ -12918,6 +12443,7 @@ class SearchIndexerClient {
|
|
|
12918
12443
|
* @param options - Used to configure the Search client.
|
|
12919
12444
|
*/
|
|
12920
12445
|
constructor(endpoint, credential, options = {}) {
|
|
12446
|
+
var _a, _b;
|
|
12921
12447
|
/**
|
|
12922
12448
|
* The API version to use when communicating with the service.
|
|
12923
12449
|
*/
|
|
@@ -12928,24 +12454,21 @@ class SearchIndexerClient {
|
|
|
12928
12454
|
*/
|
|
12929
12455
|
this.apiVersion = defaultServiceVersion;
|
|
12930
12456
|
this.endpoint = endpoint;
|
|
12931
|
-
const internalClientPipelineOptions = {
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
"throttle-reason",
|
|
12943
|
-
],
|
|
12944
|
-
},
|
|
12457
|
+
const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
12458
|
+
loggingOptions: {
|
|
12459
|
+
logger: logger.info,
|
|
12460
|
+
additionalAllowedHeaderNames: [
|
|
12461
|
+
"elapsed-time",
|
|
12462
|
+
"Location",
|
|
12463
|
+
"OData-MaxVersion",
|
|
12464
|
+
"OData-Version",
|
|
12465
|
+
"Prefer",
|
|
12466
|
+
"throttle-reason",
|
|
12467
|
+
],
|
|
12945
12468
|
},
|
|
12946
|
-
};
|
|
12469
|
+
});
|
|
12947
12470
|
this.serviceVersion =
|
|
12948
|
-
options.serviceVersion
|
|
12471
|
+
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
12949
12472
|
this.apiVersion = this.serviceVersion;
|
|
12950
12473
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
12951
12474
|
if (coreAuth.isTokenCredential(credential)) {
|
|
@@ -12987,10 +12510,7 @@ class SearchIndexerClient {
|
|
|
12987
12510
|
async listIndexersNames(options = {}) {
|
|
12988
12511
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
|
|
12989
12512
|
try {
|
|
12990
|
-
const result = await this.client.indexers.list({
|
|
12991
|
-
...updatedOptions,
|
|
12992
|
-
select: "name",
|
|
12993
|
-
});
|
|
12513
|
+
const result = await this.client.indexers.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
12994
12514
|
return result.indexers.map((idx) => idx.name);
|
|
12995
12515
|
}
|
|
12996
12516
|
catch (e) {
|
|
@@ -13032,10 +12552,7 @@ class SearchIndexerClient {
|
|
|
13032
12552
|
async listDataSourceConnectionsNames(options = {}) {
|
|
13033
12553
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
|
|
13034
12554
|
try {
|
|
13035
|
-
const result = await this.client.dataSources.list({
|
|
13036
|
-
...updatedOptions,
|
|
13037
|
-
select: "name",
|
|
13038
|
-
});
|
|
12555
|
+
const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
13039
12556
|
return result.dataSources.map((ds) => ds.name);
|
|
13040
12557
|
}
|
|
13041
12558
|
catch (e) {
|
|
@@ -13077,10 +12594,7 @@ class SearchIndexerClient {
|
|
|
13077
12594
|
async listSkillsetsNames(options = {}) {
|
|
13078
12595
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
|
|
13079
12596
|
try {
|
|
13080
|
-
const result = await this.client.skillsets.list({
|
|
13081
|
-
...updatedOptions,
|
|
13082
|
-
select: "name",
|
|
13083
|
-
});
|
|
12597
|
+
const result = await this.client.skillsets.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
13084
12598
|
return result.skillsets.map((sks) => sks.name);
|
|
13085
12599
|
}
|
|
13086
12600
|
catch (e) {
|
|
@@ -13235,12 +12749,7 @@ class SearchIndexerClient {
|
|
|
13235
12749
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
|
|
13236
12750
|
try {
|
|
13237
12751
|
const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
|
|
13238
|
-
const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), {
|
|
13239
|
-
...updatedOptions,
|
|
13240
|
-
ifMatch: etag,
|
|
13241
|
-
skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache,
|
|
13242
|
-
disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection,
|
|
13243
|
-
});
|
|
12752
|
+
const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
|
|
13244
12753
|
return generatedSearchIndexerToPublicSearchIndexer(result);
|
|
13245
12754
|
}
|
|
13246
12755
|
catch (e) {
|
|
@@ -13263,11 +12772,7 @@ class SearchIndexerClient {
|
|
|
13263
12772
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
|
|
13264
12773
|
try {
|
|
13265
12774
|
const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
|
|
13266
|
-
const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), {
|
|
13267
|
-
...updatedOptions,
|
|
13268
|
-
ifMatch: etag,
|
|
13269
|
-
skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache,
|
|
13270
|
-
});
|
|
12775
|
+
const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache }));
|
|
13271
12776
|
return generatedDataSourceToPublicDataSource(result);
|
|
13272
12777
|
}
|
|
13273
12778
|
catch (e) {
|
|
@@ -13290,12 +12795,7 @@ class SearchIndexerClient {
|
|
|
13290
12795
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
|
|
13291
12796
|
try {
|
|
13292
12797
|
const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
|
|
13293
|
-
const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), {
|
|
13294
|
-
...updatedOptions,
|
|
13295
|
-
ifMatch: etag,
|
|
13296
|
-
skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache,
|
|
13297
|
-
disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection,
|
|
13298
|
-
});
|
|
12798
|
+
const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
|
|
13299
12799
|
return generatedSkillsetToPublicSkillset(result);
|
|
13300
12800
|
}
|
|
13301
12801
|
catch (e) {
|
|
@@ -13323,10 +12823,7 @@ class SearchIndexerClient {
|
|
|
13323
12823
|
: options.onlyIfUnchanged
|
|
13324
12824
|
? indexer.etag
|
|
13325
12825
|
: undefined;
|
|
13326
|
-
await this.client.indexers.delete(indexerName, {
|
|
13327
|
-
...updatedOptions,
|
|
13328
|
-
ifMatch: etag,
|
|
13329
|
-
});
|
|
12826
|
+
await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
13330
12827
|
}
|
|
13331
12828
|
catch (e) {
|
|
13332
12829
|
span.setStatus({
|
|
@@ -13353,10 +12850,7 @@ class SearchIndexerClient {
|
|
|
13353
12850
|
: options.onlyIfUnchanged
|
|
13354
12851
|
? dataSourceConnection.etag
|
|
13355
12852
|
: undefined;
|
|
13356
|
-
await this.client.dataSources.delete(dataSourceConnectionName, {
|
|
13357
|
-
...updatedOptions,
|
|
13358
|
-
ifMatch: etag,
|
|
13359
|
-
});
|
|
12853
|
+
await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
13360
12854
|
}
|
|
13361
12855
|
catch (e) {
|
|
13362
12856
|
span.setStatus({
|
|
@@ -13383,10 +12877,7 @@ class SearchIndexerClient {
|
|
|
13383
12877
|
: options.onlyIfUnchanged
|
|
13384
12878
|
? skillset.etag
|
|
13385
12879
|
: undefined;
|
|
13386
|
-
await this.client.skillsets.delete(skillsetName, {
|
|
13387
|
-
...updatedOptions,
|
|
13388
|
-
ifMatch: etag,
|
|
13389
|
-
});
|
|
12880
|
+
await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
13390
12881
|
}
|
|
13391
12882
|
catch (e) {
|
|
13392
12883
|
span.setStatus({
|
|
@@ -13471,13 +12962,10 @@ class SearchIndexerClient {
|
|
|
13471
12962
|
async resetDocuments(indexerName, options = {}) {
|
|
13472
12963
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
|
|
13473
12964
|
try {
|
|
13474
|
-
await this.client.indexers.resetDocs(indexerName, {
|
|
13475
|
-
...updatedOptions,
|
|
13476
|
-
keysOrIds: {
|
|
12965
|
+
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
13477
12966
|
documentKeys: updatedOptions.documentKeys,
|
|
13478
12967
|
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
13479
|
-
}
|
|
13480
|
-
});
|
|
12968
|
+
} }));
|
|
13481
12969
|
}
|
|
13482
12970
|
catch (e) {
|
|
13483
12971
|
span.setStatus({
|