@azure/search-documents 11.3.0-alpha.20210930.1 → 11.3.0-alpha.20211109.3
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/CHANGELOG.md +37 -0
- package/dist/index.js +1690 -376
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +202 -1
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +6 -0
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +21 -13
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +16 -49
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js +13 -10
- package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +902 -1
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +271 -2
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/models/parameters.js +21 -3
- package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/service/operations/dataSources.js +12 -29
- package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
- package/dist-esm/src/generated/service/operations/indexers.js +40 -44
- package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operations/indexes.js +10 -39
- package/dist-esm/src/generated/service/operations/indexes.js.map +1 -1
- package/dist-esm/src/generated/service/operations/skillsets.js +38 -29
- package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/operations/synonymMaps.js +8 -28
- package/dist-esm/src/generated/service/operations/synonymMaps.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexes.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +3 -6
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js +13 -10
- package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
- package/dist-esm/src/index.js +2 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/odataMetadataPolicy.js +6 -14
- package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
- package/dist-esm/src/searchApiKeyCredentialPolicy.js +7 -20
- package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/src/searchClient.js +27 -22
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +34 -29
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +79 -33
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/searchIndexingBufferedSender.js +1 -1
- 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/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +12 -13
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +3 -2
- package/types/search-documents.d.ts +462 -45
package/dist/index.js
CHANGED
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
7
|
var tslib = require('tslib');
|
|
8
|
-
var
|
|
8
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
9
|
+
var coreClient = require('@azure/core-client');
|
|
9
10
|
var coreAuth = require('@azure/core-auth');
|
|
10
11
|
var logger$1 = require('@azure/logger');
|
|
11
12
|
var coreTracing = require('@azure/core-tracing');
|
|
@@ -285,6 +286,12 @@ const SearchRequest = {
|
|
|
285
286
|
name: "String"
|
|
286
287
|
}
|
|
287
288
|
},
|
|
289
|
+
semanticConfiguration: {
|
|
290
|
+
serializedName: "semanticConfiguration",
|
|
291
|
+
type: {
|
|
292
|
+
name: "String"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
288
295
|
searchText: {
|
|
289
296
|
serializedName: "search",
|
|
290
297
|
type: {
|
|
@@ -884,7 +891,7 @@ const facets = {
|
|
|
884
891
|
}
|
|
885
892
|
}
|
|
886
893
|
},
|
|
887
|
-
collectionFormat:
|
|
894
|
+
collectionFormat: "Multi"
|
|
888
895
|
};
|
|
889
896
|
const filter = {
|
|
890
897
|
parameterPath: ["options", "searchOptions", "filter"],
|
|
@@ -908,7 +915,7 @@ const highlightFields = {
|
|
|
908
915
|
}
|
|
909
916
|
}
|
|
910
917
|
},
|
|
911
|
-
collectionFormat:
|
|
918
|
+
collectionFormat: "CSV"
|
|
912
919
|
};
|
|
913
920
|
const highlightPostTag = {
|
|
914
921
|
parameterPath: ["options", "searchOptions", "highlightPostTag"],
|
|
@@ -950,7 +957,7 @@ const orderBy = {
|
|
|
950
957
|
}
|
|
951
958
|
}
|
|
952
959
|
},
|
|
953
|
-
collectionFormat:
|
|
960
|
+
collectionFormat: "CSV"
|
|
954
961
|
};
|
|
955
962
|
const queryType = {
|
|
956
963
|
parameterPath: ["options", "searchOptions", "queryType"],
|
|
@@ -975,7 +982,7 @@ const scoringParameters = {
|
|
|
975
982
|
}
|
|
976
983
|
}
|
|
977
984
|
},
|
|
978
|
-
collectionFormat:
|
|
985
|
+
collectionFormat: "Multi"
|
|
979
986
|
};
|
|
980
987
|
const scoringProfile = {
|
|
981
988
|
parameterPath: ["options", "searchOptions", "scoringProfile"],
|
|
@@ -986,6 +993,15 @@ const scoringProfile = {
|
|
|
986
993
|
}
|
|
987
994
|
}
|
|
988
995
|
};
|
|
996
|
+
const semanticConfiguration = {
|
|
997
|
+
parameterPath: ["options", "searchOptions", "semanticConfiguration"],
|
|
998
|
+
mapper: {
|
|
999
|
+
serializedName: "semanticConfiguration",
|
|
1000
|
+
type: {
|
|
1001
|
+
name: "String"
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
989
1005
|
const searchFields = {
|
|
990
1006
|
parameterPath: ["options", "searchOptions", "searchFields"],
|
|
991
1007
|
mapper: {
|
|
@@ -999,7 +1015,7 @@ const searchFields = {
|
|
|
999
1015
|
}
|
|
1000
1016
|
}
|
|
1001
1017
|
},
|
|
1002
|
-
collectionFormat:
|
|
1018
|
+
collectionFormat: "CSV"
|
|
1003
1019
|
};
|
|
1004
1020
|
const queryLanguage = {
|
|
1005
1021
|
parameterPath: ["options", "searchOptions", "queryLanguage"],
|
|
@@ -1070,7 +1086,7 @@ const select = {
|
|
|
1070
1086
|
}
|
|
1071
1087
|
}
|
|
1072
1088
|
},
|
|
1073
|
-
collectionFormat:
|
|
1089
|
+
collectionFormat: "CSV"
|
|
1074
1090
|
};
|
|
1075
1091
|
const skip = {
|
|
1076
1092
|
parameterPath: ["options", "searchOptions", "skip"],
|
|
@@ -1112,7 +1128,7 @@ const semanticFields = {
|
|
|
1112
1128
|
}
|
|
1113
1129
|
}
|
|
1114
1130
|
},
|
|
1115
|
-
collectionFormat:
|
|
1131
|
+
collectionFormat: "CSV"
|
|
1116
1132
|
};
|
|
1117
1133
|
const contentType = {
|
|
1118
1134
|
parameterPath: ["options", "contentType"],
|
|
@@ -1152,7 +1168,7 @@ const selectedFields = {
|
|
|
1152
1168
|
}
|
|
1153
1169
|
}
|
|
1154
1170
|
},
|
|
1155
|
-
collectionFormat:
|
|
1171
|
+
collectionFormat: "CSV"
|
|
1156
1172
|
};
|
|
1157
1173
|
const searchText1 = {
|
|
1158
1174
|
parameterPath: "searchText",
|
|
@@ -1232,7 +1248,7 @@ const orderBy1 = {
|
|
|
1232
1248
|
}
|
|
1233
1249
|
}
|
|
1234
1250
|
},
|
|
1235
|
-
collectionFormat:
|
|
1251
|
+
collectionFormat: "CSV"
|
|
1236
1252
|
};
|
|
1237
1253
|
const searchFields1 = {
|
|
1238
1254
|
parameterPath: ["options", "suggestOptions", "searchFields"],
|
|
@@ -1247,7 +1263,7 @@ const searchFields1 = {
|
|
|
1247
1263
|
}
|
|
1248
1264
|
}
|
|
1249
1265
|
},
|
|
1250
|
-
collectionFormat:
|
|
1266
|
+
collectionFormat: "CSV"
|
|
1251
1267
|
};
|
|
1252
1268
|
const select1 = {
|
|
1253
1269
|
parameterPath: ["options", "suggestOptions", "select"],
|
|
@@ -1262,7 +1278,7 @@ const select1 = {
|
|
|
1262
1278
|
}
|
|
1263
1279
|
}
|
|
1264
1280
|
},
|
|
1265
|
-
collectionFormat:
|
|
1281
|
+
collectionFormat: "CSV"
|
|
1266
1282
|
};
|
|
1267
1283
|
const top1 = {
|
|
1268
1284
|
parameterPath: ["options", "suggestOptions", "top"],
|
|
@@ -1349,7 +1365,7 @@ const searchFields2 = {
|
|
|
1349
1365
|
}
|
|
1350
1366
|
}
|
|
1351
1367
|
},
|
|
1352
|
-
collectionFormat:
|
|
1368
|
+
collectionFormat: "CSV"
|
|
1353
1369
|
};
|
|
1354
1370
|
const top2 = {
|
|
1355
1371
|
parameterPath: ["options", "autocompleteOptions", "top"],
|
|
@@ -1372,7 +1388,7 @@ const autocompleteRequest = {
|
|
|
1372
1388
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1373
1389
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1374
1390
|
*/
|
|
1375
|
-
/** Class
|
|
1391
|
+
/** Class containing Documents operations. */
|
|
1376
1392
|
class DocumentsImpl {
|
|
1377
1393
|
/**
|
|
1378
1394
|
* Initialize a new instance of the class Documents class.
|
|
@@ -1386,20 +1402,14 @@ class DocumentsImpl {
|
|
|
1386
1402
|
* @param options The options parameters.
|
|
1387
1403
|
*/
|
|
1388
1404
|
count(options) {
|
|
1389
|
-
|
|
1390
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1391
|
-
};
|
|
1392
|
-
return this.client.sendOperationRequest(operationArguments, countOperationSpec);
|
|
1405
|
+
return this.client.sendOperationRequest({ options }, countOperationSpec);
|
|
1393
1406
|
}
|
|
1394
1407
|
/**
|
|
1395
1408
|
* Searches for documents in the index.
|
|
1396
1409
|
* @param options The options parameters.
|
|
1397
1410
|
*/
|
|
1398
1411
|
searchGet(options) {
|
|
1399
|
-
|
|
1400
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1401
|
-
};
|
|
1402
|
-
return this.client.sendOperationRequest(operationArguments, searchGetOperationSpec);
|
|
1412
|
+
return this.client.sendOperationRequest({ options }, searchGetOperationSpec);
|
|
1403
1413
|
}
|
|
1404
1414
|
/**
|
|
1405
1415
|
* Searches for documents in the index.
|
|
@@ -1407,11 +1417,7 @@ class DocumentsImpl {
|
|
|
1407
1417
|
* @param options The options parameters.
|
|
1408
1418
|
*/
|
|
1409
1419
|
searchPost(searchRequest, options) {
|
|
1410
|
-
|
|
1411
|
-
searchRequest,
|
|
1412
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1413
|
-
};
|
|
1414
|
-
return this.client.sendOperationRequest(operationArguments, searchPostOperationSpec);
|
|
1420
|
+
return this.client.sendOperationRequest({ searchRequest, options }, searchPostOperationSpec);
|
|
1415
1421
|
}
|
|
1416
1422
|
/**
|
|
1417
1423
|
* Retrieves a document from the index.
|
|
@@ -1419,11 +1425,7 @@ class DocumentsImpl {
|
|
|
1419
1425
|
* @param options The options parameters.
|
|
1420
1426
|
*/
|
|
1421
1427
|
get(key, options) {
|
|
1422
|
-
|
|
1423
|
-
key,
|
|
1424
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1425
|
-
};
|
|
1426
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec);
|
|
1428
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec);
|
|
1427
1429
|
}
|
|
1428
1430
|
/**
|
|
1429
1431
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -1434,12 +1436,7 @@ class DocumentsImpl {
|
|
|
1434
1436
|
* @param options The options parameters.
|
|
1435
1437
|
*/
|
|
1436
1438
|
suggestGet(searchText, suggesterName, options) {
|
|
1437
|
-
|
|
1438
|
-
searchText,
|
|
1439
|
-
suggesterName,
|
|
1440
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1441
|
-
};
|
|
1442
|
-
return this.client.sendOperationRequest(operationArguments, suggestGetOperationSpec);
|
|
1439
|
+
return this.client.sendOperationRequest({ searchText, suggesterName, options }, suggestGetOperationSpec);
|
|
1443
1440
|
}
|
|
1444
1441
|
/**
|
|
1445
1442
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -1447,11 +1444,7 @@ class DocumentsImpl {
|
|
|
1447
1444
|
* @param options The options parameters.
|
|
1448
1445
|
*/
|
|
1449
1446
|
suggestPost(suggestRequest, options) {
|
|
1450
|
-
|
|
1451
|
-
suggestRequest,
|
|
1452
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1453
|
-
};
|
|
1454
|
-
return this.client.sendOperationRequest(operationArguments, suggestPostOperationSpec);
|
|
1447
|
+
return this.client.sendOperationRequest({ suggestRequest, options }, suggestPostOperationSpec);
|
|
1455
1448
|
}
|
|
1456
1449
|
/**
|
|
1457
1450
|
* Sends a batch of document write actions to the index.
|
|
@@ -1459,11 +1452,7 @@ class DocumentsImpl {
|
|
|
1459
1452
|
* @param options The options parameters.
|
|
1460
1453
|
*/
|
|
1461
1454
|
index(batch, options) {
|
|
1462
|
-
|
|
1463
|
-
batch,
|
|
1464
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1465
|
-
};
|
|
1466
|
-
return this.client.sendOperationRequest(operationArguments, indexOperationSpec);
|
|
1455
|
+
return this.client.sendOperationRequest({ batch, options }, indexOperationSpec);
|
|
1467
1456
|
}
|
|
1468
1457
|
/**
|
|
1469
1458
|
* Autocompletes incomplete query terms based on input text and matching terms in the index.
|
|
@@ -1473,12 +1462,7 @@ class DocumentsImpl {
|
|
|
1473
1462
|
* @param options The options parameters.
|
|
1474
1463
|
*/
|
|
1475
1464
|
autocompleteGet(searchText, suggesterName, options) {
|
|
1476
|
-
|
|
1477
|
-
searchText,
|
|
1478
|
-
suggesterName,
|
|
1479
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1480
|
-
};
|
|
1481
|
-
return this.client.sendOperationRequest(operationArguments, autocompleteGetOperationSpec);
|
|
1465
|
+
return this.client.sendOperationRequest({ searchText, suggesterName, options }, autocompleteGetOperationSpec);
|
|
1482
1466
|
}
|
|
1483
1467
|
/**
|
|
1484
1468
|
* Autocompletes incomplete query terms based on input text and matching terms in the index.
|
|
@@ -1486,15 +1470,11 @@ class DocumentsImpl {
|
|
|
1486
1470
|
* @param options The options parameters.
|
|
1487
1471
|
*/
|
|
1488
1472
|
autocompletePost(autocompleteRequest, options) {
|
|
1489
|
-
|
|
1490
|
-
autocompleteRequest,
|
|
1491
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1492
|
-
};
|
|
1493
|
-
return this.client.sendOperationRequest(operationArguments, autocompletePostOperationSpec);
|
|
1473
|
+
return this.client.sendOperationRequest({ autocompleteRequest, options }, autocompletePostOperationSpec);
|
|
1494
1474
|
}
|
|
1495
1475
|
}
|
|
1496
1476
|
// Operation Specifications
|
|
1497
|
-
const serializer =
|
|
1477
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1498
1478
|
const countOperationSpec = {
|
|
1499
1479
|
path: "/docs/$count",
|
|
1500
1480
|
httpMethod: "GET",
|
|
@@ -1536,6 +1516,7 @@ const searchGetOperationSpec = {
|
|
|
1536
1516
|
queryType,
|
|
1537
1517
|
scoringParameters,
|
|
1538
1518
|
scoringProfile,
|
|
1519
|
+
semanticConfiguration,
|
|
1539
1520
|
searchFields,
|
|
1540
1521
|
queryLanguage,
|
|
1541
1522
|
speller,
|
|
@@ -1580,7 +1561,9 @@ const getOperationSpec = {
|
|
|
1580
1561
|
httpMethod: "GET",
|
|
1581
1562
|
responses: {
|
|
1582
1563
|
200: {
|
|
1583
|
-
bodyMapper: {
|
|
1564
|
+
bodyMapper: {
|
|
1565
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
1566
|
+
}
|
|
1584
1567
|
},
|
|
1585
1568
|
default: {
|
|
1586
1569
|
bodyMapper: SearchError
|
|
@@ -1725,10 +1708,8 @@ const autocompletePostOperationSpec = {
|
|
|
1725
1708
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1726
1709
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1727
1710
|
*/
|
|
1728
|
-
const packageName = "@azure/search-documents";
|
|
1729
|
-
const packageVersion = "11.3.0-beta.3";
|
|
1730
1711
|
/** @internal */
|
|
1731
|
-
class SearchClientContext extends
|
|
1712
|
+
class SearchClientContext extends coreClient.ServiceClient {
|
|
1732
1713
|
/**
|
|
1733
1714
|
* Initializes a new instance of the SearchClientContext class.
|
|
1734
1715
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1750,12 +1731,17 @@ class SearchClientContext extends coreHttp.ServiceClient {
|
|
|
1750
1731
|
if (!options) {
|
|
1751
1732
|
options = {};
|
|
1752
1733
|
}
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1734
|
+
const defaults = {
|
|
1735
|
+
requestContentType: "application/json; charset=utf-8"
|
|
1736
|
+
};
|
|
1737
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.5`;
|
|
1738
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1739
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1740
|
+
: `${packageDetails}`;
|
|
1741
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1742
|
+
userAgentPrefix
|
|
1743
|
+
}, baseUri: options.endpoint || "{endpoint}/indexes('{indexName}')" });
|
|
1744
|
+
super(optionsWithDefaults);
|
|
1759
1745
|
// Parameter assignments
|
|
1760
1746
|
this.endpoint = endpoint;
|
|
1761
1747
|
this.indexName = indexName;
|
|
@@ -1786,39 +1772,28 @@ class SearchClient extends SearchClientContext {
|
|
|
1786
1772
|
}
|
|
1787
1773
|
|
|
1788
1774
|
// Copyright (c) Microsoft Corporation.
|
|
1775
|
+
// Licensed under the MIT license.
|
|
1789
1776
|
const API_KEY_HEADER_NAME = "api-key";
|
|
1777
|
+
const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy";
|
|
1790
1778
|
/**
|
|
1791
1779
|
* Create an HTTP pipeline policy to authenticate a request
|
|
1792
1780
|
* using an `AzureKeyCredential` for Azure Cognitive Search
|
|
1793
1781
|
*/
|
|
1794
1782
|
function createSearchApiKeyCredentialPolicy(credential) {
|
|
1795
1783
|
return {
|
|
1796
|
-
|
|
1797
|
-
|
|
1784
|
+
name: searchApiKeyCredentialPolicy,
|
|
1785
|
+
async sendRequest(request, next) {
|
|
1786
|
+
if (!request.headers.has(API_KEY_HEADER_NAME)) {
|
|
1787
|
+
request.headers.set(API_KEY_HEADER_NAME, credential.key);
|
|
1788
|
+
}
|
|
1789
|
+
return next(request);
|
|
1798
1790
|
}
|
|
1799
1791
|
};
|
|
1800
1792
|
}
|
|
1801
|
-
/**
|
|
1802
|
-
* A concrete implementation of an AzureKeyCredential policy
|
|
1803
|
-
* using the appropriate header for Azure Cognitive Search
|
|
1804
|
-
*/
|
|
1805
|
-
class SearchApiKeyCredentialPolicy extends coreHttp.BaseRequestPolicy {
|
|
1806
|
-
constructor(nextPolicy, options, credential) {
|
|
1807
|
-
super(nextPolicy, options);
|
|
1808
|
-
this.credential = credential;
|
|
1809
|
-
}
|
|
1810
|
-
async sendRequest(webResource) {
|
|
1811
|
-
if (!webResource) {
|
|
1812
|
-
throw new Error("webResource cannot be null or undefined");
|
|
1813
|
-
}
|
|
1814
|
-
webResource.headers.set(API_KEY_HEADER_NAME, this.credential.key);
|
|
1815
|
-
return this._nextPolicy.sendRequest(webResource);
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
1793
|
|
|
1819
1794
|
// Copyright (c) Microsoft Corporation.
|
|
1820
1795
|
// Licensed under the MIT license.
|
|
1821
|
-
const SDK_VERSION = "11.3.0-beta.
|
|
1796
|
+
const SDK_VERSION = "11.3.0-beta.5";
|
|
1822
1797
|
|
|
1823
1798
|
// Copyright (c) Microsoft Corporation.
|
|
1824
1799
|
/**
|
|
@@ -1893,7 +1868,7 @@ function walk(start, mapper) {
|
|
|
1893
1868
|
const current = queue.shift();
|
|
1894
1869
|
if (typeof current.value === "object" && current.value !== null) {
|
|
1895
1870
|
if (seenMarker.has(current.value)) {
|
|
1896
|
-
|
|
1871
|
+
continue;
|
|
1897
1872
|
}
|
|
1898
1873
|
else {
|
|
1899
1874
|
seenMarker.set(current.value, true);
|
|
@@ -2038,28 +2013,22 @@ function isValidObject(obj, options = {}) {
|
|
|
2038
2013
|
}
|
|
2039
2014
|
|
|
2040
2015
|
// Copyright (c) Microsoft Corporation.
|
|
2016
|
+
// Licensed under the MIT license.
|
|
2041
2017
|
const AcceptHeaderName = "Accept";
|
|
2018
|
+
const odataMetadataPolicy = "OdataMetadataPolicy";
|
|
2042
2019
|
/**
|
|
2043
2020
|
* A policy factory for setting the Accept header to ignore odata metadata
|
|
2044
2021
|
* @internal
|
|
2045
2022
|
*/
|
|
2046
|
-
function
|
|
2023
|
+
function createOdataMetadataPolicy(metadataLevel) {
|
|
2047
2024
|
return {
|
|
2048
|
-
|
|
2049
|
-
|
|
2025
|
+
name: odataMetadataPolicy,
|
|
2026
|
+
async sendRequest(request, next) {
|
|
2027
|
+
request.headers.set(AcceptHeaderName, `application/json;odata.metadata=${metadataLevel}`);
|
|
2028
|
+
return next(request);
|
|
2050
2029
|
}
|
|
2051
2030
|
};
|
|
2052
2031
|
}
|
|
2053
|
-
class OdataMetadataPolicy extends coreHttp.BaseRequestPolicy {
|
|
2054
|
-
constructor(nextPolicy, options, policyOptions) {
|
|
2055
|
-
super(nextPolicy, options);
|
|
2056
|
-
this.metadataLevel = policyOptions.metadataLevel;
|
|
2057
|
-
}
|
|
2058
|
-
async sendRequest(webResource) {
|
|
2059
|
-
webResource.headers.set(AcceptHeaderName, `application/json;odata.metadata=${this.metadataLevel}`);
|
|
2060
|
-
return this._nextPolicy.sendRequest(webResource);
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
2032
|
|
|
2064
2033
|
// Copyright (c) Microsoft Corporation.
|
|
2065
2034
|
// Licensed under the MIT license.
|
|
@@ -3013,17 +2982,6 @@ function convertSimilarityToPublic(similarity) {
|
|
|
3013
2982
|
return similarity;
|
|
3014
2983
|
}
|
|
3015
2984
|
}
|
|
3016
|
-
function extractOperationOptions(obj) {
|
|
3017
|
-
const { abortSignal, requestOptions, tracingOptions } = obj, restOptions = tslib.__rest(obj, ["abortSignal", "requestOptions", "tracingOptions"]);
|
|
3018
|
-
return {
|
|
3019
|
-
operationOptions: {
|
|
3020
|
-
abortSignal,
|
|
3021
|
-
requestOptions,
|
|
3022
|
-
tracingOptions
|
|
3023
|
-
},
|
|
3024
|
-
restOptions
|
|
3025
|
-
};
|
|
3026
|
-
}
|
|
3027
2985
|
function convertEncryptionKeyToPublic(encryptionKey) {
|
|
3028
2986
|
if (!encryptionKey) {
|
|
3029
2987
|
return encryptionKey;
|
|
@@ -3073,7 +3031,8 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
3073
3031
|
normalizers: generatedIndex.normalizers,
|
|
3074
3032
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
3075
3033
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
3076
|
-
similarity: convertSimilarityToPublic(generatedIndex.similarity)
|
|
3034
|
+
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
3035
|
+
semanticSettings: generatedIndex.semanticSettings
|
|
3077
3036
|
};
|
|
3078
3037
|
}
|
|
3079
3038
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
@@ -3122,7 +3081,8 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
3122
3081
|
analyzers: convertAnalyzersToGenerated(index.analyzers),
|
|
3123
3082
|
tokenizers: convertTokenizersToGenerated(index.tokenizers),
|
|
3124
3083
|
fields: convertFieldsToGenerated(index.fields),
|
|
3125
|
-
similarity: convertSimilarityToGenerated(index.similarity)
|
|
3084
|
+
similarity: convertSimilarityToGenerated(index.similarity),
|
|
3085
|
+
semanticSettings: index.semanticSettings
|
|
3126
3086
|
};
|
|
3127
3087
|
}
|
|
3128
3088
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
@@ -3245,6 +3205,14 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3245
3205
|
const offset = Math.floor(Math.random() * (max - min + 1));
|
|
3246
3206
|
return offset + min;
|
|
3247
3207
|
}
|
|
3208
|
+
/**
|
|
3209
|
+
* A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.
|
|
3210
|
+
* @param timeInMs - The number of milliseconds to be delayed.
|
|
3211
|
+
* @returns Promise that is resolved after timeInMs
|
|
3212
|
+
*/
|
|
3213
|
+
function delay(timeInMs) {
|
|
3214
|
+
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3215
|
+
}
|
|
3248
3216
|
|
|
3249
3217
|
// Copyright (c) Microsoft Corporation.
|
|
3250
3218
|
/**
|
|
@@ -3290,10 +3258,10 @@ class SearchClient$1 {
|
|
|
3290
3258
|
else {
|
|
3291
3259
|
options.userAgentOptions.userAgentPrefix = libInfo;
|
|
3292
3260
|
}
|
|
3293
|
-
const
|
|
3261
|
+
const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
3294
3262
|
loggingOptions: {
|
|
3295
3263
|
logger: logger.info,
|
|
3296
|
-
|
|
3264
|
+
additionalAllowedHeaderNames: [
|
|
3297
3265
|
"elapsed-time",
|
|
3298
3266
|
"Location",
|
|
3299
3267
|
"OData-MaxVersion",
|
|
@@ -3303,13 +3271,6 @@ class SearchClient$1 {
|
|
|
3303
3271
|
]
|
|
3304
3272
|
}
|
|
3305
3273
|
});
|
|
3306
|
-
const requestPolicyFactory = coreAuth.isTokenCredential(credential)
|
|
3307
|
-
? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
|
|
3308
|
-
: createSearchApiKeyCredentialPolicy(credential);
|
|
3309
|
-
const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
|
|
3310
|
-
if (Array.isArray(pipeline.requestPolicyFactories)) {
|
|
3311
|
-
pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("none"));
|
|
3312
|
-
}
|
|
3313
3274
|
let apiVersion = this.apiVersion;
|
|
3314
3275
|
if (options.apiVersion) {
|
|
3315
3276
|
if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
|
|
@@ -3317,7 +3278,14 @@ class SearchClient$1 {
|
|
|
3317
3278
|
}
|
|
3318
3279
|
apiVersion = options.apiVersion;
|
|
3319
3280
|
}
|
|
3320
|
-
this.client = new SearchClient(this.endpoint, this.indexName, apiVersion,
|
|
3281
|
+
this.client = new SearchClient(this.endpoint, this.indexName, apiVersion, internalClientPipelineOptions);
|
|
3282
|
+
if (coreAuth.isTokenCredential(credential)) {
|
|
3283
|
+
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
3284
|
+
}
|
|
3285
|
+
else {
|
|
3286
|
+
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
3287
|
+
}
|
|
3288
|
+
this.client.pipeline.addPolicy(createOdataMetadataPolicy("none"));
|
|
3321
3289
|
}
|
|
3322
3290
|
/**
|
|
3323
3291
|
* Retrieves the number of documents in the index.
|
|
@@ -3326,8 +3294,11 @@ class SearchClient$1 {
|
|
|
3326
3294
|
async getDocumentsCount(options = {}) {
|
|
3327
3295
|
const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
|
|
3328
3296
|
try {
|
|
3329
|
-
|
|
3330
|
-
|
|
3297
|
+
let documentsCount = 0;
|
|
3298
|
+
await this.client.documents.count(Object.assign(Object.assign({}, updatedOptions), { onResponse: (response) => {
|
|
3299
|
+
documentsCount = Number(response.bodyAsText);
|
|
3300
|
+
} }));
|
|
3301
|
+
return documentsCount;
|
|
3331
3302
|
}
|
|
3332
3303
|
catch (e) {
|
|
3333
3304
|
span.setStatus({
|
|
@@ -3359,7 +3330,7 @@ class SearchClient$1 {
|
|
|
3359
3330
|
}
|
|
3360
3331
|
const { span, updatedOptions } = createSpan("SearchClient-autocomplete", operationOptions);
|
|
3361
3332
|
try {
|
|
3362
|
-
const result = await this.client.documents.autocompletePost(fullOptions,
|
|
3333
|
+
const result = await this.client.documents.autocompletePost(fullOptions, updatedOptions);
|
|
3363
3334
|
return result;
|
|
3364
3335
|
}
|
|
3365
3336
|
catch (e) {
|
|
@@ -3379,7 +3350,7 @@ class SearchClient$1 {
|
|
|
3379
3350
|
const fullOptions = Object.assign(Object.assign({ searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions), nextPageParameters);
|
|
3380
3351
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", operationOptions);
|
|
3381
3352
|
try {
|
|
3382
|
-
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }),
|
|
3353
|
+
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }), updatedOptions);
|
|
3383
3354
|
const { results, count, coverage, facets, answers, nextLink } = result;
|
|
3384
3355
|
const modifiedResults = generatedSearchResultToPublicSearchResult(results);
|
|
3385
3356
|
const converted = {
|
|
@@ -3503,7 +3474,7 @@ class SearchClient$1 {
|
|
|
3503
3474
|
}
|
|
3504
3475
|
const { span, updatedOptions } = createSpan("SearchClient-suggest", operationOptions);
|
|
3505
3476
|
try {
|
|
3506
|
-
const result = await this.client.documents.suggestPost(fullOptions,
|
|
3477
|
+
const result = await this.client.documents.suggestPost(fullOptions, updatedOptions);
|
|
3507
3478
|
const modifiedResult = generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(result);
|
|
3508
3479
|
return deserialize(modifiedResult);
|
|
3509
3480
|
}
|
|
@@ -3526,8 +3497,8 @@ class SearchClient$1 {
|
|
|
3526
3497
|
async getDocument(key, options = {}) {
|
|
3527
3498
|
const { span, updatedOptions } = createSpan("SearchClient-getDocument", options);
|
|
3528
3499
|
try {
|
|
3529
|
-
const result = await this.client.documents.get(key,
|
|
3530
|
-
return deserialize(result
|
|
3500
|
+
const result = await this.client.documents.get(key, updatedOptions);
|
|
3501
|
+
return deserialize(result);
|
|
3531
3502
|
}
|
|
3532
3503
|
catch (e) {
|
|
3533
3504
|
span.setStatus({
|
|
@@ -3555,8 +3526,11 @@ class SearchClient$1 {
|
|
|
3555
3526
|
batch, options = {}) {
|
|
3556
3527
|
const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options);
|
|
3557
3528
|
try {
|
|
3558
|
-
|
|
3559
|
-
|
|
3529
|
+
let status = 0;
|
|
3530
|
+
const result = await this.client.documents.index({ actions: serialize(batch.actions) }, Object.assign(Object.assign({}, updatedOptions), { onResponse: (response) => {
|
|
3531
|
+
status = response.status;
|
|
3532
|
+
} }));
|
|
3533
|
+
if (options.throwOnAnyFailure && status === 207) {
|
|
3560
3534
|
throw result;
|
|
3561
3535
|
}
|
|
3562
3536
|
return result;
|
|
@@ -3997,7 +3971,7 @@ class SearchIndexingBufferedSender {
|
|
|
3997
3971
|
// Allow the final value to have some "jitter" (within 50% of the delay size) so
|
|
3998
3972
|
// that retries across multiple clients don't occur simultaneously.
|
|
3999
3973
|
const delayWithJitter = clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);
|
|
4000
|
-
await
|
|
3974
|
+
await delay(delayWithJitter);
|
|
4001
3975
|
await this.submitDocuments(actionsToSend, options, retryAttempt + 1);
|
|
4002
3976
|
}
|
|
4003
3977
|
else {
|
|
@@ -4311,6 +4285,36 @@ const ListDataSourcesResult = {
|
|
|
4311
4285
|
}
|
|
4312
4286
|
}
|
|
4313
4287
|
};
|
|
4288
|
+
const DocumentKeysOrIds = {
|
|
4289
|
+
type: {
|
|
4290
|
+
name: "Composite",
|
|
4291
|
+
className: "DocumentKeysOrIds",
|
|
4292
|
+
modelProperties: {
|
|
4293
|
+
documentKeys: {
|
|
4294
|
+
serializedName: "documentKeys",
|
|
4295
|
+
type: {
|
|
4296
|
+
name: "Sequence",
|
|
4297
|
+
element: {
|
|
4298
|
+
type: {
|
|
4299
|
+
name: "String"
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
},
|
|
4304
|
+
datasourceDocumentIds: {
|
|
4305
|
+
serializedName: "datasourceDocumentIds",
|
|
4306
|
+
type: {
|
|
4307
|
+
name: "Sequence",
|
|
4308
|
+
element: {
|
|
4309
|
+
type: {
|
|
4310
|
+
name: "String"
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
};
|
|
4314
4318
|
const SearchIndexer = {
|
|
4315
4319
|
type: {
|
|
4316
4320
|
name: "Composite",
|
|
@@ -4388,6 +4392,7 @@ const SearchIndexer = {
|
|
|
4388
4392
|
}
|
|
4389
4393
|
},
|
|
4390
4394
|
isDisabled: {
|
|
4395
|
+
defaultValue: false,
|
|
4391
4396
|
serializedName: "disabled",
|
|
4392
4397
|
nullable: true,
|
|
4393
4398
|
type: {
|
|
@@ -4451,6 +4456,7 @@ const IndexingParameters = {
|
|
|
4451
4456
|
}
|
|
4452
4457
|
},
|
|
4453
4458
|
maxFailedItems: {
|
|
4459
|
+
defaultValue: 0,
|
|
4454
4460
|
serializedName: "maxFailedItems",
|
|
4455
4461
|
nullable: true,
|
|
4456
4462
|
type: {
|
|
@@ -4458,6 +4464,7 @@ const IndexingParameters = {
|
|
|
4458
4464
|
}
|
|
4459
4465
|
},
|
|
4460
4466
|
maxFailedItemsPerBatch: {
|
|
4467
|
+
defaultValue: 0,
|
|
4461
4468
|
serializedName: "maxFailedItemsPerBatch",
|
|
4462
4469
|
nullable: true,
|
|
4463
4470
|
type: {
|
|
@@ -4488,30 +4495,35 @@ const IndexingParametersConfiguration = {
|
|
|
4488
4495
|
}
|
|
4489
4496
|
},
|
|
4490
4497
|
excludedFileNameExtensions: {
|
|
4498
|
+
defaultValue: "",
|
|
4491
4499
|
serializedName: "excludedFileNameExtensions",
|
|
4492
4500
|
type: {
|
|
4493
4501
|
name: "String"
|
|
4494
4502
|
}
|
|
4495
4503
|
},
|
|
4496
4504
|
indexedFileNameExtensions: {
|
|
4505
|
+
defaultValue: "",
|
|
4497
4506
|
serializedName: "indexedFileNameExtensions",
|
|
4498
4507
|
type: {
|
|
4499
4508
|
name: "String"
|
|
4500
4509
|
}
|
|
4501
4510
|
},
|
|
4502
4511
|
failOnUnsupportedContentType: {
|
|
4512
|
+
defaultValue: false,
|
|
4503
4513
|
serializedName: "failOnUnsupportedContentType",
|
|
4504
4514
|
type: {
|
|
4505
4515
|
name: "Boolean"
|
|
4506
4516
|
}
|
|
4507
4517
|
},
|
|
4508
4518
|
failOnUnprocessableDocument: {
|
|
4519
|
+
defaultValue: false,
|
|
4509
4520
|
serializedName: "failOnUnprocessableDocument",
|
|
4510
4521
|
type: {
|
|
4511
4522
|
name: "Boolean"
|
|
4512
4523
|
}
|
|
4513
4524
|
},
|
|
4514
4525
|
indexStorageMetadataOnlyForOversizedDocuments: {
|
|
4526
|
+
defaultValue: false,
|
|
4515
4527
|
serializedName: "indexStorageMetadataOnlyForOversizedDocuments",
|
|
4516
4528
|
type: {
|
|
4517
4529
|
name: "Boolean"
|
|
@@ -4557,6 +4569,7 @@ const IndexingParametersConfiguration = {
|
|
|
4557
4569
|
}
|
|
4558
4570
|
},
|
|
4559
4571
|
allowSkillsetToReadFileData: {
|
|
4572
|
+
defaultValue: false,
|
|
4560
4573
|
serializedName: "allowSkillsetToReadFileData",
|
|
4561
4574
|
type: {
|
|
4562
4575
|
name: "Boolean"
|
|
@@ -4628,9 +4641,12 @@ const FieldMappingFunction = {
|
|
|
4628
4641
|
},
|
|
4629
4642
|
parameters: {
|
|
4630
4643
|
serializedName: "parameters",
|
|
4644
|
+
nullable: true,
|
|
4631
4645
|
type: {
|
|
4632
4646
|
name: "Dictionary",
|
|
4633
|
-
value: {
|
|
4647
|
+
value: {
|
|
4648
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
4649
|
+
}
|
|
4634
4650
|
}
|
|
4635
4651
|
}
|
|
4636
4652
|
}
|
|
@@ -4738,6 +4754,20 @@ const IndexerExecutionResult = {
|
|
|
4738
4754
|
allowedValues: ["transientFailure", "success", "inProgress", "reset"]
|
|
4739
4755
|
}
|
|
4740
4756
|
},
|
|
4757
|
+
statusDetail: {
|
|
4758
|
+
serializedName: "statusDetail",
|
|
4759
|
+
readOnly: true,
|
|
4760
|
+
type: {
|
|
4761
|
+
name: "String"
|
|
4762
|
+
}
|
|
4763
|
+
},
|
|
4764
|
+
currentState: {
|
|
4765
|
+
serializedName: "currentState",
|
|
4766
|
+
type: {
|
|
4767
|
+
name: "Composite",
|
|
4768
|
+
className: "IndexerState"
|
|
4769
|
+
}
|
|
4770
|
+
},
|
|
4741
4771
|
errorMessage: {
|
|
4742
4772
|
serializedName: "errorMessage",
|
|
4743
4773
|
readOnly: true,
|
|
@@ -4821,6 +4851,73 @@ const IndexerExecutionResult = {
|
|
|
4821
4851
|
}
|
|
4822
4852
|
}
|
|
4823
4853
|
};
|
|
4854
|
+
const IndexerState = {
|
|
4855
|
+
type: {
|
|
4856
|
+
name: "Composite",
|
|
4857
|
+
className: "IndexerState",
|
|
4858
|
+
modelProperties: {
|
|
4859
|
+
mode: {
|
|
4860
|
+
serializedName: "mode",
|
|
4861
|
+
readOnly: true,
|
|
4862
|
+
type: {
|
|
4863
|
+
name: "String"
|
|
4864
|
+
}
|
|
4865
|
+
},
|
|
4866
|
+
allDocumentsInitialChangeTrackingState: {
|
|
4867
|
+
serializedName: "allDocsInitialChangeTrackingState",
|
|
4868
|
+
readOnly: true,
|
|
4869
|
+
type: {
|
|
4870
|
+
name: "String"
|
|
4871
|
+
}
|
|
4872
|
+
},
|
|
4873
|
+
allDocumentsFinalChangeTrackingState: {
|
|
4874
|
+
serializedName: "allDocsFinalChangeTrackingState",
|
|
4875
|
+
readOnly: true,
|
|
4876
|
+
type: {
|
|
4877
|
+
name: "String"
|
|
4878
|
+
}
|
|
4879
|
+
},
|
|
4880
|
+
resetDocumentsInitialChangeTrackingState: {
|
|
4881
|
+
serializedName: "resetDocsInitialChangeTrackingState",
|
|
4882
|
+
readOnly: true,
|
|
4883
|
+
type: {
|
|
4884
|
+
name: "String"
|
|
4885
|
+
}
|
|
4886
|
+
},
|
|
4887
|
+
resetDocumentsFinalChangeTrackingState: {
|
|
4888
|
+
serializedName: "resetDocsFinalChangeTrackingState",
|
|
4889
|
+
readOnly: true,
|
|
4890
|
+
type: {
|
|
4891
|
+
name: "String"
|
|
4892
|
+
}
|
|
4893
|
+
},
|
|
4894
|
+
resetDocumentKeys: {
|
|
4895
|
+
serializedName: "resetDocumentKeys",
|
|
4896
|
+
readOnly: true,
|
|
4897
|
+
type: {
|
|
4898
|
+
name: "Sequence",
|
|
4899
|
+
element: {
|
|
4900
|
+
type: {
|
|
4901
|
+
name: "String"
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4905
|
+
},
|
|
4906
|
+
resetDatasourceDocumentIds: {
|
|
4907
|
+
serializedName: "resetDatasourceDocumentIds",
|
|
4908
|
+
readOnly: true,
|
|
4909
|
+
type: {
|
|
4910
|
+
name: "Sequence",
|
|
4911
|
+
element: {
|
|
4912
|
+
type: {
|
|
4913
|
+
name: "String"
|
|
4914
|
+
}
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4920
|
+
};
|
|
4824
4921
|
const SearchIndexerError = {
|
|
4825
4922
|
type: {
|
|
4826
4923
|
name: "Composite",
|
|
@@ -5295,6 +5392,25 @@ const ListSkillsetsResult = {
|
|
|
5295
5392
|
}
|
|
5296
5393
|
}
|
|
5297
5394
|
};
|
|
5395
|
+
const SkillNames = {
|
|
5396
|
+
type: {
|
|
5397
|
+
name: "Composite",
|
|
5398
|
+
className: "SkillNames",
|
|
5399
|
+
modelProperties: {
|
|
5400
|
+
skillNames: {
|
|
5401
|
+
serializedName: "skillNames",
|
|
5402
|
+
type: {
|
|
5403
|
+
name: "Sequence",
|
|
5404
|
+
element: {
|
|
5405
|
+
type: {
|
|
5406
|
+
name: "String"
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
}
|
|
5413
|
+
};
|
|
5298
5414
|
const SynonymMap = {
|
|
5299
5415
|
type: {
|
|
5300
5416
|
name: "Composite",
|
|
@@ -5496,6 +5612,13 @@ const SearchIndex = {
|
|
|
5496
5612
|
className: "Similarity"
|
|
5497
5613
|
}
|
|
5498
5614
|
},
|
|
5615
|
+
semanticSettings: {
|
|
5616
|
+
serializedName: "semantic",
|
|
5617
|
+
type: {
|
|
5618
|
+
name: "Composite",
|
|
5619
|
+
className: "SemanticSettings"
|
|
5620
|
+
}
|
|
5621
|
+
},
|
|
5499
5622
|
etag: {
|
|
5500
5623
|
serializedName: "@odata\\.etag",
|
|
5501
5624
|
type: {
|
|
@@ -5935,6 +6058,101 @@ const Similarity = {
|
|
|
5935
6058
|
}
|
|
5936
6059
|
}
|
|
5937
6060
|
};
|
|
6061
|
+
const SemanticSettings = {
|
|
6062
|
+
type: {
|
|
6063
|
+
name: "Composite",
|
|
6064
|
+
className: "SemanticSettings",
|
|
6065
|
+
modelProperties: {
|
|
6066
|
+
configurations: {
|
|
6067
|
+
serializedName: "configurations",
|
|
6068
|
+
type: {
|
|
6069
|
+
name: "Sequence",
|
|
6070
|
+
element: {
|
|
6071
|
+
type: {
|
|
6072
|
+
name: "Composite",
|
|
6073
|
+
className: "SemanticConfiguration"
|
|
6074
|
+
}
|
|
6075
|
+
}
|
|
6076
|
+
}
|
|
6077
|
+
}
|
|
6078
|
+
}
|
|
6079
|
+
}
|
|
6080
|
+
};
|
|
6081
|
+
const SemanticConfiguration = {
|
|
6082
|
+
type: {
|
|
6083
|
+
name: "Composite",
|
|
6084
|
+
className: "SemanticConfiguration",
|
|
6085
|
+
modelProperties: {
|
|
6086
|
+
name: {
|
|
6087
|
+
serializedName: "name",
|
|
6088
|
+
required: true,
|
|
6089
|
+
type: {
|
|
6090
|
+
name: "String"
|
|
6091
|
+
}
|
|
6092
|
+
},
|
|
6093
|
+
prioritizedFields: {
|
|
6094
|
+
serializedName: "prioritizedFields",
|
|
6095
|
+
type: {
|
|
6096
|
+
name: "Composite",
|
|
6097
|
+
className: "PrioritizedFields"
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
};
|
|
6103
|
+
const PrioritizedFields = {
|
|
6104
|
+
type: {
|
|
6105
|
+
name: "Composite",
|
|
6106
|
+
className: "PrioritizedFields",
|
|
6107
|
+
modelProperties: {
|
|
6108
|
+
titleField: {
|
|
6109
|
+
serializedName: "titleField",
|
|
6110
|
+
type: {
|
|
6111
|
+
name: "Composite",
|
|
6112
|
+
className: "SemanticField"
|
|
6113
|
+
}
|
|
6114
|
+
},
|
|
6115
|
+
prioritizedContentFields: {
|
|
6116
|
+
serializedName: "prioritizedContentFields",
|
|
6117
|
+
type: {
|
|
6118
|
+
name: "Sequence",
|
|
6119
|
+
element: {
|
|
6120
|
+
type: {
|
|
6121
|
+
name: "Composite",
|
|
6122
|
+
className: "SemanticField"
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6125
|
+
}
|
|
6126
|
+
},
|
|
6127
|
+
prioritizedKeywordsFields: {
|
|
6128
|
+
serializedName: "prioritizedKeywordsFields",
|
|
6129
|
+
type: {
|
|
6130
|
+
name: "Sequence",
|
|
6131
|
+
element: {
|
|
6132
|
+
type: {
|
|
6133
|
+
name: "Composite",
|
|
6134
|
+
className: "SemanticField"
|
|
6135
|
+
}
|
|
6136
|
+
}
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
};
|
|
6142
|
+
const SemanticField = {
|
|
6143
|
+
type: {
|
|
6144
|
+
name: "Composite",
|
|
6145
|
+
className: "SemanticField",
|
|
6146
|
+
modelProperties: {
|
|
6147
|
+
name: {
|
|
6148
|
+
serializedName: "fieldName",
|
|
6149
|
+
type: {
|
|
6150
|
+
name: "String"
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
}
|
|
6154
|
+
}
|
|
6155
|
+
};
|
|
5938
6156
|
const ListIndexesResult = {
|
|
5939
6157
|
type: {
|
|
5940
6158
|
name: "Composite",
|
|
@@ -6570,6 +6788,7 @@ const OcrSkill = {
|
|
|
6570
6788
|
name: "String"
|
|
6571
6789
|
}
|
|
6572
6790
|
}, shouldDetectOrientation: {
|
|
6791
|
+
defaultValue: false,
|
|
6573
6792
|
serializedName: "detectOrientation",
|
|
6574
6793
|
type: {
|
|
6575
6794
|
name: "Boolean"
|
|
@@ -6737,6 +6956,7 @@ const SentimentSkillV3 = {
|
|
|
6737
6956
|
name: "String"
|
|
6738
6957
|
}
|
|
6739
6958
|
}, includeOpinionMining: {
|
|
6959
|
+
defaultValue: false,
|
|
6740
6960
|
serializedName: "includeOpinionMining",
|
|
6741
6961
|
type: {
|
|
6742
6962
|
name: "Boolean"
|
|
@@ -7015,7 +7235,9 @@ const DocumentExtractionSkill = {
|
|
|
7015
7235
|
nullable: true,
|
|
7016
7236
|
type: {
|
|
7017
7237
|
name: "Dictionary",
|
|
7018
|
-
value: {
|
|
7238
|
+
value: {
|
|
7239
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
7240
|
+
}
|
|
7019
7241
|
}
|
|
7020
7242
|
} })
|
|
7021
7243
|
}
|
|
@@ -7418,6 +7640,7 @@ const MicrosoftLanguageTokenizer = {
|
|
|
7418
7640
|
name: "Number"
|
|
7419
7641
|
}
|
|
7420
7642
|
}, isSearchTokenizer: {
|
|
7643
|
+
defaultValue: false,
|
|
7421
7644
|
serializedName: "isSearchTokenizer",
|
|
7422
7645
|
type: {
|
|
7423
7646
|
name: "Boolean"
|
|
@@ -7491,6 +7714,7 @@ const MicrosoftLanguageStemmingTokenizer = {
|
|
|
7491
7714
|
name: "Number"
|
|
7492
7715
|
}
|
|
7493
7716
|
}, isSearchTokenizer: {
|
|
7717
|
+
defaultValue: false,
|
|
7494
7718
|
serializedName: "isSearchTokenizer",
|
|
7495
7719
|
type: {
|
|
7496
7720
|
name: "Boolean"
|
|
@@ -7624,11 +7848,13 @@ const PathHierarchyTokenizerV2 = {
|
|
|
7624
7848
|
name: "Number"
|
|
7625
7849
|
}
|
|
7626
7850
|
}, reverseTokenOrder: {
|
|
7851
|
+
defaultValue: false,
|
|
7627
7852
|
serializedName: "reverse",
|
|
7628
7853
|
type: {
|
|
7629
7854
|
name: "Boolean"
|
|
7630
7855
|
}
|
|
7631
7856
|
}, numberOfTokensToSkip: {
|
|
7857
|
+
defaultValue: 0,
|
|
7632
7858
|
serializedName: "skip",
|
|
7633
7859
|
type: {
|
|
7634
7860
|
name: "Number"
|
|
@@ -7725,6 +7951,7 @@ const AsciiFoldingTokenFilter = {
|
|
|
7725
7951
|
uberParent: "TokenFilter",
|
|
7726
7952
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
7727
7953
|
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { preserveOriginal: {
|
|
7954
|
+
defaultValue: false,
|
|
7728
7955
|
serializedName: "preserveOriginal",
|
|
7729
7956
|
type: {
|
|
7730
7957
|
name: "Boolean"
|
|
@@ -7751,6 +7978,7 @@ const CjkBigramTokenFilter = {
|
|
|
7751
7978
|
}
|
|
7752
7979
|
}
|
|
7753
7980
|
}, outputUnigrams: {
|
|
7981
|
+
defaultValue: false,
|
|
7754
7982
|
serializedName: "outputUnigrams",
|
|
7755
7983
|
type: {
|
|
7756
7984
|
name: "Boolean"
|
|
@@ -7777,11 +8005,13 @@ const CommonGramTokenFilter = {
|
|
|
7777
8005
|
}
|
|
7778
8006
|
}
|
|
7779
8007
|
}, ignoreCase: {
|
|
8008
|
+
defaultValue: false,
|
|
7780
8009
|
serializedName: "ignoreCase",
|
|
7781
8010
|
type: {
|
|
7782
8011
|
name: "Boolean"
|
|
7783
8012
|
}
|
|
7784
8013
|
}, useQueryMode: {
|
|
8014
|
+
defaultValue: false,
|
|
7785
8015
|
serializedName: "queryMode",
|
|
7786
8016
|
type: {
|
|
7787
8017
|
name: "Boolean"
|
|
@@ -7835,6 +8065,7 @@ const DictionaryDecompounderTokenFilter = {
|
|
|
7835
8065
|
name: "Number"
|
|
7836
8066
|
}
|
|
7837
8067
|
}, onlyLongestMatch: {
|
|
8068
|
+
defaultValue: false,
|
|
7838
8069
|
serializedName: "onlyLongestMatch",
|
|
7839
8070
|
type: {
|
|
7840
8071
|
name: "Boolean"
|
|
@@ -7943,6 +8174,7 @@ const KeepTokenFilter = {
|
|
|
7943
8174
|
}
|
|
7944
8175
|
}
|
|
7945
8176
|
}, lowerCaseKeepWords: {
|
|
8177
|
+
defaultValue: false,
|
|
7946
8178
|
serializedName: "keepWordsCase",
|
|
7947
8179
|
type: {
|
|
7948
8180
|
name: "Boolean"
|
|
@@ -7969,6 +8201,7 @@ const KeywordMarkerTokenFilter = {
|
|
|
7969
8201
|
}
|
|
7970
8202
|
}
|
|
7971
8203
|
}, ignoreCase: {
|
|
8204
|
+
defaultValue: false,
|
|
7972
8205
|
serializedName: "ignoreCase",
|
|
7973
8206
|
type: {
|
|
7974
8207
|
name: "Boolean"
|
|
@@ -7984,6 +8217,7 @@ const LengthTokenFilter = {
|
|
|
7984
8217
|
uberParent: "TokenFilter",
|
|
7985
8218
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
7986
8219
|
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minLength: {
|
|
8220
|
+
defaultValue: 0,
|
|
7987
8221
|
constraints: {
|
|
7988
8222
|
InclusiveMaximum: 300
|
|
7989
8223
|
},
|
|
@@ -8017,6 +8251,7 @@ const LimitTokenFilter = {
|
|
|
8017
8251
|
name: "Number"
|
|
8018
8252
|
}
|
|
8019
8253
|
}, consumeAllTokens: {
|
|
8254
|
+
defaultValue: false,
|
|
8020
8255
|
serializedName: "consumeAllTokens",
|
|
8021
8256
|
type: {
|
|
8022
8257
|
name: "Boolean"
|
|
@@ -8189,6 +8424,7 @@ const ShingleTokenFilter = {
|
|
|
8189
8424
|
name: "Boolean"
|
|
8190
8425
|
}
|
|
8191
8426
|
}, outputUnigramsIfNoShingles: {
|
|
8427
|
+
defaultValue: false,
|
|
8192
8428
|
serializedName: "outputUnigramsIfNoShingles",
|
|
8193
8429
|
type: {
|
|
8194
8430
|
name: "Boolean"
|
|
@@ -8397,6 +8633,7 @@ const StopwordsTokenFilter = {
|
|
|
8397
8633
|
]
|
|
8398
8634
|
}
|
|
8399
8635
|
}, ignoreCase: {
|
|
8636
|
+
defaultValue: false,
|
|
8400
8637
|
serializedName: "ignoreCase",
|
|
8401
8638
|
type: {
|
|
8402
8639
|
name: "Boolean"
|
|
@@ -8429,6 +8666,7 @@ const SynonymTokenFilter = {
|
|
|
8429
8666
|
}
|
|
8430
8667
|
}
|
|
8431
8668
|
}, ignoreCase: {
|
|
8669
|
+
defaultValue: false,
|
|
8432
8670
|
serializedName: "ignoreCase",
|
|
8433
8671
|
type: {
|
|
8434
8672
|
name: "Boolean"
|
|
@@ -8469,6 +8707,7 @@ const UniqueTokenFilter = {
|
|
|
8469
8707
|
uberParent: "TokenFilter",
|
|
8470
8708
|
polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
|
|
8471
8709
|
modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { onlyOnSamePosition: {
|
|
8710
|
+
defaultValue: false,
|
|
8472
8711
|
serializedName: "onlyOnSamePosition",
|
|
8473
8712
|
type: {
|
|
8474
8713
|
name: "Boolean"
|
|
@@ -8496,16 +8735,19 @@ const WordDelimiterTokenFilter = {
|
|
|
8496
8735
|
name: "Boolean"
|
|
8497
8736
|
}
|
|
8498
8737
|
}, catenateWords: {
|
|
8738
|
+
defaultValue: false,
|
|
8499
8739
|
serializedName: "catenateWords",
|
|
8500
8740
|
type: {
|
|
8501
8741
|
name: "Boolean"
|
|
8502
8742
|
}
|
|
8503
8743
|
}, catenateNumbers: {
|
|
8744
|
+
defaultValue: false,
|
|
8504
8745
|
serializedName: "catenateNumbers",
|
|
8505
8746
|
type: {
|
|
8506
8747
|
name: "Boolean"
|
|
8507
8748
|
}
|
|
8508
8749
|
}, catenateAll: {
|
|
8750
|
+
defaultValue: false,
|
|
8509
8751
|
serializedName: "catenateAll",
|
|
8510
8752
|
type: {
|
|
8511
8753
|
name: "Boolean"
|
|
@@ -8517,6 +8759,7 @@ const WordDelimiterTokenFilter = {
|
|
|
8517
8759
|
name: "Boolean"
|
|
8518
8760
|
}
|
|
8519
8761
|
}, preserveOriginal: {
|
|
8762
|
+
defaultValue: false,
|
|
8520
8763
|
serializedName: "preserveOriginal",
|
|
8521
8764
|
type: {
|
|
8522
8765
|
name: "Boolean"
|
|
@@ -8767,6 +9010,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8767
9010
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
8768
9011
|
SearchError: SearchError$1,
|
|
8769
9012
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
9013
|
+
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
8770
9014
|
SearchIndexer: SearchIndexer,
|
|
8771
9015
|
IndexingSchedule: IndexingSchedule,
|
|
8772
9016
|
IndexingParameters: IndexingParameters,
|
|
@@ -8777,6 +9021,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8777
9021
|
ListIndexersResult: ListIndexersResult,
|
|
8778
9022
|
SearchIndexerStatus: SearchIndexerStatus,
|
|
8779
9023
|
IndexerExecutionResult: IndexerExecutionResult,
|
|
9024
|
+
IndexerState: IndexerState,
|
|
8780
9025
|
SearchIndexerError: SearchIndexerError,
|
|
8781
9026
|
SearchIndexerWarning: SearchIndexerWarning,
|
|
8782
9027
|
SearchIndexerLimits: SearchIndexerLimits,
|
|
@@ -8789,6 +9034,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8789
9034
|
SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
|
|
8790
9035
|
SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
|
|
8791
9036
|
ListSkillsetsResult: ListSkillsetsResult,
|
|
9037
|
+
SkillNames: SkillNames,
|
|
8792
9038
|
SynonymMap: SynonymMap,
|
|
8793
9039
|
ListSynonymMapsResult: ListSynonymMapsResult,
|
|
8794
9040
|
SearchIndex: SearchIndex,
|
|
@@ -8804,6 +9050,10 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8804
9050
|
CharFilter: CharFilter,
|
|
8805
9051
|
LexicalNormalizer: LexicalNormalizer,
|
|
8806
9052
|
Similarity: Similarity,
|
|
9053
|
+
SemanticSettings: SemanticSettings,
|
|
9054
|
+
SemanticConfiguration: SemanticConfiguration,
|
|
9055
|
+
PrioritizedFields: PrioritizedFields,
|
|
9056
|
+
SemanticField: SemanticField,
|
|
8807
9057
|
ListIndexesResult: ListIndexesResult,
|
|
8808
9058
|
GetIndexStatisticsResult: GetIndexStatisticsResult,
|
|
8809
9059
|
AnalyzeRequest: AnalyzeRequest,
|
|
@@ -9003,8 +9253,8 @@ const apiVersion$1 = {
|
|
|
9003
9253
|
}
|
|
9004
9254
|
}
|
|
9005
9255
|
};
|
|
9006
|
-
const
|
|
9007
|
-
parameterPath: ["options", "
|
|
9256
|
+
const skipIndexerResetRequirementForCache = {
|
|
9257
|
+
parameterPath: ["options", "skipIndexerResetRequirementForCache"],
|
|
9008
9258
|
mapper: {
|
|
9009
9259
|
serializedName: "ignoreResetRequirements",
|
|
9010
9260
|
type: {
|
|
@@ -9031,6 +9281,20 @@ const indexerName = {
|
|
|
9031
9281
|
}
|
|
9032
9282
|
}
|
|
9033
9283
|
};
|
|
9284
|
+
const keysOrIds = {
|
|
9285
|
+
parameterPath: ["options", "keysOrIds"],
|
|
9286
|
+
mapper: DocumentKeysOrIds
|
|
9287
|
+
};
|
|
9288
|
+
const overwrite = {
|
|
9289
|
+
parameterPath: ["options", "overwrite"],
|
|
9290
|
+
mapper: {
|
|
9291
|
+
defaultValue: false,
|
|
9292
|
+
serializedName: "overwrite",
|
|
9293
|
+
type: {
|
|
9294
|
+
name: "Boolean"
|
|
9295
|
+
}
|
|
9296
|
+
}
|
|
9297
|
+
};
|
|
9034
9298
|
const indexer = {
|
|
9035
9299
|
parameterPath: "indexer",
|
|
9036
9300
|
mapper: SearchIndexer
|
|
@@ -9058,6 +9322,10 @@ const skillsetName = {
|
|
|
9058
9322
|
}
|
|
9059
9323
|
}
|
|
9060
9324
|
};
|
|
9325
|
+
const skillNames = {
|
|
9326
|
+
parameterPath: "skillNames",
|
|
9327
|
+
mapper: SkillNames
|
|
9328
|
+
};
|
|
9061
9329
|
const synonymMap = {
|
|
9062
9330
|
parameterPath: "synonymMap",
|
|
9063
9331
|
mapper: SynonymMap
|
|
@@ -9107,7 +9375,7 @@ const request = {
|
|
|
9107
9375
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9108
9376
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9109
9377
|
*/
|
|
9110
|
-
/** Class
|
|
9378
|
+
/** Class containing DataSources operations. */
|
|
9111
9379
|
class DataSourcesImpl {
|
|
9112
9380
|
/**
|
|
9113
9381
|
* Initialize a new instance of the class DataSources class.
|
|
@@ -9123,12 +9391,7 @@ class DataSourcesImpl {
|
|
|
9123
9391
|
* @param options The options parameters.
|
|
9124
9392
|
*/
|
|
9125
9393
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
9126
|
-
|
|
9127
|
-
dataSourceName,
|
|
9128
|
-
dataSource,
|
|
9129
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9130
|
-
};
|
|
9131
|
-
return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec);
|
|
9394
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
|
|
9132
9395
|
}
|
|
9133
9396
|
/**
|
|
9134
9397
|
* Deletes a datasource.
|
|
@@ -9136,11 +9399,7 @@ class DataSourcesImpl {
|
|
|
9136
9399
|
* @param options The options parameters.
|
|
9137
9400
|
*/
|
|
9138
9401
|
delete(dataSourceName, options) {
|
|
9139
|
-
|
|
9140
|
-
dataSourceName,
|
|
9141
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9142
|
-
};
|
|
9143
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
|
9402
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
|
|
9144
9403
|
}
|
|
9145
9404
|
/**
|
|
9146
9405
|
* Retrieves a datasource definition.
|
|
@@ -9148,21 +9407,14 @@ class DataSourcesImpl {
|
|
|
9148
9407
|
* @param options The options parameters.
|
|
9149
9408
|
*/
|
|
9150
9409
|
get(dataSourceName, options) {
|
|
9151
|
-
|
|
9152
|
-
dataSourceName,
|
|
9153
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9154
|
-
};
|
|
9155
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec$1);
|
|
9410
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$1);
|
|
9156
9411
|
}
|
|
9157
9412
|
/**
|
|
9158
9413
|
* Lists all datasources available for a search service.
|
|
9159
9414
|
* @param options The options parameters.
|
|
9160
9415
|
*/
|
|
9161
9416
|
list(options) {
|
|
9162
|
-
|
|
9163
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9164
|
-
};
|
|
9165
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec);
|
|
9417
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
9166
9418
|
}
|
|
9167
9419
|
/**
|
|
9168
9420
|
* Creates a new datasource.
|
|
@@ -9170,15 +9422,11 @@ class DataSourcesImpl {
|
|
|
9170
9422
|
* @param options The options parameters.
|
|
9171
9423
|
*/
|
|
9172
9424
|
create(dataSource, options) {
|
|
9173
|
-
|
|
9174
|
-
dataSource,
|
|
9175
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9176
|
-
};
|
|
9177
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
|
9425
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
|
|
9178
9426
|
}
|
|
9179
9427
|
}
|
|
9180
9428
|
// Operation Specifications
|
|
9181
|
-
const serializer$1 =
|
|
9429
|
+
const serializer$1 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
|
|
9182
9430
|
const createOrUpdateOperationSpec = {
|
|
9183
9431
|
path: "/datasources('{dataSourceName}')",
|
|
9184
9432
|
httpMethod: "PUT",
|
|
@@ -9194,7 +9442,10 @@ const createOrUpdateOperationSpec = {
|
|
|
9194
9442
|
}
|
|
9195
9443
|
},
|
|
9196
9444
|
requestBody: dataSource,
|
|
9197
|
-
queryParameters: [
|
|
9445
|
+
queryParameters: [
|
|
9446
|
+
apiVersion$1,
|
|
9447
|
+
skipIndexerResetRequirementForCache
|
|
9448
|
+
],
|
|
9198
9449
|
urlParameters: [endpoint$1, dataSourceName],
|
|
9199
9450
|
headerParameters: [
|
|
9200
9451
|
contentType$1,
|
|
@@ -9289,7 +9540,7 @@ const createOperationSpec = {
|
|
|
9289
9540
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9290
9541
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9291
9542
|
*/
|
|
9292
|
-
/** Class
|
|
9543
|
+
/** Class containing Indexers operations. */
|
|
9293
9544
|
class IndexersImpl {
|
|
9294
9545
|
/**
|
|
9295
9546
|
* Initialize a new instance of the class Indexers class.
|
|
@@ -9304,11 +9555,15 @@ class IndexersImpl {
|
|
|
9304
9555
|
* @param options The options parameters.
|
|
9305
9556
|
*/
|
|
9306
9557
|
reset(indexerName, options) {
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9558
|
+
return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
|
|
9559
|
+
}
|
|
9560
|
+
/**
|
|
9561
|
+
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
9562
|
+
* @param indexerName The name of the indexer to reset documents for.
|
|
9563
|
+
* @param options The options parameters.
|
|
9564
|
+
*/
|
|
9565
|
+
resetDocs(indexerName, options) {
|
|
9566
|
+
return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
|
|
9312
9567
|
}
|
|
9313
9568
|
/**
|
|
9314
9569
|
* Runs an indexer on-demand.
|
|
@@ -9316,11 +9571,7 @@ class IndexersImpl {
|
|
|
9316
9571
|
* @param options The options parameters.
|
|
9317
9572
|
*/
|
|
9318
9573
|
run(indexerName, options) {
|
|
9319
|
-
|
|
9320
|
-
indexerName,
|
|
9321
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9322
|
-
};
|
|
9323
|
-
return this.client.sendOperationRequest(operationArguments, runOperationSpec);
|
|
9574
|
+
return this.client.sendOperationRequest({ indexerName, options }, runOperationSpec);
|
|
9324
9575
|
}
|
|
9325
9576
|
/**
|
|
9326
9577
|
* Creates a new indexer or updates an indexer if it already exists.
|
|
@@ -9329,12 +9580,7 @@ class IndexersImpl {
|
|
|
9329
9580
|
* @param options The options parameters.
|
|
9330
9581
|
*/
|
|
9331
9582
|
createOrUpdate(indexerName, indexer, options) {
|
|
9332
|
-
|
|
9333
|
-
indexerName,
|
|
9334
|
-
indexer,
|
|
9335
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9336
|
-
};
|
|
9337
|
-
return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$1);
|
|
9583
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$1);
|
|
9338
9584
|
}
|
|
9339
9585
|
/**
|
|
9340
9586
|
* Deletes an indexer.
|
|
@@ -9342,11 +9588,7 @@ class IndexersImpl {
|
|
|
9342
9588
|
* @param options The options parameters.
|
|
9343
9589
|
*/
|
|
9344
9590
|
delete(indexerName, options) {
|
|
9345
|
-
|
|
9346
|
-
indexerName,
|
|
9347
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9348
|
-
};
|
|
9349
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
|
|
9591
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$1);
|
|
9350
9592
|
}
|
|
9351
9593
|
/**
|
|
9352
9594
|
* Retrieves an indexer definition.
|
|
@@ -9354,21 +9596,14 @@ class IndexersImpl {
|
|
|
9354
9596
|
* @param options The options parameters.
|
|
9355
9597
|
*/
|
|
9356
9598
|
get(indexerName, options) {
|
|
9357
|
-
|
|
9358
|
-
indexerName,
|
|
9359
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9360
|
-
};
|
|
9361
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec$2);
|
|
9599
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$2);
|
|
9362
9600
|
}
|
|
9363
9601
|
/**
|
|
9364
9602
|
* Lists all indexers available for a search service.
|
|
9365
9603
|
* @param options The options parameters.
|
|
9366
9604
|
*/
|
|
9367
9605
|
list(options) {
|
|
9368
|
-
|
|
9369
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9370
|
-
};
|
|
9371
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec$1);
|
|
9606
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
9372
9607
|
}
|
|
9373
9608
|
/**
|
|
9374
9609
|
* Creates a new indexer.
|
|
@@ -9376,11 +9611,7 @@ class IndexersImpl {
|
|
|
9376
9611
|
* @param options The options parameters.
|
|
9377
9612
|
*/
|
|
9378
9613
|
create(indexer, options) {
|
|
9379
|
-
|
|
9380
|
-
indexer,
|
|
9381
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9382
|
-
};
|
|
9383
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
|
|
9614
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$1);
|
|
9384
9615
|
}
|
|
9385
9616
|
/**
|
|
9386
9617
|
* Returns the current status and execution history of an indexer.
|
|
@@ -9388,15 +9619,11 @@ class IndexersImpl {
|
|
|
9388
9619
|
* @param options The options parameters.
|
|
9389
9620
|
*/
|
|
9390
9621
|
getStatus(indexerName, options) {
|
|
9391
|
-
|
|
9392
|
-
indexerName,
|
|
9393
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9394
|
-
};
|
|
9395
|
-
return this.client.sendOperationRequest(operationArguments, getStatusOperationSpec);
|
|
9622
|
+
return this.client.sendOperationRequest({ indexerName, options }, getStatusOperationSpec);
|
|
9396
9623
|
}
|
|
9397
9624
|
}
|
|
9398
9625
|
// Operation Specifications
|
|
9399
|
-
const serializer$2 =
|
|
9626
|
+
const serializer$2 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
|
|
9400
9627
|
const resetOperationSpec = {
|
|
9401
9628
|
path: "/indexers('{indexerName}')/search.reset",
|
|
9402
9629
|
httpMethod: "POST",
|
|
@@ -9411,6 +9638,26 @@ const resetOperationSpec = {
|
|
|
9411
9638
|
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
9412
9639
|
serializer: serializer$2
|
|
9413
9640
|
};
|
|
9641
|
+
const resetDocsOperationSpec = {
|
|
9642
|
+
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
9643
|
+
httpMethod: "POST",
|
|
9644
|
+
responses: {
|
|
9645
|
+
204: {},
|
|
9646
|
+
default: {
|
|
9647
|
+
bodyMapper: SearchError$1
|
|
9648
|
+
}
|
|
9649
|
+
},
|
|
9650
|
+
requestBody: keysOrIds,
|
|
9651
|
+
queryParameters: [apiVersion$1, overwrite],
|
|
9652
|
+
urlParameters: [endpoint$1, indexerName],
|
|
9653
|
+
headerParameters: [
|
|
9654
|
+
contentType$1,
|
|
9655
|
+
accept$1,
|
|
9656
|
+
xMsClientRequestId$1
|
|
9657
|
+
],
|
|
9658
|
+
mediaType: "json",
|
|
9659
|
+
serializer: serializer$2
|
|
9660
|
+
};
|
|
9414
9661
|
const runOperationSpec = {
|
|
9415
9662
|
path: "/indexers('{indexerName}')/search.run",
|
|
9416
9663
|
httpMethod: "POST",
|
|
@@ -9442,7 +9689,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
9442
9689
|
requestBody: indexer,
|
|
9443
9690
|
queryParameters: [
|
|
9444
9691
|
apiVersion$1,
|
|
9445
|
-
|
|
9692
|
+
skipIndexerResetRequirementForCache,
|
|
9446
9693
|
disableCacheReprocessingChangeDetection
|
|
9447
9694
|
],
|
|
9448
9695
|
urlParameters: [endpoint$1, indexerName],
|
|
@@ -9555,7 +9802,7 @@ const getStatusOperationSpec = {
|
|
|
9555
9802
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9556
9803
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9557
9804
|
*/
|
|
9558
|
-
/** Class
|
|
9805
|
+
/** Class containing Skillsets operations. */
|
|
9559
9806
|
class SkillsetsImpl {
|
|
9560
9807
|
/**
|
|
9561
9808
|
* Initialize a new instance of the class Skillsets class.
|
|
@@ -9571,12 +9818,7 @@ class SkillsetsImpl {
|
|
|
9571
9818
|
* @param options The options parameters.
|
|
9572
9819
|
*/
|
|
9573
9820
|
createOrUpdate(skillsetName, skillset, options) {
|
|
9574
|
-
|
|
9575
|
-
skillsetName,
|
|
9576
|
-
skillset,
|
|
9577
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9578
|
-
};
|
|
9579
|
-
return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$2);
|
|
9821
|
+
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
|
|
9580
9822
|
}
|
|
9581
9823
|
/**
|
|
9582
9824
|
* Deletes a skillset in a search service.
|
|
@@ -9584,11 +9826,7 @@ class SkillsetsImpl {
|
|
|
9584
9826
|
* @param options The options parameters.
|
|
9585
9827
|
*/
|
|
9586
9828
|
delete(skillsetName, options) {
|
|
9587
|
-
|
|
9588
|
-
skillsetName,
|
|
9589
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9590
|
-
};
|
|
9591
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
|
|
9829
|
+
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
|
|
9592
9830
|
}
|
|
9593
9831
|
/**
|
|
9594
9832
|
* Retrieves a skillset in a search service.
|
|
@@ -9596,21 +9834,14 @@ class SkillsetsImpl {
|
|
|
9596
9834
|
* @param options The options parameters.
|
|
9597
9835
|
*/
|
|
9598
9836
|
get(skillsetName, options) {
|
|
9599
|
-
|
|
9600
|
-
skillsetName,
|
|
9601
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9602
|
-
};
|
|
9603
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec$3);
|
|
9837
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
|
|
9604
9838
|
}
|
|
9605
9839
|
/**
|
|
9606
9840
|
* List all skillsets in a search service.
|
|
9607
9841
|
* @param options The options parameters.
|
|
9608
9842
|
*/
|
|
9609
9843
|
list(options) {
|
|
9610
|
-
|
|
9611
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9612
|
-
};
|
|
9613
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec$2);
|
|
9844
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
9614
9845
|
}
|
|
9615
9846
|
/**
|
|
9616
9847
|
* Creates a new skillset in a search service.
|
|
@@ -9618,15 +9849,20 @@ class SkillsetsImpl {
|
|
|
9618
9849
|
* @param options The options parameters.
|
|
9619
9850
|
*/
|
|
9620
9851
|
create(skillset, options) {
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9852
|
+
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
|
|
9853
|
+
}
|
|
9854
|
+
/**
|
|
9855
|
+
* Reset an existing skillset in a search service.
|
|
9856
|
+
* @param skillsetName The name of the skillset to reset.
|
|
9857
|
+
* @param skillNames The names of skills to reset.
|
|
9858
|
+
* @param options The options parameters.
|
|
9859
|
+
*/
|
|
9860
|
+
resetSkills(skillsetName, skillNames, options) {
|
|
9861
|
+
return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
|
|
9626
9862
|
}
|
|
9627
9863
|
}
|
|
9628
9864
|
// Operation Specifications
|
|
9629
|
-
const serializer$3 =
|
|
9865
|
+
const serializer$3 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
|
|
9630
9866
|
const createOrUpdateOperationSpec$2 = {
|
|
9631
9867
|
path: "/skillsets('{skillsetName}')",
|
|
9632
9868
|
httpMethod: "PUT",
|
|
@@ -9644,7 +9880,7 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
9644
9880
|
requestBody: skillset,
|
|
9645
9881
|
queryParameters: [
|
|
9646
9882
|
apiVersion$1,
|
|
9647
|
-
|
|
9883
|
+
skipIndexerResetRequirementForCache,
|
|
9648
9884
|
disableCacheReprocessingChangeDetection
|
|
9649
9885
|
],
|
|
9650
9886
|
urlParameters: [endpoint$1, skillsetName],
|
|
@@ -9733,6 +9969,26 @@ const createOperationSpec$2 = {
|
|
|
9733
9969
|
mediaType: "json",
|
|
9734
9970
|
serializer: serializer$3
|
|
9735
9971
|
};
|
|
9972
|
+
const resetSkillsOperationSpec = {
|
|
9973
|
+
path: "/skillsets('{skillsetName}')/search.resetskills",
|
|
9974
|
+
httpMethod: "POST",
|
|
9975
|
+
responses: {
|
|
9976
|
+
204: {},
|
|
9977
|
+
default: {
|
|
9978
|
+
bodyMapper: SearchError$1
|
|
9979
|
+
}
|
|
9980
|
+
},
|
|
9981
|
+
requestBody: skillNames,
|
|
9982
|
+
queryParameters: [apiVersion$1],
|
|
9983
|
+
urlParameters: [endpoint$1, skillsetName],
|
|
9984
|
+
headerParameters: [
|
|
9985
|
+
contentType$1,
|
|
9986
|
+
accept$1,
|
|
9987
|
+
xMsClientRequestId$1
|
|
9988
|
+
],
|
|
9989
|
+
mediaType: "json",
|
|
9990
|
+
serializer: serializer$3
|
|
9991
|
+
};
|
|
9736
9992
|
|
|
9737
9993
|
/*
|
|
9738
9994
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -9741,7 +9997,7 @@ const createOperationSpec$2 = {
|
|
|
9741
9997
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9742
9998
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9743
9999
|
*/
|
|
9744
|
-
/** Class
|
|
10000
|
+
/** Class containing SynonymMaps operations. */
|
|
9745
10001
|
class SynonymMapsImpl {
|
|
9746
10002
|
/**
|
|
9747
10003
|
* Initialize a new instance of the class SynonymMaps class.
|
|
@@ -9757,12 +10013,7 @@ class SynonymMapsImpl {
|
|
|
9757
10013
|
* @param options The options parameters.
|
|
9758
10014
|
*/
|
|
9759
10015
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
9760
|
-
|
|
9761
|
-
synonymMapName,
|
|
9762
|
-
synonymMap,
|
|
9763
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9764
|
-
};
|
|
9765
|
-
return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$3);
|
|
10016
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$3);
|
|
9766
10017
|
}
|
|
9767
10018
|
/**
|
|
9768
10019
|
* Deletes a synonym map.
|
|
@@ -9770,11 +10021,7 @@ class SynonymMapsImpl {
|
|
|
9770
10021
|
* @param options The options parameters.
|
|
9771
10022
|
*/
|
|
9772
10023
|
delete(synonymMapName, options) {
|
|
9773
|
-
|
|
9774
|
-
synonymMapName,
|
|
9775
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9776
|
-
};
|
|
9777
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$3);
|
|
10024
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$3);
|
|
9778
10025
|
}
|
|
9779
10026
|
/**
|
|
9780
10027
|
* Retrieves a synonym map definition.
|
|
@@ -9782,21 +10029,14 @@ class SynonymMapsImpl {
|
|
|
9782
10029
|
* @param options The options parameters.
|
|
9783
10030
|
*/
|
|
9784
10031
|
get(synonymMapName, options) {
|
|
9785
|
-
|
|
9786
|
-
synonymMapName,
|
|
9787
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9788
|
-
};
|
|
9789
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec$4);
|
|
10032
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$4);
|
|
9790
10033
|
}
|
|
9791
10034
|
/**
|
|
9792
10035
|
* Lists all synonym maps available for a search service.
|
|
9793
10036
|
* @param options The options parameters.
|
|
9794
10037
|
*/
|
|
9795
10038
|
list(options) {
|
|
9796
|
-
|
|
9797
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9798
|
-
};
|
|
9799
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec$3);
|
|
10039
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
9800
10040
|
}
|
|
9801
10041
|
/**
|
|
9802
10042
|
* Creates a new synonym map.
|
|
@@ -9804,15 +10044,11 @@ class SynonymMapsImpl {
|
|
|
9804
10044
|
* @param options The options parameters.
|
|
9805
10045
|
*/
|
|
9806
10046
|
create(synonymMap, options) {
|
|
9807
|
-
|
|
9808
|
-
synonymMap,
|
|
9809
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9810
|
-
};
|
|
9811
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec$3);
|
|
10047
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$3);
|
|
9812
10048
|
}
|
|
9813
10049
|
}
|
|
9814
10050
|
// Operation Specifications
|
|
9815
|
-
const serializer$4 =
|
|
10051
|
+
const serializer$4 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
|
|
9816
10052
|
const createOrUpdateOperationSpec$3 = {
|
|
9817
10053
|
path: "/synonymmaps('{synonymMapName}')",
|
|
9818
10054
|
httpMethod: "PUT",
|
|
@@ -9923,7 +10159,7 @@ const createOperationSpec$3 = {
|
|
|
9923
10159
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9924
10160
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9925
10161
|
*/
|
|
9926
|
-
/** Class
|
|
10162
|
+
/** Class containing Indexes operations. */
|
|
9927
10163
|
class IndexesImpl {
|
|
9928
10164
|
/**
|
|
9929
10165
|
* Initialize a new instance of the class Indexes class.
|
|
@@ -9938,21 +10174,14 @@ class IndexesImpl {
|
|
|
9938
10174
|
* @param options The options parameters.
|
|
9939
10175
|
*/
|
|
9940
10176
|
create(index, options) {
|
|
9941
|
-
|
|
9942
|
-
index,
|
|
9943
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9944
|
-
};
|
|
9945
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec$4);
|
|
10177
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec$4);
|
|
9946
10178
|
}
|
|
9947
10179
|
/**
|
|
9948
10180
|
* Lists all indexes available for a search service.
|
|
9949
10181
|
* @param options The options parameters.
|
|
9950
10182
|
*/
|
|
9951
10183
|
list(options) {
|
|
9952
|
-
|
|
9953
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9954
|
-
};
|
|
9955
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec$4);
|
|
10184
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
9956
10185
|
}
|
|
9957
10186
|
/**
|
|
9958
10187
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -9961,12 +10190,7 @@ class IndexesImpl {
|
|
|
9961
10190
|
* @param options The options parameters.
|
|
9962
10191
|
*/
|
|
9963
10192
|
createOrUpdate(indexName, index, options) {
|
|
9964
|
-
|
|
9965
|
-
indexName,
|
|
9966
|
-
index,
|
|
9967
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9968
|
-
};
|
|
9969
|
-
return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$4);
|
|
10193
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$4);
|
|
9970
10194
|
}
|
|
9971
10195
|
/**
|
|
9972
10196
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -9976,11 +10200,7 @@ class IndexesImpl {
|
|
|
9976
10200
|
* @param options The options parameters.
|
|
9977
10201
|
*/
|
|
9978
10202
|
delete(indexName, options) {
|
|
9979
|
-
|
|
9980
|
-
indexName,
|
|
9981
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9982
|
-
};
|
|
9983
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$4);
|
|
10203
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$4);
|
|
9984
10204
|
}
|
|
9985
10205
|
/**
|
|
9986
10206
|
* Retrieves an index definition.
|
|
@@ -9988,11 +10208,7 @@ class IndexesImpl {
|
|
|
9988
10208
|
* @param options The options parameters.
|
|
9989
10209
|
*/
|
|
9990
10210
|
get(indexName, options) {
|
|
9991
|
-
|
|
9992
|
-
indexName,
|
|
9993
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
9994
|
-
};
|
|
9995
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec$5);
|
|
10211
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$5);
|
|
9996
10212
|
}
|
|
9997
10213
|
/**
|
|
9998
10214
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10000,11 +10216,7 @@ class IndexesImpl {
|
|
|
10000
10216
|
* @param options The options parameters.
|
|
10001
10217
|
*/
|
|
10002
10218
|
getStatistics(indexName, options) {
|
|
10003
|
-
|
|
10004
|
-
indexName,
|
|
10005
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
10006
|
-
};
|
|
10007
|
-
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
|
10219
|
+
return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
|
|
10008
10220
|
}
|
|
10009
10221
|
/**
|
|
10010
10222
|
* Shows how an analyzer breaks text into tokens.
|
|
@@ -10013,16 +10225,11 @@ class IndexesImpl {
|
|
|
10013
10225
|
* @param options The options parameters.
|
|
10014
10226
|
*/
|
|
10015
10227
|
analyze(indexName, request, options) {
|
|
10016
|
-
|
|
10017
|
-
indexName,
|
|
10018
|
-
request,
|
|
10019
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
10020
|
-
};
|
|
10021
|
-
return this.client.sendOperationRequest(operationArguments, analyzeOperationSpec);
|
|
10228
|
+
return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
|
|
10022
10229
|
}
|
|
10023
10230
|
}
|
|
10024
10231
|
// Operation Specifications
|
|
10025
|
-
const serializer$5 =
|
|
10232
|
+
const serializer$5 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
|
|
10026
10233
|
const createOperationSpec$4 = {
|
|
10027
10234
|
path: "/indexes",
|
|
10028
10235
|
httpMethod: "POST",
|
|
@@ -10171,10 +10378,8 @@ const analyzeOperationSpec = {
|
|
|
10171
10378
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10172
10379
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10173
10380
|
*/
|
|
10174
|
-
const packageName$1 = "@azure/search-documents";
|
|
10175
|
-
const packageVersion$1 = "11.3.0-beta.3";
|
|
10176
10381
|
/** @internal */
|
|
10177
|
-
class SearchServiceClientContext extends
|
|
10382
|
+
class SearchServiceClientContext extends coreClient.ServiceClient {
|
|
10178
10383
|
/**
|
|
10179
10384
|
* Initializes a new instance of the SearchServiceClientContext class.
|
|
10180
10385
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -10192,12 +10397,17 @@ class SearchServiceClientContext extends coreHttp.ServiceClient {
|
|
|
10192
10397
|
if (!options) {
|
|
10193
10398
|
options = {};
|
|
10194
10399
|
}
|
|
10195
|
-
const
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10400
|
+
const defaults = {
|
|
10401
|
+
requestContentType: "application/json; charset=utf-8"
|
|
10402
|
+
};
|
|
10403
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.5`;
|
|
10404
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10405
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10406
|
+
: `${packageDetails}`;
|
|
10407
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
10408
|
+
userAgentPrefix
|
|
10409
|
+
}, baseUri: options.endpoint || "{endpoint}" });
|
|
10410
|
+
super(optionsWithDefaults);
|
|
10201
10411
|
// Parameter assignments
|
|
10202
10412
|
this.endpoint = endpoint;
|
|
10203
10413
|
this.apiVersion = apiVersion;
|
|
@@ -10232,14 +10442,11 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10232
10442
|
* @param options The options parameters.
|
|
10233
10443
|
*/
|
|
10234
10444
|
getServiceStatistics(options) {
|
|
10235
|
-
|
|
10236
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
10237
|
-
};
|
|
10238
|
-
return this.sendOperationRequest(operationArguments, getServiceStatisticsOperationSpec);
|
|
10445
|
+
return this.sendOperationRequest({ options }, getServiceStatisticsOperationSpec);
|
|
10239
10446
|
}
|
|
10240
10447
|
}
|
|
10241
10448
|
// Operation Specifications
|
|
10242
|
-
const serializer$6 =
|
|
10449
|
+
const serializer$6 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
|
|
10243
10450
|
const getServiceStatisticsOperationSpec = {
|
|
10244
10451
|
path: "/servicestats",
|
|
10245
10452
|
httpMethod: "GET",
|
|
@@ -10298,10 +10505,10 @@ class SearchIndexClient {
|
|
|
10298
10505
|
else {
|
|
10299
10506
|
options.userAgentOptions.userAgentPrefix = libInfo;
|
|
10300
10507
|
}
|
|
10301
|
-
const
|
|
10508
|
+
const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
10302
10509
|
loggingOptions: {
|
|
10303
10510
|
logger: logger.info,
|
|
10304
|
-
|
|
10511
|
+
additionalAllowedHeaderNames: [
|
|
10305
10512
|
"elapsed-time",
|
|
10306
10513
|
"Location",
|
|
10307
10514
|
"OData-MaxVersion",
|
|
@@ -10311,13 +10518,6 @@ class SearchIndexClient {
|
|
|
10311
10518
|
]
|
|
10312
10519
|
}
|
|
10313
10520
|
});
|
|
10314
|
-
const requestPolicyFactory = coreAuth.isTokenCredential(credential)
|
|
10315
|
-
? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
|
|
10316
|
-
: createSearchApiKeyCredentialPolicy(credential);
|
|
10317
|
-
const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
|
|
10318
|
-
if (Array.isArray(pipeline.requestPolicyFactories)) {
|
|
10319
|
-
pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal"));
|
|
10320
|
-
}
|
|
10321
10521
|
let apiVersion = this.apiVersion;
|
|
10322
10522
|
if (options.apiVersion) {
|
|
10323
10523
|
if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
|
|
@@ -10325,13 +10525,20 @@ class SearchIndexClient {
|
|
|
10325
10525
|
}
|
|
10326
10526
|
apiVersion = options.apiVersion;
|
|
10327
10527
|
}
|
|
10328
|
-
this.client = new SearchServiceClient(this.endpoint, apiVersion,
|
|
10528
|
+
this.client = new SearchServiceClient(this.endpoint, apiVersion, internalClientPipelineOptions);
|
|
10529
|
+
if (coreAuth.isTokenCredential(credential)) {
|
|
10530
|
+
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
10531
|
+
}
|
|
10532
|
+
else {
|
|
10533
|
+
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
10534
|
+
}
|
|
10535
|
+
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
10329
10536
|
}
|
|
10330
10537
|
listIndexesPage(options = {}) {
|
|
10331
10538
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
|
|
10332
10539
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
|
|
10333
10540
|
try {
|
|
10334
|
-
const result = yield tslib.__await(this.client.indexes.list(
|
|
10541
|
+
const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
|
|
10335
10542
|
const mapped = result.indexes.map(generatedIndexToPublicIndex);
|
|
10336
10543
|
yield yield tslib.__await(mapped);
|
|
10337
10544
|
}
|
|
@@ -10387,7 +10594,7 @@ class SearchIndexClient {
|
|
|
10387
10594
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
|
|
10388
10595
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
|
|
10389
10596
|
try {
|
|
10390
|
-
const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({},
|
|
10597
|
+
const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" })));
|
|
10391
10598
|
const mapped = result.indexes.map((idx) => idx.name);
|
|
10392
10599
|
yield yield tslib.__await(mapped);
|
|
10393
10600
|
}
|
|
@@ -10446,7 +10653,7 @@ class SearchIndexClient {
|
|
|
10446
10653
|
async listSynonymMaps(options = {}) {
|
|
10447
10654
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMaps", options);
|
|
10448
10655
|
try {
|
|
10449
|
-
const result = await this.client.synonymMaps.list(
|
|
10656
|
+
const result = await this.client.synonymMaps.list(updatedOptions);
|
|
10450
10657
|
return result.synonymMaps.map(generatedSynonymMapToPublicSynonymMap);
|
|
10451
10658
|
}
|
|
10452
10659
|
catch (e) {
|
|
@@ -10467,7 +10674,7 @@ class SearchIndexClient {
|
|
|
10467
10674
|
async listSynonymMapsNames(options = {}) {
|
|
10468
10675
|
const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
|
|
10469
10676
|
try {
|
|
10470
|
-
const result = await this.client.synonymMaps.list(Object.assign(Object.assign({},
|
|
10677
|
+
const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
10471
10678
|
return result.synonymMaps.map((sm) => sm.name);
|
|
10472
10679
|
}
|
|
10473
10680
|
catch (e) {
|
|
@@ -10489,7 +10696,7 @@ class SearchIndexClient {
|
|
|
10489
10696
|
async getIndex(indexName, options = {}) {
|
|
10490
10697
|
const { span, updatedOptions } = createSpan("SearchIndexClient-getIndex", options);
|
|
10491
10698
|
try {
|
|
10492
|
-
const result = await this.client.indexes.get(indexName,
|
|
10699
|
+
const result = await this.client.indexes.get(indexName, updatedOptions);
|
|
10493
10700
|
return generatedIndexToPublicIndex(result);
|
|
10494
10701
|
}
|
|
10495
10702
|
catch (e) {
|
|
@@ -10511,7 +10718,7 @@ class SearchIndexClient {
|
|
|
10511
10718
|
async getSynonymMap(synonymMapName, options = {}) {
|
|
10512
10719
|
const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options);
|
|
10513
10720
|
try {
|
|
10514
|
-
const result = await this.client.synonymMaps.get(synonymMapName,
|
|
10721
|
+
const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);
|
|
10515
10722
|
return generatedSynonymMapToPublicSynonymMap(result);
|
|
10516
10723
|
}
|
|
10517
10724
|
catch (e) {
|
|
@@ -10533,7 +10740,7 @@ class SearchIndexClient {
|
|
|
10533
10740
|
async createIndex(index, options = {}) {
|
|
10534
10741
|
const { span, updatedOptions } = createSpan("SearchIndexClient-createIndex", options);
|
|
10535
10742
|
try {
|
|
10536
|
-
const result = await this.client.indexes.create(publicIndexToGeneratedIndex(index),
|
|
10743
|
+
const result = await this.client.indexes.create(publicIndexToGeneratedIndex(index), updatedOptions);
|
|
10537
10744
|
return generatedIndexToPublicIndex(result);
|
|
10538
10745
|
}
|
|
10539
10746
|
catch (e) {
|
|
@@ -10555,7 +10762,7 @@ class SearchIndexClient {
|
|
|
10555
10762
|
async createSynonymMap(synonymMap, options = {}) {
|
|
10556
10763
|
const { span, updatedOptions } = createSpan("SearchIndexClient-createSynonymMaps", options);
|
|
10557
10764
|
try {
|
|
10558
|
-
const result = await this.client.synonymMaps.create(publicSynonymMapToGeneratedSynonymMap(synonymMap),
|
|
10765
|
+
const result = await this.client.synonymMaps.create(publicSynonymMapToGeneratedSynonymMap(synonymMap), updatedOptions);
|
|
10559
10766
|
return generatedSynonymMapToPublicSynonymMap(result);
|
|
10560
10767
|
}
|
|
10561
10768
|
catch (e) {
|
|
@@ -10578,7 +10785,7 @@ class SearchIndexClient {
|
|
|
10578
10785
|
const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateIndex", options);
|
|
10579
10786
|
try {
|
|
10580
10787
|
const etag = options.onlyIfUnchanged ? index.etag : undefined;
|
|
10581
|
-
const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({},
|
|
10788
|
+
const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
10582
10789
|
return generatedIndexToPublicIndex(result);
|
|
10583
10790
|
}
|
|
10584
10791
|
catch (e) {
|
|
@@ -10601,7 +10808,7 @@ class SearchIndexClient {
|
|
|
10601
10808
|
const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateSynonymMap", options);
|
|
10602
10809
|
try {
|
|
10603
10810
|
const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;
|
|
10604
|
-
const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({},
|
|
10811
|
+
const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
10605
10812
|
return generatedSynonymMapToPublicSynonymMap(result);
|
|
10606
10813
|
}
|
|
10607
10814
|
catch (e) {
|
|
@@ -10625,7 +10832,7 @@ class SearchIndexClient {
|
|
|
10625
10832
|
try {
|
|
10626
10833
|
const indexName = typeof index === "string" ? index : index.name;
|
|
10627
10834
|
const etag = typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;
|
|
10628
|
-
await this.client.indexes.delete(indexName, Object.assign(Object.assign({},
|
|
10835
|
+
await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
10629
10836
|
}
|
|
10630
10837
|
catch (e) {
|
|
10631
10838
|
span.setStatus({
|
|
@@ -10652,7 +10859,7 @@ class SearchIndexClient {
|
|
|
10652
10859
|
: options.onlyIfUnchanged
|
|
10653
10860
|
? synonymMap.etag
|
|
10654
10861
|
: undefined;
|
|
10655
|
-
await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({},
|
|
10862
|
+
await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
10656
10863
|
}
|
|
10657
10864
|
catch (e) {
|
|
10658
10865
|
span.setStatus({
|
|
@@ -10674,7 +10881,7 @@ class SearchIndexClient {
|
|
|
10674
10881
|
async getIndexStatistics(indexName, options = {}) {
|
|
10675
10882
|
const { span, updatedOptions } = createSpan("SearchIndexClient-getIndexStatistics", options);
|
|
10676
10883
|
try {
|
|
10677
|
-
const result = await this.client.indexes.getStatistics(indexName,
|
|
10884
|
+
const result = await this.client.indexes.getStatistics(indexName, updatedOptions);
|
|
10678
10885
|
return result;
|
|
10679
10886
|
}
|
|
10680
10887
|
catch (e) {
|
|
@@ -10695,10 +10902,15 @@ class SearchIndexClient {
|
|
|
10695
10902
|
* @param options - Additional arguments
|
|
10696
10903
|
*/
|
|
10697
10904
|
async analyzeText(indexName, options) {
|
|
10698
|
-
const {
|
|
10905
|
+
const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
|
|
10906
|
+
const operationOptions = {
|
|
10907
|
+
abortSignal,
|
|
10908
|
+
requestOptions,
|
|
10909
|
+
tracingOptions
|
|
10910
|
+
};
|
|
10699
10911
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
10700
10912
|
try {
|
|
10701
|
-
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }),
|
|
10913
|
+
const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), updatedOptions);
|
|
10702
10914
|
return result;
|
|
10703
10915
|
}
|
|
10704
10916
|
catch (e) {
|
|
@@ -10719,7 +10931,7 @@ class SearchIndexClient {
|
|
|
10719
10931
|
async getServiceStatistics(options = {}) {
|
|
10720
10932
|
const { span, updatedOptions } = createSpan("SearchIndexClient-getServiceStatistics", options);
|
|
10721
10933
|
try {
|
|
10722
|
-
const result = await this.client.getServiceStatistics(
|
|
10934
|
+
const result = await this.client.getServiceStatistics(updatedOptions);
|
|
10723
10935
|
return result;
|
|
10724
10936
|
}
|
|
10725
10937
|
catch (e) {
|
|
@@ -10782,10 +10994,10 @@ class SearchIndexerClient {
|
|
|
10782
10994
|
else {
|
|
10783
10995
|
options.userAgentOptions.userAgentPrefix = libInfo;
|
|
10784
10996
|
}
|
|
10785
|
-
const
|
|
10997
|
+
const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
10786
10998
|
loggingOptions: {
|
|
10787
10999
|
logger: logger.info,
|
|
10788
|
-
|
|
11000
|
+
additionalAllowedHeaderNames: [
|
|
10789
11001
|
"elapsed-time",
|
|
10790
11002
|
"Location",
|
|
10791
11003
|
"OData-MaxVersion",
|
|
@@ -10795,13 +11007,6 @@ class SearchIndexerClient {
|
|
|
10795
11007
|
]
|
|
10796
11008
|
}
|
|
10797
11009
|
});
|
|
10798
|
-
const requestPolicyFactory = coreAuth.isTokenCredential(credential)
|
|
10799
|
-
? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
|
|
10800
|
-
: createSearchApiKeyCredentialPolicy(credential);
|
|
10801
|
-
const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
|
|
10802
|
-
if (Array.isArray(pipeline.requestPolicyFactories)) {
|
|
10803
|
-
pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal"));
|
|
10804
|
-
}
|
|
10805
11010
|
let apiVersion = this.apiVersion;
|
|
10806
11011
|
if (options.apiVersion) {
|
|
10807
11012
|
if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
|
|
@@ -10809,7 +11014,14 @@ class SearchIndexerClient {
|
|
|
10809
11014
|
}
|
|
10810
11015
|
apiVersion = options.apiVersion;
|
|
10811
11016
|
}
|
|
10812
|
-
this.client = new SearchServiceClient(this.endpoint, apiVersion,
|
|
11017
|
+
this.client = new SearchServiceClient(this.endpoint, apiVersion, internalClientPipelineOptions);
|
|
11018
|
+
if (coreAuth.isTokenCredential(credential)) {
|
|
11019
|
+
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
11020
|
+
}
|
|
11021
|
+
else {
|
|
11022
|
+
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
11023
|
+
}
|
|
11024
|
+
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
10813
11025
|
}
|
|
10814
11026
|
/**
|
|
10815
11027
|
* Retrieves a list of existing indexers in the service.
|
|
@@ -10818,7 +11030,7 @@ class SearchIndexerClient {
|
|
|
10818
11030
|
async listIndexers(options = {}) {
|
|
10819
11031
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexers", options);
|
|
10820
11032
|
try {
|
|
10821
|
-
const result = await this.client.indexers.list(
|
|
11033
|
+
const result = await this.client.indexers.list(updatedOptions);
|
|
10822
11034
|
return result.indexers.map(generatedSearchIndexerToPublicSearchIndexer);
|
|
10823
11035
|
}
|
|
10824
11036
|
catch (e) {
|
|
@@ -10839,7 +11051,7 @@ class SearchIndexerClient {
|
|
|
10839
11051
|
async listIndexersNames(options = {}) {
|
|
10840
11052
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
|
|
10841
11053
|
try {
|
|
10842
|
-
const result = await this.client.indexers.list(Object.assign(Object.assign({},
|
|
11054
|
+
const result = await this.client.indexers.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
10843
11055
|
return result.indexers.map((idx) => idx.name);
|
|
10844
11056
|
}
|
|
10845
11057
|
catch (e) {
|
|
@@ -10860,7 +11072,7 @@ class SearchIndexerClient {
|
|
|
10860
11072
|
async listDataSourceConnections(options = {}) {
|
|
10861
11073
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnections", options);
|
|
10862
11074
|
try {
|
|
10863
|
-
const result = await this.client.dataSources.list(
|
|
11075
|
+
const result = await this.client.dataSources.list(updatedOptions);
|
|
10864
11076
|
return result.dataSources.map(generatedDataSourceToPublicDataSource);
|
|
10865
11077
|
}
|
|
10866
11078
|
catch (e) {
|
|
@@ -10881,7 +11093,7 @@ class SearchIndexerClient {
|
|
|
10881
11093
|
async listDataSourceConnectionsNames(options = {}) {
|
|
10882
11094
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
|
|
10883
11095
|
try {
|
|
10884
|
-
const result = await this.client.dataSources.list(Object.assign(Object.assign({},
|
|
11096
|
+
const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
10885
11097
|
return result.dataSources.map((ds) => ds.name);
|
|
10886
11098
|
}
|
|
10887
11099
|
catch (e) {
|
|
@@ -10902,7 +11114,7 @@ class SearchIndexerClient {
|
|
|
10902
11114
|
async listSkillsets(options = {}) {
|
|
10903
11115
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsets", options);
|
|
10904
11116
|
try {
|
|
10905
|
-
const result = await this.client.skillsets.list(
|
|
11117
|
+
const result = await this.client.skillsets.list(updatedOptions);
|
|
10906
11118
|
return result.skillsets.map(generatedSkillsetToPublicSkillset);
|
|
10907
11119
|
}
|
|
10908
11120
|
catch (e) {
|
|
@@ -10923,7 +11135,7 @@ class SearchIndexerClient {
|
|
|
10923
11135
|
async listSkillsetsNames(options = {}) {
|
|
10924
11136
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
|
|
10925
11137
|
try {
|
|
10926
|
-
const result = await this.client.skillsets.list(Object.assign(Object.assign({},
|
|
11138
|
+
const result = await this.client.skillsets.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
|
|
10927
11139
|
return result.skillsets.map((sks) => sks.name);
|
|
10928
11140
|
}
|
|
10929
11141
|
catch (e) {
|
|
@@ -10945,7 +11157,7 @@ class SearchIndexerClient {
|
|
|
10945
11157
|
async getIndexer(indexerName, options = {}) {
|
|
10946
11158
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexer", options);
|
|
10947
11159
|
try {
|
|
10948
|
-
const result = await this.client.indexers.get(indexerName,
|
|
11160
|
+
const result = await this.client.indexers.get(indexerName, updatedOptions);
|
|
10949
11161
|
return generatedSearchIndexerToPublicSearchIndexer(result);
|
|
10950
11162
|
}
|
|
10951
11163
|
catch (e) {
|
|
@@ -10967,7 +11179,7 @@ class SearchIndexerClient {
|
|
|
10967
11179
|
async getDataSourceConnection(dataSourceConnectionName, options = {}) {
|
|
10968
11180
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-getDataSourceConnection", options);
|
|
10969
11181
|
try {
|
|
10970
|
-
const result = await this.client.dataSources.get(dataSourceConnectionName,
|
|
11182
|
+
const result = await this.client.dataSources.get(dataSourceConnectionName, updatedOptions);
|
|
10971
11183
|
return generatedDataSourceToPublicDataSource(result);
|
|
10972
11184
|
}
|
|
10973
11185
|
catch (e) {
|
|
@@ -10989,7 +11201,7 @@ class SearchIndexerClient {
|
|
|
10989
11201
|
async getSkillset(skillsetName, options = {}) {
|
|
10990
11202
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-getSkillset", options);
|
|
10991
11203
|
try {
|
|
10992
|
-
const result = await this.client.skillsets.get(skillsetName,
|
|
11204
|
+
const result = await this.client.skillsets.get(skillsetName, updatedOptions);
|
|
10993
11205
|
return generatedSkillsetToPublicSkillset(result);
|
|
10994
11206
|
}
|
|
10995
11207
|
catch (e) {
|
|
@@ -11011,7 +11223,7 @@ class SearchIndexerClient {
|
|
|
11011
11223
|
async createIndexer(indexer, options = {}) {
|
|
11012
11224
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createIndexer", options);
|
|
11013
11225
|
try {
|
|
11014
|
-
const result = await this.client.indexers.create(publicSearchIndexerToGeneratedSearchIndexer(indexer),
|
|
11226
|
+
const result = await this.client.indexers.create(publicSearchIndexerToGeneratedSearchIndexer(indexer), updatedOptions);
|
|
11015
11227
|
return generatedSearchIndexerToPublicSearchIndexer(result);
|
|
11016
11228
|
}
|
|
11017
11229
|
catch (e) {
|
|
@@ -11033,7 +11245,7 @@ class SearchIndexerClient {
|
|
|
11033
11245
|
async createDataSourceConnection(dataSourceConnection, options = {}) {
|
|
11034
11246
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createDataSourceConnection", options);
|
|
11035
11247
|
try {
|
|
11036
|
-
const result = await this.client.dataSources.create(publicDataSourceToGeneratedDataSource(dataSourceConnection),
|
|
11248
|
+
const result = await this.client.dataSources.create(publicDataSourceToGeneratedDataSource(dataSourceConnection), updatedOptions);
|
|
11037
11249
|
return generatedDataSourceToPublicDataSource(result);
|
|
11038
11250
|
}
|
|
11039
11251
|
catch (e) {
|
|
@@ -11055,7 +11267,7 @@ class SearchIndexerClient {
|
|
|
11055
11267
|
async createSkillset(skillset, options = {}) {
|
|
11056
11268
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createSkillset", options);
|
|
11057
11269
|
try {
|
|
11058
|
-
const result = await this.client.skillsets.create(publicSkillsetToGeneratedSkillset(skillset),
|
|
11270
|
+
const result = await this.client.skillsets.create(publicSkillsetToGeneratedSkillset(skillset), updatedOptions);
|
|
11059
11271
|
return generatedSkillsetToPublicSkillset(result);
|
|
11060
11272
|
}
|
|
11061
11273
|
catch (e) {
|
|
@@ -11078,7 +11290,7 @@ class SearchIndexerClient {
|
|
|
11078
11290
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
|
|
11079
11291
|
try {
|
|
11080
11292
|
const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
|
|
11081
|
-
const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({},
|
|
11293
|
+
const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
|
|
11082
11294
|
return generatedSearchIndexerToPublicSearchIndexer(result);
|
|
11083
11295
|
}
|
|
11084
11296
|
catch (e) {
|
|
@@ -11101,7 +11313,7 @@ class SearchIndexerClient {
|
|
|
11101
11313
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
|
|
11102
11314
|
try {
|
|
11103
11315
|
const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
|
|
11104
|
-
const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({},
|
|
11316
|
+
const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache }));
|
|
11105
11317
|
return generatedDataSourceToPublicDataSource(result);
|
|
11106
11318
|
}
|
|
11107
11319
|
catch (e) {
|
|
@@ -11124,7 +11336,7 @@ class SearchIndexerClient {
|
|
|
11124
11336
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
|
|
11125
11337
|
try {
|
|
11126
11338
|
const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
|
|
11127
|
-
const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({},
|
|
11339
|
+
const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
|
|
11128
11340
|
return generatedSkillsetToPublicSkillset(result);
|
|
11129
11341
|
}
|
|
11130
11342
|
catch (e) {
|
|
@@ -11152,7 +11364,7 @@ class SearchIndexerClient {
|
|
|
11152
11364
|
: options.onlyIfUnchanged
|
|
11153
11365
|
? indexer.etag
|
|
11154
11366
|
: undefined;
|
|
11155
|
-
await this.client.indexers.delete(indexerName, Object.assign(Object.assign({},
|
|
11367
|
+
await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11156
11368
|
}
|
|
11157
11369
|
catch (e) {
|
|
11158
11370
|
span.setStatus({
|
|
@@ -11179,7 +11391,7 @@ class SearchIndexerClient {
|
|
|
11179
11391
|
: options.onlyIfUnchanged
|
|
11180
11392
|
? dataSourceConnection.etag
|
|
11181
11393
|
: undefined;
|
|
11182
|
-
await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({},
|
|
11394
|
+
await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11183
11395
|
}
|
|
11184
11396
|
catch (e) {
|
|
11185
11397
|
span.setStatus({
|
|
@@ -11206,7 +11418,7 @@ class SearchIndexerClient {
|
|
|
11206
11418
|
: options.onlyIfUnchanged
|
|
11207
11419
|
? skillset.etag
|
|
11208
11420
|
: undefined;
|
|
11209
|
-
await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({},
|
|
11421
|
+
await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11210
11422
|
}
|
|
11211
11423
|
catch (e) {
|
|
11212
11424
|
span.setStatus({
|
|
@@ -11227,7 +11439,7 @@ class SearchIndexerClient {
|
|
|
11227
11439
|
async getIndexerStatus(indexerName, options = {}) {
|
|
11228
11440
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexerStatus", options);
|
|
11229
11441
|
try {
|
|
11230
|
-
const result = await this.client.indexers.getStatus(indexerName,
|
|
11442
|
+
const result = await this.client.indexers.getStatus(indexerName, updatedOptions);
|
|
11231
11443
|
return result;
|
|
11232
11444
|
}
|
|
11233
11445
|
catch (e) {
|
|
@@ -11249,7 +11461,7 @@ class SearchIndexerClient {
|
|
|
11249
11461
|
async resetIndexer(indexerName, options = {}) {
|
|
11250
11462
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetIndexer", options);
|
|
11251
11463
|
try {
|
|
11252
|
-
await this.client.indexers.reset(indexerName,
|
|
11464
|
+
await this.client.indexers.reset(indexerName, updatedOptions);
|
|
11253
11465
|
}
|
|
11254
11466
|
catch (e) {
|
|
11255
11467
|
span.setStatus({
|
|
@@ -11270,7 +11482,53 @@ class SearchIndexerClient {
|
|
|
11270
11482
|
async runIndexer(indexerName, options = {}) {
|
|
11271
11483
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-runIndexer", options);
|
|
11272
11484
|
try {
|
|
11273
|
-
await this.client.indexers.run(indexerName,
|
|
11485
|
+
await this.client.indexers.run(indexerName, updatedOptions);
|
|
11486
|
+
}
|
|
11487
|
+
catch (e) {
|
|
11488
|
+
span.setStatus({
|
|
11489
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
11490
|
+
message: e.message
|
|
11491
|
+
});
|
|
11492
|
+
throw e;
|
|
11493
|
+
}
|
|
11494
|
+
finally {
|
|
11495
|
+
span.end();
|
|
11496
|
+
}
|
|
11497
|
+
}
|
|
11498
|
+
/**
|
|
11499
|
+
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
11500
|
+
* @param indexerName - The name of the indexer to reset documents for.
|
|
11501
|
+
* @param options - Additional optional arguments.
|
|
11502
|
+
*/
|
|
11503
|
+
async resetDocuments(indexerName, options = {}) {
|
|
11504
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
|
|
11505
|
+
try {
|
|
11506
|
+
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
11507
|
+
documentKeys: updatedOptions.documentKeys,
|
|
11508
|
+
datasourceDocumentIds: updatedOptions.datasourceDocumentIds
|
|
11509
|
+
} }));
|
|
11510
|
+
}
|
|
11511
|
+
catch (e) {
|
|
11512
|
+
span.setStatus({
|
|
11513
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
11514
|
+
message: e.message
|
|
11515
|
+
});
|
|
11516
|
+
throw e;
|
|
11517
|
+
}
|
|
11518
|
+
finally {
|
|
11519
|
+
span.end();
|
|
11520
|
+
}
|
|
11521
|
+
}
|
|
11522
|
+
/**
|
|
11523
|
+
* Reset an existing skillset in a search service.
|
|
11524
|
+
* @param skillsetName - The name of the skillset to reset.
|
|
11525
|
+
* @param skillNames - The names of skills to reset.
|
|
11526
|
+
* @param options - The options parameters.
|
|
11527
|
+
*/
|
|
11528
|
+
async resetSkills(skillsetName, options = {}) {
|
|
11529
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
|
|
11530
|
+
try {
|
|
11531
|
+
await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
|
|
11274
11532
|
}
|
|
11275
11533
|
catch (e) {
|
|
11276
11534
|
span.setStatus({
|
|
@@ -11332,6 +11590,1062 @@ function odata(strings, ...values) {
|
|
|
11332
11590
|
return results.join("");
|
|
11333
11591
|
}
|
|
11334
11592
|
|
|
11593
|
+
/*
|
|
11594
|
+
* Copyright (c) Microsoft Corporation.
|
|
11595
|
+
* Licensed under the MIT License.
|
|
11596
|
+
*
|
|
11597
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
11598
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11599
|
+
*/
|
|
11600
|
+
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11601
|
+
var KnownApiVersion20210430Preview;
|
|
11602
|
+
(function (KnownApiVersion20210430Preview) {
|
|
11603
|
+
/** Api Version '2021-04-30-Preview' */
|
|
11604
|
+
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11605
|
+
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11606
|
+
(function (KnownQueryLanguage) {
|
|
11607
|
+
/** Query language not specified. */
|
|
11608
|
+
KnownQueryLanguage["None"] = "none";
|
|
11609
|
+
/** Query language value for English (United States). */
|
|
11610
|
+
KnownQueryLanguage["EnUs"] = "en-us";
|
|
11611
|
+
/** Query language value for English (Great Britain). */
|
|
11612
|
+
KnownQueryLanguage["EnGb"] = "en-gb";
|
|
11613
|
+
/** Query language value for English (India). */
|
|
11614
|
+
KnownQueryLanguage["EnIn"] = "en-in";
|
|
11615
|
+
/** Query language value for English (Canada). */
|
|
11616
|
+
KnownQueryLanguage["EnCa"] = "en-ca";
|
|
11617
|
+
/** Query language value for English (Australia). */
|
|
11618
|
+
KnownQueryLanguage["EnAu"] = "en-au";
|
|
11619
|
+
/** Query language value for French (France). */
|
|
11620
|
+
KnownQueryLanguage["FrFr"] = "fr-fr";
|
|
11621
|
+
/** Query language value for French (Canada). */
|
|
11622
|
+
KnownQueryLanguage["FrCa"] = "fr-ca";
|
|
11623
|
+
/** Query language value for German (Germany). */
|
|
11624
|
+
KnownQueryLanguage["DeDe"] = "de-de";
|
|
11625
|
+
/** Query language value for Spanish (Spain). */
|
|
11626
|
+
KnownQueryLanguage["EsEs"] = "es-es";
|
|
11627
|
+
/** Query language value for Spanish (Mexico). */
|
|
11628
|
+
KnownQueryLanguage["EsMx"] = "es-mx";
|
|
11629
|
+
/** Query language value for Chinese (China). */
|
|
11630
|
+
KnownQueryLanguage["ZhCn"] = "zh-cn";
|
|
11631
|
+
/** Query language value for Chinese (Taiwan). */
|
|
11632
|
+
KnownQueryLanguage["ZhTw"] = "zh-tw";
|
|
11633
|
+
/** Query language value for Portuguese (Brazil). */
|
|
11634
|
+
KnownQueryLanguage["PtBr"] = "pt-br";
|
|
11635
|
+
/** Query language value for Portuguese (Portugal). */
|
|
11636
|
+
KnownQueryLanguage["PtPt"] = "pt-pt";
|
|
11637
|
+
/** Query language value for Italian (Italy). */
|
|
11638
|
+
KnownQueryLanguage["ItIt"] = "it-it";
|
|
11639
|
+
/** Query language value for Japanese (Japan). */
|
|
11640
|
+
KnownQueryLanguage["JaJp"] = "ja-jp";
|
|
11641
|
+
/** Query language value for Korean (Korea). */
|
|
11642
|
+
KnownQueryLanguage["KoKr"] = "ko-kr";
|
|
11643
|
+
/** Query language value for Russian (Russia). */
|
|
11644
|
+
KnownQueryLanguage["RuRu"] = "ru-ru";
|
|
11645
|
+
/** Query language value for Czech (Czech Republic). */
|
|
11646
|
+
KnownQueryLanguage["CsCz"] = "cs-cz";
|
|
11647
|
+
/** Query language value for Dutch (Belgium). */
|
|
11648
|
+
KnownQueryLanguage["NlBe"] = "nl-be";
|
|
11649
|
+
/** Query language value for Dutch (Netherlands). */
|
|
11650
|
+
KnownQueryLanguage["NlNl"] = "nl-nl";
|
|
11651
|
+
/** Query language value for Hungarian (Hungary). */
|
|
11652
|
+
KnownQueryLanguage["HuHu"] = "hu-hu";
|
|
11653
|
+
/** Query language value for Polish (Poland). */
|
|
11654
|
+
KnownQueryLanguage["PlPl"] = "pl-pl";
|
|
11655
|
+
/** Query language value for Swedish (Sweden). */
|
|
11656
|
+
KnownQueryLanguage["SvSe"] = "sv-se";
|
|
11657
|
+
/** Query language value for Turkish (Turkey). */
|
|
11658
|
+
KnownQueryLanguage["TrTr"] = "tr-tr";
|
|
11659
|
+
/** Query language value for Hindi (India). */
|
|
11660
|
+
KnownQueryLanguage["HiIn"] = "hi-in";
|
|
11661
|
+
/** Query language value for Arabic (Saudi Arabia). */
|
|
11662
|
+
KnownQueryLanguage["ArSa"] = "ar-sa";
|
|
11663
|
+
/** Query language value for Arabic (Egypt). */
|
|
11664
|
+
KnownQueryLanguage["ArEg"] = "ar-eg";
|
|
11665
|
+
/** Query language value for Arabic (Morocco). */
|
|
11666
|
+
KnownQueryLanguage["ArMa"] = "ar-ma";
|
|
11667
|
+
/** Query language value for Arabic (Kuwait). */
|
|
11668
|
+
KnownQueryLanguage["ArKw"] = "ar-kw";
|
|
11669
|
+
/** Query language value for Arabic (Jordan). */
|
|
11670
|
+
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
11671
|
+
/** Query language value for Danish (Denmark). */
|
|
11672
|
+
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
11673
|
+
/** Query language value for Norwegian (Normway). */
|
|
11674
|
+
KnownQueryLanguage["NoNo"] = "no-no";
|
|
11675
|
+
/** Query language value for Bulgarian (Bulgary). */
|
|
11676
|
+
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
11677
|
+
/** Query language value for Croatian (Croatia). */
|
|
11678
|
+
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
11679
|
+
/** Query language value for Croatian (Bosnia and Herzegovina). */
|
|
11680
|
+
KnownQueryLanguage["HrBa"] = "hr-ba";
|
|
11681
|
+
/** Query language value for Malay (Malaysia). */
|
|
11682
|
+
KnownQueryLanguage["MsMy"] = "ms-my";
|
|
11683
|
+
/** Query language value for Malay (Brunei Darussalam). */
|
|
11684
|
+
KnownQueryLanguage["MsBn"] = "ms-bn";
|
|
11685
|
+
/** Query language value for Slovenian (Slovenia). */
|
|
11686
|
+
KnownQueryLanguage["SlSl"] = "sl-sl";
|
|
11687
|
+
/** Query language value for Tamil (India). */
|
|
11688
|
+
KnownQueryLanguage["TaIn"] = "ta-in";
|
|
11689
|
+
/** Query language value for Vietnamese (Viet Nam). */
|
|
11690
|
+
KnownQueryLanguage["ViVn"] = "vi-vn";
|
|
11691
|
+
/** Query language value for Greek (Greece). */
|
|
11692
|
+
KnownQueryLanguage["ElGr"] = "el-gr";
|
|
11693
|
+
/** Query language value for Romanian (Romania). */
|
|
11694
|
+
KnownQueryLanguage["RoRo"] = "ro-ro";
|
|
11695
|
+
/** Query language value for Icelandic (Iceland). */
|
|
11696
|
+
KnownQueryLanguage["IsIs"] = "is-is";
|
|
11697
|
+
/** Query language value for Indonesian (Indonesia). */
|
|
11698
|
+
KnownQueryLanguage["IdId"] = "id-id";
|
|
11699
|
+
/** Query language value for Thai (Thailand). */
|
|
11700
|
+
KnownQueryLanguage["ThTh"] = "th-th";
|
|
11701
|
+
/** Query language value for Lithuanian (Lithuania). */
|
|
11702
|
+
KnownQueryLanguage["LtLt"] = "lt-lt";
|
|
11703
|
+
/** Query language value for Ukrainian (Ukraine). */
|
|
11704
|
+
KnownQueryLanguage["UkUa"] = "uk-ua";
|
|
11705
|
+
/** Query language value for Latvian (Latvia). */
|
|
11706
|
+
KnownQueryLanguage["LvLv"] = "lv-lv";
|
|
11707
|
+
/** Query language value for Estonian (Estonia). */
|
|
11708
|
+
KnownQueryLanguage["EtEe"] = "et-ee";
|
|
11709
|
+
/** Query language value for Catalan (Spain). */
|
|
11710
|
+
KnownQueryLanguage["CaEs"] = "ca-es";
|
|
11711
|
+
/** Query language value for Finnish (Finland). */
|
|
11712
|
+
KnownQueryLanguage["FiFi"] = "fi-fi";
|
|
11713
|
+
/** Query language value for Serbian (Bosnia and Herzegovina). */
|
|
11714
|
+
KnownQueryLanguage["SrBa"] = "sr-ba";
|
|
11715
|
+
/** Query language value for Serbian (Montenegro). */
|
|
11716
|
+
KnownQueryLanguage["SrMe"] = "sr-me";
|
|
11717
|
+
/** Query language value for Serbian (Serbia). */
|
|
11718
|
+
KnownQueryLanguage["SrRs"] = "sr-rs";
|
|
11719
|
+
/** Query language value for Slovak (Slovakia). */
|
|
11720
|
+
KnownQueryLanguage["SkSk"] = "sk-sk";
|
|
11721
|
+
/** Query language value for Norwegian (Norway). */
|
|
11722
|
+
KnownQueryLanguage["NbNo"] = "nb-no";
|
|
11723
|
+
/** Query language value for Armenian (Armenia). */
|
|
11724
|
+
KnownQueryLanguage["HyAm"] = "hy-am";
|
|
11725
|
+
/** Query language value for Bengali (India). */
|
|
11726
|
+
KnownQueryLanguage["BnIn"] = "bn-in";
|
|
11727
|
+
/** Query language value for Basque (Spain). */
|
|
11728
|
+
KnownQueryLanguage["EuEs"] = "eu-es";
|
|
11729
|
+
/** Query language value for Galician (Spain). */
|
|
11730
|
+
KnownQueryLanguage["GlEs"] = "gl-es";
|
|
11731
|
+
/** Query language value for Gujarati (India). */
|
|
11732
|
+
KnownQueryLanguage["GuIn"] = "gu-in";
|
|
11733
|
+
/** Query language value for Hebrew (Israel). */
|
|
11734
|
+
KnownQueryLanguage["HeIl"] = "he-il";
|
|
11735
|
+
/** Query language value for Irish (Ireland). */
|
|
11736
|
+
KnownQueryLanguage["GaIe"] = "ga-ie";
|
|
11737
|
+
/** Query language value for Kannada (India). */
|
|
11738
|
+
KnownQueryLanguage["KnIn"] = "kn-in";
|
|
11739
|
+
/** Query language value for Malayalam (India). */
|
|
11740
|
+
KnownQueryLanguage["MlIn"] = "ml-in";
|
|
11741
|
+
/** Query language value for Marathi (India). */
|
|
11742
|
+
KnownQueryLanguage["MrIn"] = "mr-in";
|
|
11743
|
+
/** Query language value for Persian (U.A.E.). */
|
|
11744
|
+
KnownQueryLanguage["FaAe"] = "fa-ae";
|
|
11745
|
+
/** Query language value for Punjabi (India). */
|
|
11746
|
+
KnownQueryLanguage["PaIn"] = "pa-in";
|
|
11747
|
+
/** Query language value for Telugu (India). */
|
|
11748
|
+
KnownQueryLanguage["TeIn"] = "te-in";
|
|
11749
|
+
/** Query language value for Urdu (Pakistan). */
|
|
11750
|
+
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
11751
|
+
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
11752
|
+
(function (KnownSpeller) {
|
|
11753
|
+
/** Speller not enabled. */
|
|
11754
|
+
KnownSpeller["None"] = "none";
|
|
11755
|
+
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11756
|
+
KnownSpeller["Lexicon"] = "lexicon";
|
|
11757
|
+
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
11758
|
+
(function (KnownAnswers) {
|
|
11759
|
+
/** Do not return answers for the query. */
|
|
11760
|
+
KnownAnswers["None"] = "none";
|
|
11761
|
+
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11762
|
+
KnownAnswers["Extractive"] = "extractive";
|
|
11763
|
+
})(exports.KnownAnswers || (exports.KnownAnswers = {}));
|
|
11764
|
+
/** Known values of {@link Captions} that the service accepts. */
|
|
11765
|
+
var KnownCaptions;
|
|
11766
|
+
(function (KnownCaptions) {
|
|
11767
|
+
/** Do not return captions for the query. */
|
|
11768
|
+
KnownCaptions["None"] = "none";
|
|
11769
|
+
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11770
|
+
KnownCaptions["Extractive"] = "extractive";
|
|
11771
|
+
})(KnownCaptions || (KnownCaptions = {}));
|
|
11772
|
+
(function (KnownQuerySpellerType) {
|
|
11773
|
+
/** Speller not enabled. */
|
|
11774
|
+
KnownQuerySpellerType["None"] = "none";
|
|
11775
|
+
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11776
|
+
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
11777
|
+
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
11778
|
+
(function (KnownQueryAnswerType) {
|
|
11779
|
+
/** Do not return answers for the query. */
|
|
11780
|
+
KnownQueryAnswerType["None"] = "none";
|
|
11781
|
+
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11782
|
+
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
11783
|
+
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
11784
|
+
(function (KnownQueryCaptionType) {
|
|
11785
|
+
/** Do not return captions for the query. */
|
|
11786
|
+
KnownQueryCaptionType["None"] = "none";
|
|
11787
|
+
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11788
|
+
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
11789
|
+
})(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
|
|
11790
|
+
|
|
11791
|
+
/*
|
|
11792
|
+
* Copyright (c) Microsoft Corporation.
|
|
11793
|
+
* Licensed under the MIT License.
|
|
11794
|
+
*
|
|
11795
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
11796
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11797
|
+
*/
|
|
11798
|
+
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11799
|
+
var KnownApiVersion20210430Preview$1;
|
|
11800
|
+
(function (KnownApiVersion20210430Preview) {
|
|
11801
|
+
/** Api Version '2021-04-30-Preview' */
|
|
11802
|
+
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11803
|
+
})(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
|
|
11804
|
+
(function (KnownSearchIndexerDataSourceType) {
|
|
11805
|
+
/** Indicates an Azure SQL datasource. */
|
|
11806
|
+
KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
|
|
11807
|
+
/** Indicates a CosmosDB datasource. */
|
|
11808
|
+
KnownSearchIndexerDataSourceType["CosmosDb"] = "cosmosdb";
|
|
11809
|
+
/** Indicates an Azure Blob datasource. */
|
|
11810
|
+
KnownSearchIndexerDataSourceType["AzureBlob"] = "azureblob";
|
|
11811
|
+
/** Indicates an Azure Table datasource. */
|
|
11812
|
+
KnownSearchIndexerDataSourceType["AzureTable"] = "azuretable";
|
|
11813
|
+
/** Indicates a MySql datasource. */
|
|
11814
|
+
KnownSearchIndexerDataSourceType["MySql"] = "mysql";
|
|
11815
|
+
/** Indicates an ADLS Gen2 datasource. */
|
|
11816
|
+
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
11817
|
+
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
11818
|
+
(function (KnownBlobIndexerParsingMode) {
|
|
11819
|
+
/** Set to default for normal file processing. */
|
|
11820
|
+
KnownBlobIndexerParsingMode["Default"] = "default";
|
|
11821
|
+
/** Set to text to improve indexing performance on plain text files in blob storage. */
|
|
11822
|
+
KnownBlobIndexerParsingMode["Text"] = "text";
|
|
11823
|
+
/** Set to delimitedText when blobs are plain CSV files. */
|
|
11824
|
+
KnownBlobIndexerParsingMode["DelimitedText"] = "delimitedText";
|
|
11825
|
+
/** Set to json to extract structured content from JSON files. */
|
|
11826
|
+
KnownBlobIndexerParsingMode["Json"] = "json";
|
|
11827
|
+
/** Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. */
|
|
11828
|
+
KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
|
|
11829
|
+
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
|
|
11830
|
+
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
11831
|
+
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
11832
|
+
(function (KnownBlobIndexerDataToExtract) {
|
|
11833
|
+
/** Indexes just the standard blob properties and user-specified metadata. */
|
|
11834
|
+
KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
|
|
11835
|
+
/** Extracts metadata provided by the Azure blob storage subsystem and the content-type specific metadata (for example, metadata unique to just .png files are indexed). */
|
|
11836
|
+
KnownBlobIndexerDataToExtract["AllMetadata"] = "allMetadata";
|
|
11837
|
+
/** Extracts all metadata and textual content from each blob. */
|
|
11838
|
+
KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
|
|
11839
|
+
})(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
|
|
11840
|
+
(function (KnownBlobIndexerImageAction) {
|
|
11841
|
+
/** Ignores embedded images or image files in the data set. This is the default. */
|
|
11842
|
+
KnownBlobIndexerImageAction["None"] = "none";
|
|
11843
|
+
/** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field. This action requires that "dataToExtract" is set to "contentAndMetadata". A normalized image refers to additional processing resulting in uniform image output, sized and rotated to promote consistent rendering when you include images in visual search results. This information is generated for each image when you use this option. */
|
|
11844
|
+
KnownBlobIndexerImageAction["GenerateNormalizedImages"] = "generateNormalizedImages";
|
|
11845
|
+
/** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images. Non-PDF file types will be treated the same as if "generateNormalizedImages" was set. */
|
|
11846
|
+
KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
|
|
11847
|
+
})(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
|
|
11848
|
+
(function (KnownBlobIndexerPDFTextRotationAlgorithm) {
|
|
11849
|
+
/** Leverages normal text extraction. This is the default. */
|
|
11850
|
+
KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
|
|
11851
|
+
/** May produce better and more readable text extraction from PDF files that have rotated text within them. Note that there may be a small performance speed impact when this parameter is used. This parameter only applies to PDF files, and only to PDFs with embedded text. If the rotated text appears within an embedded image in the PDF, this parameter does not apply. */
|
|
11852
|
+
KnownBlobIndexerPDFTextRotationAlgorithm["DetectAngles"] = "detectAngles";
|
|
11853
|
+
})(exports.KnownBlobIndexerPDFTextRotationAlgorithm || (exports.KnownBlobIndexerPDFTextRotationAlgorithm = {}));
|
|
11854
|
+
/** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */
|
|
11855
|
+
var KnownIndexerExecutionEnvironment;
|
|
11856
|
+
(function (KnownIndexerExecutionEnvironment) {
|
|
11857
|
+
/** Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */
|
|
11858
|
+
KnownIndexerExecutionEnvironment["Standard"] = "standard";
|
|
11859
|
+
/** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
|
|
11860
|
+
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
11861
|
+
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
11862
|
+
(function (KnownIndexerExecutionStatusDetail) {
|
|
11863
|
+
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
11864
|
+
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
11865
|
+
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
11866
|
+
(function (KnownIndexingMode) {
|
|
11867
|
+
/** The indexer is indexing all documents in the datasource. */
|
|
11868
|
+
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
11869
|
+
/** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
|
|
11870
|
+
KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
|
|
11871
|
+
})(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
|
|
11872
|
+
/** Known values of {@link SearchFieldDataType} that the service accepts. */
|
|
11873
|
+
var KnownSearchFieldDataType;
|
|
11874
|
+
(function (KnownSearchFieldDataType) {
|
|
11875
|
+
/** Indicates that a field contains a string. */
|
|
11876
|
+
KnownSearchFieldDataType["String"] = "Edm.String";
|
|
11877
|
+
/** Indicates that a field contains a 32-bit signed integer. */
|
|
11878
|
+
KnownSearchFieldDataType["Int32"] = "Edm.Int32";
|
|
11879
|
+
/** Indicates that a field contains a 64-bit signed integer. */
|
|
11880
|
+
KnownSearchFieldDataType["Int64"] = "Edm.Int64";
|
|
11881
|
+
/** Indicates that a field contains an IEEE double-precision floating point number. */
|
|
11882
|
+
KnownSearchFieldDataType["Double"] = "Edm.Double";
|
|
11883
|
+
/** Indicates that a field contains a Boolean value (true or false). */
|
|
11884
|
+
KnownSearchFieldDataType["Boolean"] = "Edm.Boolean";
|
|
11885
|
+
/** Indicates that a field contains a date/time value, including timezone information. */
|
|
11886
|
+
KnownSearchFieldDataType["DateTimeOffset"] = "Edm.DateTimeOffset";
|
|
11887
|
+
/** Indicates that a field contains a geo-location in terms of longitude and latitude. */
|
|
11888
|
+
KnownSearchFieldDataType["GeographyPoint"] = "Edm.GeographyPoint";
|
|
11889
|
+
/** Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. */
|
|
11890
|
+
KnownSearchFieldDataType["Complex"] = "Edm.ComplexType";
|
|
11891
|
+
KnownSearchFieldDataType["CollectionEdmString"] = "Collection(Edm.String)";
|
|
11892
|
+
KnownSearchFieldDataType["CollectionEdmInt32"] = "Collection(Edm.Int32)";
|
|
11893
|
+
KnownSearchFieldDataType["CollectionEdmInt64"] = "Collection(Edm.Int64)";
|
|
11894
|
+
KnownSearchFieldDataType["CollectionEdmDouble"] = "Collection(Edm.Double)";
|
|
11895
|
+
KnownSearchFieldDataType["CollectionEdmBoolean"] = "Collection(Edm.Boolean)";
|
|
11896
|
+
KnownSearchFieldDataType["CollectionEdmDateTimeOffset"] = "Collection(Edm.DateTimeOffset)";
|
|
11897
|
+
KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
|
|
11898
|
+
KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
|
|
11899
|
+
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
11900
|
+
(function (KnownLexicalAnalyzerName) {
|
|
11901
|
+
/** Microsoft analyzer for Arabic. */
|
|
11902
|
+
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
11903
|
+
/** Lucene analyzer for Arabic. */
|
|
11904
|
+
KnownLexicalAnalyzerName["ArLucene"] = "ar.lucene";
|
|
11905
|
+
/** Lucene analyzer for Armenian. */
|
|
11906
|
+
KnownLexicalAnalyzerName["HyLucene"] = "hy.lucene";
|
|
11907
|
+
/** Microsoft analyzer for Bangla. */
|
|
11908
|
+
KnownLexicalAnalyzerName["BnMicrosoft"] = "bn.microsoft";
|
|
11909
|
+
/** Lucene analyzer for Basque. */
|
|
11910
|
+
KnownLexicalAnalyzerName["EuLucene"] = "eu.lucene";
|
|
11911
|
+
/** Microsoft analyzer for Bulgarian. */
|
|
11912
|
+
KnownLexicalAnalyzerName["BgMicrosoft"] = "bg.microsoft";
|
|
11913
|
+
/** Lucene analyzer for Bulgarian. */
|
|
11914
|
+
KnownLexicalAnalyzerName["BgLucene"] = "bg.lucene";
|
|
11915
|
+
/** Microsoft analyzer for Catalan. */
|
|
11916
|
+
KnownLexicalAnalyzerName["CaMicrosoft"] = "ca.microsoft";
|
|
11917
|
+
/** Lucene analyzer for Catalan. */
|
|
11918
|
+
KnownLexicalAnalyzerName["CaLucene"] = "ca.lucene";
|
|
11919
|
+
/** Microsoft analyzer for Chinese (Simplified). */
|
|
11920
|
+
KnownLexicalAnalyzerName["ZhHansMicrosoft"] = "zh-Hans.microsoft";
|
|
11921
|
+
/** Lucene analyzer for Chinese (Simplified). */
|
|
11922
|
+
KnownLexicalAnalyzerName["ZhHansLucene"] = "zh-Hans.lucene";
|
|
11923
|
+
/** Microsoft analyzer for Chinese (Traditional). */
|
|
11924
|
+
KnownLexicalAnalyzerName["ZhHantMicrosoft"] = "zh-Hant.microsoft";
|
|
11925
|
+
/** Lucene analyzer for Chinese (Traditional). */
|
|
11926
|
+
KnownLexicalAnalyzerName["ZhHantLucene"] = "zh-Hant.lucene";
|
|
11927
|
+
/** Microsoft analyzer for Croatian. */
|
|
11928
|
+
KnownLexicalAnalyzerName["HrMicrosoft"] = "hr.microsoft";
|
|
11929
|
+
/** Microsoft analyzer for Czech. */
|
|
11930
|
+
KnownLexicalAnalyzerName["CsMicrosoft"] = "cs.microsoft";
|
|
11931
|
+
/** Lucene analyzer for Czech. */
|
|
11932
|
+
KnownLexicalAnalyzerName["CsLucene"] = "cs.lucene";
|
|
11933
|
+
/** Microsoft analyzer for Danish. */
|
|
11934
|
+
KnownLexicalAnalyzerName["DaMicrosoft"] = "da.microsoft";
|
|
11935
|
+
/** Lucene analyzer for Danish. */
|
|
11936
|
+
KnownLexicalAnalyzerName["DaLucene"] = "da.lucene";
|
|
11937
|
+
/** Microsoft analyzer for Dutch. */
|
|
11938
|
+
KnownLexicalAnalyzerName["NlMicrosoft"] = "nl.microsoft";
|
|
11939
|
+
/** Lucene analyzer for Dutch. */
|
|
11940
|
+
KnownLexicalAnalyzerName["NlLucene"] = "nl.lucene";
|
|
11941
|
+
/** Microsoft analyzer for English. */
|
|
11942
|
+
KnownLexicalAnalyzerName["EnMicrosoft"] = "en.microsoft";
|
|
11943
|
+
/** Lucene analyzer for English. */
|
|
11944
|
+
KnownLexicalAnalyzerName["EnLucene"] = "en.lucene";
|
|
11945
|
+
/** Microsoft analyzer for Estonian. */
|
|
11946
|
+
KnownLexicalAnalyzerName["EtMicrosoft"] = "et.microsoft";
|
|
11947
|
+
/** Microsoft analyzer for Finnish. */
|
|
11948
|
+
KnownLexicalAnalyzerName["FiMicrosoft"] = "fi.microsoft";
|
|
11949
|
+
/** Lucene analyzer for Finnish. */
|
|
11950
|
+
KnownLexicalAnalyzerName["FiLucene"] = "fi.lucene";
|
|
11951
|
+
/** Microsoft analyzer for French. */
|
|
11952
|
+
KnownLexicalAnalyzerName["FrMicrosoft"] = "fr.microsoft";
|
|
11953
|
+
/** Lucene analyzer for French. */
|
|
11954
|
+
KnownLexicalAnalyzerName["FrLucene"] = "fr.lucene";
|
|
11955
|
+
/** Lucene analyzer for Galician. */
|
|
11956
|
+
KnownLexicalAnalyzerName["GlLucene"] = "gl.lucene";
|
|
11957
|
+
/** Microsoft analyzer for German. */
|
|
11958
|
+
KnownLexicalAnalyzerName["DeMicrosoft"] = "de.microsoft";
|
|
11959
|
+
/** Lucene analyzer for German. */
|
|
11960
|
+
KnownLexicalAnalyzerName["DeLucene"] = "de.lucene";
|
|
11961
|
+
/** Microsoft analyzer for Greek. */
|
|
11962
|
+
KnownLexicalAnalyzerName["ElMicrosoft"] = "el.microsoft";
|
|
11963
|
+
/** Lucene analyzer for Greek. */
|
|
11964
|
+
KnownLexicalAnalyzerName["ElLucene"] = "el.lucene";
|
|
11965
|
+
/** Microsoft analyzer for Gujarati. */
|
|
11966
|
+
KnownLexicalAnalyzerName["GuMicrosoft"] = "gu.microsoft";
|
|
11967
|
+
/** Microsoft analyzer for Hebrew. */
|
|
11968
|
+
KnownLexicalAnalyzerName["HeMicrosoft"] = "he.microsoft";
|
|
11969
|
+
/** Microsoft analyzer for Hindi. */
|
|
11970
|
+
KnownLexicalAnalyzerName["HiMicrosoft"] = "hi.microsoft";
|
|
11971
|
+
/** Lucene analyzer for Hindi. */
|
|
11972
|
+
KnownLexicalAnalyzerName["HiLucene"] = "hi.lucene";
|
|
11973
|
+
/** Microsoft analyzer for Hungarian. */
|
|
11974
|
+
KnownLexicalAnalyzerName["HuMicrosoft"] = "hu.microsoft";
|
|
11975
|
+
/** Lucene analyzer for Hungarian. */
|
|
11976
|
+
KnownLexicalAnalyzerName["HuLucene"] = "hu.lucene";
|
|
11977
|
+
/** Microsoft analyzer for Icelandic. */
|
|
11978
|
+
KnownLexicalAnalyzerName["IsMicrosoft"] = "is.microsoft";
|
|
11979
|
+
/** Microsoft analyzer for Indonesian (Bahasa). */
|
|
11980
|
+
KnownLexicalAnalyzerName["IdMicrosoft"] = "id.microsoft";
|
|
11981
|
+
/** Lucene analyzer for Indonesian. */
|
|
11982
|
+
KnownLexicalAnalyzerName["IdLucene"] = "id.lucene";
|
|
11983
|
+
/** Lucene analyzer for Irish. */
|
|
11984
|
+
KnownLexicalAnalyzerName["GaLucene"] = "ga.lucene";
|
|
11985
|
+
/** Microsoft analyzer for Italian. */
|
|
11986
|
+
KnownLexicalAnalyzerName["ItMicrosoft"] = "it.microsoft";
|
|
11987
|
+
/** Lucene analyzer for Italian. */
|
|
11988
|
+
KnownLexicalAnalyzerName["ItLucene"] = "it.lucene";
|
|
11989
|
+
/** Microsoft analyzer for Japanese. */
|
|
11990
|
+
KnownLexicalAnalyzerName["JaMicrosoft"] = "ja.microsoft";
|
|
11991
|
+
/** Lucene analyzer for Japanese. */
|
|
11992
|
+
KnownLexicalAnalyzerName["JaLucene"] = "ja.lucene";
|
|
11993
|
+
/** Microsoft analyzer for Kannada. */
|
|
11994
|
+
KnownLexicalAnalyzerName["KnMicrosoft"] = "kn.microsoft";
|
|
11995
|
+
/** Microsoft analyzer for Korean. */
|
|
11996
|
+
KnownLexicalAnalyzerName["KoMicrosoft"] = "ko.microsoft";
|
|
11997
|
+
/** Lucene analyzer for Korean. */
|
|
11998
|
+
KnownLexicalAnalyzerName["KoLucene"] = "ko.lucene";
|
|
11999
|
+
/** Microsoft analyzer for Latvian. */
|
|
12000
|
+
KnownLexicalAnalyzerName["LvMicrosoft"] = "lv.microsoft";
|
|
12001
|
+
/** Lucene analyzer for Latvian. */
|
|
12002
|
+
KnownLexicalAnalyzerName["LvLucene"] = "lv.lucene";
|
|
12003
|
+
/** Microsoft analyzer for Lithuanian. */
|
|
12004
|
+
KnownLexicalAnalyzerName["LtMicrosoft"] = "lt.microsoft";
|
|
12005
|
+
/** Microsoft analyzer for Malayalam. */
|
|
12006
|
+
KnownLexicalAnalyzerName["MlMicrosoft"] = "ml.microsoft";
|
|
12007
|
+
/** Microsoft analyzer for Malay (Latin). */
|
|
12008
|
+
KnownLexicalAnalyzerName["MsMicrosoft"] = "ms.microsoft";
|
|
12009
|
+
/** Microsoft analyzer for Marathi. */
|
|
12010
|
+
KnownLexicalAnalyzerName["MrMicrosoft"] = "mr.microsoft";
|
|
12011
|
+
/** Microsoft analyzer for Norwegian (Bokmål). */
|
|
12012
|
+
KnownLexicalAnalyzerName["NbMicrosoft"] = "nb.microsoft";
|
|
12013
|
+
/** Lucene analyzer for Norwegian. */
|
|
12014
|
+
KnownLexicalAnalyzerName["NoLucene"] = "no.lucene";
|
|
12015
|
+
/** Lucene analyzer for Persian. */
|
|
12016
|
+
KnownLexicalAnalyzerName["FaLucene"] = "fa.lucene";
|
|
12017
|
+
/** Microsoft analyzer for Polish. */
|
|
12018
|
+
KnownLexicalAnalyzerName["PlMicrosoft"] = "pl.microsoft";
|
|
12019
|
+
/** Lucene analyzer for Polish. */
|
|
12020
|
+
KnownLexicalAnalyzerName["PlLucene"] = "pl.lucene";
|
|
12021
|
+
/** Microsoft analyzer for Portuguese (Brazil). */
|
|
12022
|
+
KnownLexicalAnalyzerName["PtBrMicrosoft"] = "pt-BR.microsoft";
|
|
12023
|
+
/** Lucene analyzer for Portuguese (Brazil). */
|
|
12024
|
+
KnownLexicalAnalyzerName["PtBrLucene"] = "pt-BR.lucene";
|
|
12025
|
+
/** Microsoft analyzer for Portuguese (Portugal). */
|
|
12026
|
+
KnownLexicalAnalyzerName["PtPtMicrosoft"] = "pt-PT.microsoft";
|
|
12027
|
+
/** Lucene analyzer for Portuguese (Portugal). */
|
|
12028
|
+
KnownLexicalAnalyzerName["PtPtLucene"] = "pt-PT.lucene";
|
|
12029
|
+
/** Microsoft analyzer for Punjabi. */
|
|
12030
|
+
KnownLexicalAnalyzerName["PaMicrosoft"] = "pa.microsoft";
|
|
12031
|
+
/** Microsoft analyzer for Romanian. */
|
|
12032
|
+
KnownLexicalAnalyzerName["RoMicrosoft"] = "ro.microsoft";
|
|
12033
|
+
/** Lucene analyzer for Romanian. */
|
|
12034
|
+
KnownLexicalAnalyzerName["RoLucene"] = "ro.lucene";
|
|
12035
|
+
/** Microsoft analyzer for Russian. */
|
|
12036
|
+
KnownLexicalAnalyzerName["RuMicrosoft"] = "ru.microsoft";
|
|
12037
|
+
/** Lucene analyzer for Russian. */
|
|
12038
|
+
KnownLexicalAnalyzerName["RuLucene"] = "ru.lucene";
|
|
12039
|
+
/** Microsoft analyzer for Serbian (Cyrillic). */
|
|
12040
|
+
KnownLexicalAnalyzerName["SrCyrillicMicrosoft"] = "sr-cyrillic.microsoft";
|
|
12041
|
+
/** Microsoft analyzer for Serbian (Latin). */
|
|
12042
|
+
KnownLexicalAnalyzerName["SrLatinMicrosoft"] = "sr-latin.microsoft";
|
|
12043
|
+
/** Microsoft analyzer for Slovak. */
|
|
12044
|
+
KnownLexicalAnalyzerName["SkMicrosoft"] = "sk.microsoft";
|
|
12045
|
+
/** Microsoft analyzer for Slovenian. */
|
|
12046
|
+
KnownLexicalAnalyzerName["SlMicrosoft"] = "sl.microsoft";
|
|
12047
|
+
/** Microsoft analyzer for Spanish. */
|
|
12048
|
+
KnownLexicalAnalyzerName["EsMicrosoft"] = "es.microsoft";
|
|
12049
|
+
/** Lucene analyzer for Spanish. */
|
|
12050
|
+
KnownLexicalAnalyzerName["EsLucene"] = "es.lucene";
|
|
12051
|
+
/** Microsoft analyzer for Swedish. */
|
|
12052
|
+
KnownLexicalAnalyzerName["SvMicrosoft"] = "sv.microsoft";
|
|
12053
|
+
/** Lucene analyzer for Swedish. */
|
|
12054
|
+
KnownLexicalAnalyzerName["SvLucene"] = "sv.lucene";
|
|
12055
|
+
/** Microsoft analyzer for Tamil. */
|
|
12056
|
+
KnownLexicalAnalyzerName["TaMicrosoft"] = "ta.microsoft";
|
|
12057
|
+
/** Microsoft analyzer for Telugu. */
|
|
12058
|
+
KnownLexicalAnalyzerName["TeMicrosoft"] = "te.microsoft";
|
|
12059
|
+
/** Microsoft analyzer for Thai. */
|
|
12060
|
+
KnownLexicalAnalyzerName["ThMicrosoft"] = "th.microsoft";
|
|
12061
|
+
/** Lucene analyzer for Thai. */
|
|
12062
|
+
KnownLexicalAnalyzerName["ThLucene"] = "th.lucene";
|
|
12063
|
+
/** Microsoft analyzer for Turkish. */
|
|
12064
|
+
KnownLexicalAnalyzerName["TrMicrosoft"] = "tr.microsoft";
|
|
12065
|
+
/** Lucene analyzer for Turkish. */
|
|
12066
|
+
KnownLexicalAnalyzerName["TrLucene"] = "tr.lucene";
|
|
12067
|
+
/** Microsoft analyzer for Ukrainian. */
|
|
12068
|
+
KnownLexicalAnalyzerName["UkMicrosoft"] = "uk.microsoft";
|
|
12069
|
+
/** Microsoft analyzer for Urdu. */
|
|
12070
|
+
KnownLexicalAnalyzerName["UrMicrosoft"] = "ur.microsoft";
|
|
12071
|
+
/** Microsoft analyzer for Vietnamese. */
|
|
12072
|
+
KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
|
|
12073
|
+
/** Standard Lucene analyzer. */
|
|
12074
|
+
KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
|
|
12075
|
+
/** Standard ASCII Folding Lucene analyzer. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#Analyzers */
|
|
12076
|
+
KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
|
|
12077
|
+
/** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordAnalyzer.html */
|
|
12078
|
+
KnownLexicalAnalyzerName["Keyword"] = "keyword";
|
|
12079
|
+
/** Flexibly separates text into terms via a regular expression pattern. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/PatternAnalyzer.html */
|
|
12080
|
+
KnownLexicalAnalyzerName["Pattern"] = "pattern";
|
|
12081
|
+
/** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/SimpleAnalyzer.html */
|
|
12082
|
+
KnownLexicalAnalyzerName["Simple"] = "simple";
|
|
12083
|
+
/** Divides text at non-letters; Applies the lowercase and stopword token filters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html */
|
|
12084
|
+
KnownLexicalAnalyzerName["Stop"] = "stop";
|
|
12085
|
+
/** An analyzer that uses the whitespace tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceAnalyzer.html */
|
|
12086
|
+
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
12087
|
+
})(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
|
|
12088
|
+
(function (KnownLexicalNormalizerName) {
|
|
12089
|
+
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
|
|
12090
|
+
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
12091
|
+
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
|
|
12092
|
+
KnownLexicalNormalizerName["Elision"] = "elision";
|
|
12093
|
+
/** Normalizes token text to lowercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
|
|
12094
|
+
KnownLexicalNormalizerName["Lowercase"] = "lowercase";
|
|
12095
|
+
/** Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
|
|
12096
|
+
KnownLexicalNormalizerName["Standard"] = "standard";
|
|
12097
|
+
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
12098
|
+
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
12099
|
+
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
12100
|
+
(function (KnownTokenFilterName) {
|
|
12101
|
+
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */
|
|
12102
|
+
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
12103
|
+
/** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */
|
|
12104
|
+
KnownTokenFilterName["Apostrophe"] = "apostrophe";
|
|
12105
|
+
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
|
|
12106
|
+
KnownTokenFilterName["AsciiFolding"] = "asciifolding";
|
|
12107
|
+
/** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */
|
|
12108
|
+
KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
|
|
12109
|
+
/** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html */
|
|
12110
|
+
KnownTokenFilterName["CjkWidth"] = "cjk_width";
|
|
12111
|
+
/** Removes English possessives, and dots from acronyms. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html */
|
|
12112
|
+
KnownTokenFilterName["Classic"] = "classic";
|
|
12113
|
+
/** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html */
|
|
12114
|
+
KnownTokenFilterName["CommonGram"] = "common_grams";
|
|
12115
|
+
/** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html */
|
|
12116
|
+
KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
|
|
12117
|
+
/** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
|
|
12118
|
+
KnownTokenFilterName["Elision"] = "elision";
|
|
12119
|
+
/** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html */
|
|
12120
|
+
KnownTokenFilterName["GermanNormalization"] = "german_normalization";
|
|
12121
|
+
/** Normalizes text in Hindi to remove some differences in spelling variations. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html */
|
|
12122
|
+
KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
|
|
12123
|
+
/** Normalizes the Unicode representation of text in Indian languages. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html */
|
|
12124
|
+
KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
|
|
12125
|
+
/** Emits each incoming token twice, once as keyword and once as non-keyword. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html */
|
|
12126
|
+
KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
|
|
12127
|
+
/** A high-performance kstem filter for English. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html */
|
|
12128
|
+
KnownTokenFilterName["KStem"] = "kstem";
|
|
12129
|
+
/** Removes words that are too long or too short. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html */
|
|
12130
|
+
KnownTokenFilterName["Length"] = "length";
|
|
12131
|
+
/** Limits the number of tokens while indexing. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html */
|
|
12132
|
+
KnownTokenFilterName["Limit"] = "limit";
|
|
12133
|
+
/** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
|
|
12134
|
+
KnownTokenFilterName["Lowercase"] = "lowercase";
|
|
12135
|
+
/** Generates n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html */
|
|
12136
|
+
KnownTokenFilterName["NGram"] = "nGram_v2";
|
|
12137
|
+
/** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */
|
|
12138
|
+
KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
|
|
12139
|
+
/** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */
|
|
12140
|
+
KnownTokenFilterName["Phonetic"] = "phonetic";
|
|
12141
|
+
/** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */
|
|
12142
|
+
KnownTokenFilterName["PorterStem"] = "porter_stem";
|
|
12143
|
+
/** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
|
|
12144
|
+
KnownTokenFilterName["Reverse"] = "reverse";
|
|
12145
|
+
/** Normalizes use of the interchangeable Scandinavian characters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html */
|
|
12146
|
+
KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
|
|
12147
|
+
/** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html */
|
|
12148
|
+
KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
|
|
12149
|
+
/** Creates combinations of tokens as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html */
|
|
12150
|
+
KnownTokenFilterName["Shingle"] = "shingle";
|
|
12151
|
+
/** A filter that stems words using a Snowball-generated stemmer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html */
|
|
12152
|
+
KnownTokenFilterName["Snowball"] = "snowball";
|
|
12153
|
+
/** Normalizes the Unicode representation of Sorani text. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html */
|
|
12154
|
+
KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
|
|
12155
|
+
/** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */
|
|
12156
|
+
KnownTokenFilterName["Stemmer"] = "stemmer";
|
|
12157
|
+
/** Removes stop words from a token stream. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html */
|
|
12158
|
+
KnownTokenFilterName["Stopwords"] = "stopwords";
|
|
12159
|
+
/** Trims leading and trailing whitespace from tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html */
|
|
12160
|
+
KnownTokenFilterName["Trim"] = "trim";
|
|
12161
|
+
/** Truncates the terms to a specific length. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html */
|
|
12162
|
+
KnownTokenFilterName["Truncate"] = "truncate";
|
|
12163
|
+
/** Filters out tokens with same text as the previous token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html */
|
|
12164
|
+
KnownTokenFilterName["Unique"] = "unique";
|
|
12165
|
+
/** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
12166
|
+
KnownTokenFilterName["Uppercase"] = "uppercase";
|
|
12167
|
+
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
12168
|
+
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
12169
|
+
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
12170
|
+
(function (KnownCharFilterName) {
|
|
12171
|
+
/** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */
|
|
12172
|
+
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
12173
|
+
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
12174
|
+
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
12175
|
+
/** Danish */
|
|
12176
|
+
KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
|
|
12177
|
+
/** Dutch */
|
|
12178
|
+
KnownKeyPhraseExtractionSkillLanguage["Nl"] = "nl";
|
|
12179
|
+
/** English */
|
|
12180
|
+
KnownKeyPhraseExtractionSkillLanguage["En"] = "en";
|
|
12181
|
+
/** Finnish */
|
|
12182
|
+
KnownKeyPhraseExtractionSkillLanguage["Fi"] = "fi";
|
|
12183
|
+
/** French */
|
|
12184
|
+
KnownKeyPhraseExtractionSkillLanguage["Fr"] = "fr";
|
|
12185
|
+
/** German */
|
|
12186
|
+
KnownKeyPhraseExtractionSkillLanguage["De"] = "de";
|
|
12187
|
+
/** Italian */
|
|
12188
|
+
KnownKeyPhraseExtractionSkillLanguage["It"] = "it";
|
|
12189
|
+
/** Japanese */
|
|
12190
|
+
KnownKeyPhraseExtractionSkillLanguage["Ja"] = "ja";
|
|
12191
|
+
/** Korean */
|
|
12192
|
+
KnownKeyPhraseExtractionSkillLanguage["Ko"] = "ko";
|
|
12193
|
+
/** Norwegian (Bokmaal) */
|
|
12194
|
+
KnownKeyPhraseExtractionSkillLanguage["No"] = "no";
|
|
12195
|
+
/** Polish */
|
|
12196
|
+
KnownKeyPhraseExtractionSkillLanguage["Pl"] = "pl";
|
|
12197
|
+
/** Portuguese (Portugal) */
|
|
12198
|
+
KnownKeyPhraseExtractionSkillLanguage["PtPT"] = "pt-PT";
|
|
12199
|
+
/** Portuguese (Brazil) */
|
|
12200
|
+
KnownKeyPhraseExtractionSkillLanguage["PtBR"] = "pt-BR";
|
|
12201
|
+
/** Russian */
|
|
12202
|
+
KnownKeyPhraseExtractionSkillLanguage["Ru"] = "ru";
|
|
12203
|
+
/** Spanish */
|
|
12204
|
+
KnownKeyPhraseExtractionSkillLanguage["Es"] = "es";
|
|
12205
|
+
/** Swedish */
|
|
12206
|
+
KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
|
|
12207
|
+
})(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
|
|
12208
|
+
(function (KnownOcrSkillLanguage) {
|
|
12209
|
+
/** Chinese-Simplified */
|
|
12210
|
+
KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
|
|
12211
|
+
/** Chinese-Traditional */
|
|
12212
|
+
KnownOcrSkillLanguage["ZhHant"] = "zh-Hant";
|
|
12213
|
+
/** Czech */
|
|
12214
|
+
KnownOcrSkillLanguage["Cs"] = "cs";
|
|
12215
|
+
/** Danish */
|
|
12216
|
+
KnownOcrSkillLanguage["Da"] = "da";
|
|
12217
|
+
/** Dutch */
|
|
12218
|
+
KnownOcrSkillLanguage["Nl"] = "nl";
|
|
12219
|
+
/** English */
|
|
12220
|
+
KnownOcrSkillLanguage["En"] = "en";
|
|
12221
|
+
/** Finnish */
|
|
12222
|
+
KnownOcrSkillLanguage["Fi"] = "fi";
|
|
12223
|
+
/** French */
|
|
12224
|
+
KnownOcrSkillLanguage["Fr"] = "fr";
|
|
12225
|
+
/** German */
|
|
12226
|
+
KnownOcrSkillLanguage["De"] = "de";
|
|
12227
|
+
/** Greek */
|
|
12228
|
+
KnownOcrSkillLanguage["El"] = "el";
|
|
12229
|
+
/** Hungarian */
|
|
12230
|
+
KnownOcrSkillLanguage["Hu"] = "hu";
|
|
12231
|
+
/** Italian */
|
|
12232
|
+
KnownOcrSkillLanguage["It"] = "it";
|
|
12233
|
+
/** Japanese */
|
|
12234
|
+
KnownOcrSkillLanguage["Ja"] = "ja";
|
|
12235
|
+
/** Korean */
|
|
12236
|
+
KnownOcrSkillLanguage["Ko"] = "ko";
|
|
12237
|
+
/** Norwegian (Bokmaal) */
|
|
12238
|
+
KnownOcrSkillLanguage["Nb"] = "nb";
|
|
12239
|
+
/** Polish */
|
|
12240
|
+
KnownOcrSkillLanguage["Pl"] = "pl";
|
|
12241
|
+
/** Portuguese */
|
|
12242
|
+
KnownOcrSkillLanguage["Pt"] = "pt";
|
|
12243
|
+
/** Russian */
|
|
12244
|
+
KnownOcrSkillLanguage["Ru"] = "ru";
|
|
12245
|
+
/** Spanish */
|
|
12246
|
+
KnownOcrSkillLanguage["Es"] = "es";
|
|
12247
|
+
/** Swedish */
|
|
12248
|
+
KnownOcrSkillLanguage["Sv"] = "sv";
|
|
12249
|
+
/** Turkish */
|
|
12250
|
+
KnownOcrSkillLanguage["Tr"] = "tr";
|
|
12251
|
+
/** Arabic */
|
|
12252
|
+
KnownOcrSkillLanguage["Ar"] = "ar";
|
|
12253
|
+
/** Romanian */
|
|
12254
|
+
KnownOcrSkillLanguage["Ro"] = "ro";
|
|
12255
|
+
/** Serbian (Cyrillic, Serbia) */
|
|
12256
|
+
KnownOcrSkillLanguage["SrCyrl"] = "sr-Cyrl";
|
|
12257
|
+
/** Serbian (Latin, Serbia) */
|
|
12258
|
+
KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
|
|
12259
|
+
/** Slovak */
|
|
12260
|
+
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12261
|
+
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12262
|
+
(function (KnownLineEnding) {
|
|
12263
|
+
/** Lines are separated by a single space character. */
|
|
12264
|
+
KnownLineEnding["Space"] = "space";
|
|
12265
|
+
/** Lines are separated by a carriage return ('\r') character. */
|
|
12266
|
+
KnownLineEnding["CarriageReturn"] = "carriageReturn";
|
|
12267
|
+
/** Lines are separated by a single line feed ('\n') character. */
|
|
12268
|
+
KnownLineEnding["LineFeed"] = "lineFeed";
|
|
12269
|
+
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
12270
|
+
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
12271
|
+
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
12272
|
+
(function (KnownImageAnalysisSkillLanguage) {
|
|
12273
|
+
/** English */
|
|
12274
|
+
KnownImageAnalysisSkillLanguage["En"] = "en";
|
|
12275
|
+
/** Spanish */
|
|
12276
|
+
KnownImageAnalysisSkillLanguage["Es"] = "es";
|
|
12277
|
+
/** Japanese */
|
|
12278
|
+
KnownImageAnalysisSkillLanguage["Ja"] = "ja";
|
|
12279
|
+
/** Portuguese */
|
|
12280
|
+
KnownImageAnalysisSkillLanguage["Pt"] = "pt";
|
|
12281
|
+
/** Chinese */
|
|
12282
|
+
KnownImageAnalysisSkillLanguage["Zh"] = "zh";
|
|
12283
|
+
})(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
|
|
12284
|
+
(function (KnownVisualFeature) {
|
|
12285
|
+
/** Visual features recognized as adult persons. */
|
|
12286
|
+
KnownVisualFeature["Adult"] = "adult";
|
|
12287
|
+
/** Visual features recognized as commercial brands. */
|
|
12288
|
+
KnownVisualFeature["Brands"] = "brands";
|
|
12289
|
+
/** Categories. */
|
|
12290
|
+
KnownVisualFeature["Categories"] = "categories";
|
|
12291
|
+
/** Description. */
|
|
12292
|
+
KnownVisualFeature["Description"] = "description";
|
|
12293
|
+
/** Visual features recognized as people faces. */
|
|
12294
|
+
KnownVisualFeature["Faces"] = "faces";
|
|
12295
|
+
/** Visual features recognized as objects. */
|
|
12296
|
+
KnownVisualFeature["Objects"] = "objects";
|
|
12297
|
+
/** Tags. */
|
|
12298
|
+
KnownVisualFeature["Tags"] = "tags";
|
|
12299
|
+
})(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
|
|
12300
|
+
(function (KnownImageDetail) {
|
|
12301
|
+
/** Details recognized as celebrities. */
|
|
12302
|
+
KnownImageDetail["Celebrities"] = "celebrities";
|
|
12303
|
+
/** Details recognized as landmarks. */
|
|
12304
|
+
KnownImageDetail["Landmarks"] = "landmarks";
|
|
12305
|
+
})(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
|
|
12306
|
+
(function (KnownEntityCategory) {
|
|
12307
|
+
/** Entities describing a physical location. */
|
|
12308
|
+
KnownEntityCategory["Location"] = "location";
|
|
12309
|
+
/** Entities describing an organization. */
|
|
12310
|
+
KnownEntityCategory["Organization"] = "organization";
|
|
12311
|
+
/** Entities describing a person. */
|
|
12312
|
+
KnownEntityCategory["Person"] = "person";
|
|
12313
|
+
/** Entities describing a quantity. */
|
|
12314
|
+
KnownEntityCategory["Quantity"] = "quantity";
|
|
12315
|
+
/** Entities describing a date and time. */
|
|
12316
|
+
KnownEntityCategory["Datetime"] = "datetime";
|
|
12317
|
+
/** Entities describing a URL. */
|
|
12318
|
+
KnownEntityCategory["Url"] = "url";
|
|
12319
|
+
/** Entities describing an email address. */
|
|
12320
|
+
KnownEntityCategory["Email"] = "email";
|
|
12321
|
+
})(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
|
|
12322
|
+
(function (KnownEntityRecognitionSkillLanguage) {
|
|
12323
|
+
/** Arabic */
|
|
12324
|
+
KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
|
|
12325
|
+
/** Czech */
|
|
12326
|
+
KnownEntityRecognitionSkillLanguage["Cs"] = "cs";
|
|
12327
|
+
/** Chinese-Simplified */
|
|
12328
|
+
KnownEntityRecognitionSkillLanguage["ZhHans"] = "zh-Hans";
|
|
12329
|
+
/** Chinese-Traditional */
|
|
12330
|
+
KnownEntityRecognitionSkillLanguage["ZhHant"] = "zh-Hant";
|
|
12331
|
+
/** Danish */
|
|
12332
|
+
KnownEntityRecognitionSkillLanguage["Da"] = "da";
|
|
12333
|
+
/** Dutch */
|
|
12334
|
+
KnownEntityRecognitionSkillLanguage["Nl"] = "nl";
|
|
12335
|
+
/** English */
|
|
12336
|
+
KnownEntityRecognitionSkillLanguage["En"] = "en";
|
|
12337
|
+
/** Finnish */
|
|
12338
|
+
KnownEntityRecognitionSkillLanguage["Fi"] = "fi";
|
|
12339
|
+
/** French */
|
|
12340
|
+
KnownEntityRecognitionSkillLanguage["Fr"] = "fr";
|
|
12341
|
+
/** German */
|
|
12342
|
+
KnownEntityRecognitionSkillLanguage["De"] = "de";
|
|
12343
|
+
/** Greek */
|
|
12344
|
+
KnownEntityRecognitionSkillLanguage["El"] = "el";
|
|
12345
|
+
/** Hungarian */
|
|
12346
|
+
KnownEntityRecognitionSkillLanguage["Hu"] = "hu";
|
|
12347
|
+
/** Italian */
|
|
12348
|
+
KnownEntityRecognitionSkillLanguage["It"] = "it";
|
|
12349
|
+
/** Japanese */
|
|
12350
|
+
KnownEntityRecognitionSkillLanguage["Ja"] = "ja";
|
|
12351
|
+
/** Korean */
|
|
12352
|
+
KnownEntityRecognitionSkillLanguage["Ko"] = "ko";
|
|
12353
|
+
/** Norwegian (Bokmaal) */
|
|
12354
|
+
KnownEntityRecognitionSkillLanguage["No"] = "no";
|
|
12355
|
+
/** Polish */
|
|
12356
|
+
KnownEntityRecognitionSkillLanguage["Pl"] = "pl";
|
|
12357
|
+
/** Portuguese (Portugal) */
|
|
12358
|
+
KnownEntityRecognitionSkillLanguage["PtPT"] = "pt-PT";
|
|
12359
|
+
/** Portuguese (Brazil) */
|
|
12360
|
+
KnownEntityRecognitionSkillLanguage["PtBR"] = "pt-BR";
|
|
12361
|
+
/** Russian */
|
|
12362
|
+
KnownEntityRecognitionSkillLanguage["Ru"] = "ru";
|
|
12363
|
+
/** Spanish */
|
|
12364
|
+
KnownEntityRecognitionSkillLanguage["Es"] = "es";
|
|
12365
|
+
/** Swedish */
|
|
12366
|
+
KnownEntityRecognitionSkillLanguage["Sv"] = "sv";
|
|
12367
|
+
/** Turkish */
|
|
12368
|
+
KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
|
|
12369
|
+
})(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
|
|
12370
|
+
(function (KnownSentimentSkillLanguage) {
|
|
12371
|
+
/** Danish */
|
|
12372
|
+
KnownSentimentSkillLanguage["Da"] = "da";
|
|
12373
|
+
/** Dutch */
|
|
12374
|
+
KnownSentimentSkillLanguage["Nl"] = "nl";
|
|
12375
|
+
/** English */
|
|
12376
|
+
KnownSentimentSkillLanguage["En"] = "en";
|
|
12377
|
+
/** Finnish */
|
|
12378
|
+
KnownSentimentSkillLanguage["Fi"] = "fi";
|
|
12379
|
+
/** French */
|
|
12380
|
+
KnownSentimentSkillLanguage["Fr"] = "fr";
|
|
12381
|
+
/** German */
|
|
12382
|
+
KnownSentimentSkillLanguage["De"] = "de";
|
|
12383
|
+
/** Greek */
|
|
12384
|
+
KnownSentimentSkillLanguage["El"] = "el";
|
|
12385
|
+
/** Italian */
|
|
12386
|
+
KnownSentimentSkillLanguage["It"] = "it";
|
|
12387
|
+
/** Norwegian (Bokmaal) */
|
|
12388
|
+
KnownSentimentSkillLanguage["No"] = "no";
|
|
12389
|
+
/** Polish */
|
|
12390
|
+
KnownSentimentSkillLanguage["Pl"] = "pl";
|
|
12391
|
+
/** Portuguese (Portugal) */
|
|
12392
|
+
KnownSentimentSkillLanguage["PtPT"] = "pt-PT";
|
|
12393
|
+
/** Russian */
|
|
12394
|
+
KnownSentimentSkillLanguage["Ru"] = "ru";
|
|
12395
|
+
/** Spanish */
|
|
12396
|
+
KnownSentimentSkillLanguage["Es"] = "es";
|
|
12397
|
+
/** Swedish */
|
|
12398
|
+
KnownSentimentSkillLanguage["Sv"] = "sv";
|
|
12399
|
+
/** Turkish */
|
|
12400
|
+
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
12401
|
+
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
12402
|
+
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
12403
|
+
/** No masking occurs and the maskedText output will not be returned. */
|
|
12404
|
+
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
12405
|
+
/** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */
|
|
12406
|
+
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
12407
|
+
})(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
|
|
12408
|
+
(function (KnownSplitSkillLanguage) {
|
|
12409
|
+
/** Danish */
|
|
12410
|
+
KnownSplitSkillLanguage["Da"] = "da";
|
|
12411
|
+
/** German */
|
|
12412
|
+
KnownSplitSkillLanguage["De"] = "de";
|
|
12413
|
+
/** English */
|
|
12414
|
+
KnownSplitSkillLanguage["En"] = "en";
|
|
12415
|
+
/** Spanish */
|
|
12416
|
+
KnownSplitSkillLanguage["Es"] = "es";
|
|
12417
|
+
/** Finnish */
|
|
12418
|
+
KnownSplitSkillLanguage["Fi"] = "fi";
|
|
12419
|
+
/** French */
|
|
12420
|
+
KnownSplitSkillLanguage["Fr"] = "fr";
|
|
12421
|
+
/** Italian */
|
|
12422
|
+
KnownSplitSkillLanguage["It"] = "it";
|
|
12423
|
+
/** Korean */
|
|
12424
|
+
KnownSplitSkillLanguage["Ko"] = "ko";
|
|
12425
|
+
/** Portuguese */
|
|
12426
|
+
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12427
|
+
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
12428
|
+
(function (KnownTextSplitMode) {
|
|
12429
|
+
/** Split the text into individual pages. */
|
|
12430
|
+
KnownTextSplitMode["Pages"] = "pages";
|
|
12431
|
+
/** Split the text into individual sentences. */
|
|
12432
|
+
KnownTextSplitMode["Sentences"] = "sentences";
|
|
12433
|
+
})(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
|
|
12434
|
+
(function (KnownCustomEntityLookupSkillLanguage) {
|
|
12435
|
+
/** Danish */
|
|
12436
|
+
KnownCustomEntityLookupSkillLanguage["Da"] = "da";
|
|
12437
|
+
/** German */
|
|
12438
|
+
KnownCustomEntityLookupSkillLanguage["De"] = "de";
|
|
12439
|
+
/** English */
|
|
12440
|
+
KnownCustomEntityLookupSkillLanguage["En"] = "en";
|
|
12441
|
+
/** Spanish */
|
|
12442
|
+
KnownCustomEntityLookupSkillLanguage["Es"] = "es";
|
|
12443
|
+
/** Finnish */
|
|
12444
|
+
KnownCustomEntityLookupSkillLanguage["Fi"] = "fi";
|
|
12445
|
+
/** French */
|
|
12446
|
+
KnownCustomEntityLookupSkillLanguage["Fr"] = "fr";
|
|
12447
|
+
/** Italian */
|
|
12448
|
+
KnownCustomEntityLookupSkillLanguage["It"] = "it";
|
|
12449
|
+
/** Korean */
|
|
12450
|
+
KnownCustomEntityLookupSkillLanguage["Ko"] = "ko";
|
|
12451
|
+
/** Portuguese */
|
|
12452
|
+
KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
|
|
12453
|
+
})(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
|
|
12454
|
+
(function (KnownTextTranslationSkillLanguage) {
|
|
12455
|
+
/** Afrikaans */
|
|
12456
|
+
KnownTextTranslationSkillLanguage["Af"] = "af";
|
|
12457
|
+
/** Arabic */
|
|
12458
|
+
KnownTextTranslationSkillLanguage["Ar"] = "ar";
|
|
12459
|
+
/** Bangla */
|
|
12460
|
+
KnownTextTranslationSkillLanguage["Bn"] = "bn";
|
|
12461
|
+
/** Bosnian (Latin) */
|
|
12462
|
+
KnownTextTranslationSkillLanguage["Bs"] = "bs";
|
|
12463
|
+
/** Bulgarian */
|
|
12464
|
+
KnownTextTranslationSkillLanguage["Bg"] = "bg";
|
|
12465
|
+
/** Cantonese (Traditional) */
|
|
12466
|
+
KnownTextTranslationSkillLanguage["Yue"] = "yue";
|
|
12467
|
+
/** Catalan */
|
|
12468
|
+
KnownTextTranslationSkillLanguage["Ca"] = "ca";
|
|
12469
|
+
/** Chinese Simplified */
|
|
12470
|
+
KnownTextTranslationSkillLanguage["ZhHans"] = "zh-Hans";
|
|
12471
|
+
/** Chinese Traditional */
|
|
12472
|
+
KnownTextTranslationSkillLanguage["ZhHant"] = "zh-Hant";
|
|
12473
|
+
/** Croatian */
|
|
12474
|
+
KnownTextTranslationSkillLanguage["Hr"] = "hr";
|
|
12475
|
+
/** Czech */
|
|
12476
|
+
KnownTextTranslationSkillLanguage["Cs"] = "cs";
|
|
12477
|
+
/** Danish */
|
|
12478
|
+
KnownTextTranslationSkillLanguage["Da"] = "da";
|
|
12479
|
+
/** Dutch */
|
|
12480
|
+
KnownTextTranslationSkillLanguage["Nl"] = "nl";
|
|
12481
|
+
/** English */
|
|
12482
|
+
KnownTextTranslationSkillLanguage["En"] = "en";
|
|
12483
|
+
/** Estonian */
|
|
12484
|
+
KnownTextTranslationSkillLanguage["Et"] = "et";
|
|
12485
|
+
/** Fijian */
|
|
12486
|
+
KnownTextTranslationSkillLanguage["Fj"] = "fj";
|
|
12487
|
+
/** Filipino */
|
|
12488
|
+
KnownTextTranslationSkillLanguage["Fil"] = "fil";
|
|
12489
|
+
/** Finnish */
|
|
12490
|
+
KnownTextTranslationSkillLanguage["Fi"] = "fi";
|
|
12491
|
+
/** French */
|
|
12492
|
+
KnownTextTranslationSkillLanguage["Fr"] = "fr";
|
|
12493
|
+
/** German */
|
|
12494
|
+
KnownTextTranslationSkillLanguage["De"] = "de";
|
|
12495
|
+
/** Greek */
|
|
12496
|
+
KnownTextTranslationSkillLanguage["El"] = "el";
|
|
12497
|
+
/** Haitian Creole */
|
|
12498
|
+
KnownTextTranslationSkillLanguage["Ht"] = "ht";
|
|
12499
|
+
/** Hebrew */
|
|
12500
|
+
KnownTextTranslationSkillLanguage["He"] = "he";
|
|
12501
|
+
/** Hindi */
|
|
12502
|
+
KnownTextTranslationSkillLanguage["Hi"] = "hi";
|
|
12503
|
+
/** Hmong Daw */
|
|
12504
|
+
KnownTextTranslationSkillLanguage["Mww"] = "mww";
|
|
12505
|
+
/** Hungarian */
|
|
12506
|
+
KnownTextTranslationSkillLanguage["Hu"] = "hu";
|
|
12507
|
+
/** Icelandic */
|
|
12508
|
+
KnownTextTranslationSkillLanguage["Is"] = "is";
|
|
12509
|
+
/** Indonesian */
|
|
12510
|
+
KnownTextTranslationSkillLanguage["Id"] = "id";
|
|
12511
|
+
/** Italian */
|
|
12512
|
+
KnownTextTranslationSkillLanguage["It"] = "it";
|
|
12513
|
+
/** Japanese */
|
|
12514
|
+
KnownTextTranslationSkillLanguage["Ja"] = "ja";
|
|
12515
|
+
/** Kiswahili */
|
|
12516
|
+
KnownTextTranslationSkillLanguage["Sw"] = "sw";
|
|
12517
|
+
/** Klingon */
|
|
12518
|
+
KnownTextTranslationSkillLanguage["Tlh"] = "tlh";
|
|
12519
|
+
/** Klingon (Latin script) */
|
|
12520
|
+
KnownTextTranslationSkillLanguage["TlhLatn"] = "tlh-Latn";
|
|
12521
|
+
/** Klingon (Klingon script) */
|
|
12522
|
+
KnownTextTranslationSkillLanguage["TlhPiqd"] = "tlh-Piqd";
|
|
12523
|
+
/** Korean */
|
|
12524
|
+
KnownTextTranslationSkillLanguage["Ko"] = "ko";
|
|
12525
|
+
/** Latvian */
|
|
12526
|
+
KnownTextTranslationSkillLanguage["Lv"] = "lv";
|
|
12527
|
+
/** Lithuanian */
|
|
12528
|
+
KnownTextTranslationSkillLanguage["Lt"] = "lt";
|
|
12529
|
+
/** Malagasy */
|
|
12530
|
+
KnownTextTranslationSkillLanguage["Mg"] = "mg";
|
|
12531
|
+
/** Malay */
|
|
12532
|
+
KnownTextTranslationSkillLanguage["Ms"] = "ms";
|
|
12533
|
+
/** Maltese */
|
|
12534
|
+
KnownTextTranslationSkillLanguage["Mt"] = "mt";
|
|
12535
|
+
/** Norwegian */
|
|
12536
|
+
KnownTextTranslationSkillLanguage["Nb"] = "nb";
|
|
12537
|
+
/** Persian */
|
|
12538
|
+
KnownTextTranslationSkillLanguage["Fa"] = "fa";
|
|
12539
|
+
/** Polish */
|
|
12540
|
+
KnownTextTranslationSkillLanguage["Pl"] = "pl";
|
|
12541
|
+
/** Portuguese */
|
|
12542
|
+
KnownTextTranslationSkillLanguage["Pt"] = "pt";
|
|
12543
|
+
/** Portuguese (Brazil) */
|
|
12544
|
+
KnownTextTranslationSkillLanguage["PtBr"] = "pt-br";
|
|
12545
|
+
/** Portuguese (Portugal) */
|
|
12546
|
+
KnownTextTranslationSkillLanguage["PtPT"] = "pt-PT";
|
|
12547
|
+
/** Queretaro Otomi */
|
|
12548
|
+
KnownTextTranslationSkillLanguage["Otq"] = "otq";
|
|
12549
|
+
/** Romanian */
|
|
12550
|
+
KnownTextTranslationSkillLanguage["Ro"] = "ro";
|
|
12551
|
+
/** Russian */
|
|
12552
|
+
KnownTextTranslationSkillLanguage["Ru"] = "ru";
|
|
12553
|
+
/** Samoan */
|
|
12554
|
+
KnownTextTranslationSkillLanguage["Sm"] = "sm";
|
|
12555
|
+
/** Serbian (Cyrillic) */
|
|
12556
|
+
KnownTextTranslationSkillLanguage["SrCyrl"] = "sr-Cyrl";
|
|
12557
|
+
/** Serbian (Latin) */
|
|
12558
|
+
KnownTextTranslationSkillLanguage["SrLatn"] = "sr-Latn";
|
|
12559
|
+
/** Slovak */
|
|
12560
|
+
KnownTextTranslationSkillLanguage["Sk"] = "sk";
|
|
12561
|
+
/** Slovenian */
|
|
12562
|
+
KnownTextTranslationSkillLanguage["Sl"] = "sl";
|
|
12563
|
+
/** Spanish */
|
|
12564
|
+
KnownTextTranslationSkillLanguage["Es"] = "es";
|
|
12565
|
+
/** Swedish */
|
|
12566
|
+
KnownTextTranslationSkillLanguage["Sv"] = "sv";
|
|
12567
|
+
/** Tahitian */
|
|
12568
|
+
KnownTextTranslationSkillLanguage["Ty"] = "ty";
|
|
12569
|
+
/** Tamil */
|
|
12570
|
+
KnownTextTranslationSkillLanguage["Ta"] = "ta";
|
|
12571
|
+
/** Telugu */
|
|
12572
|
+
KnownTextTranslationSkillLanguage["Te"] = "te";
|
|
12573
|
+
/** Thai */
|
|
12574
|
+
KnownTextTranslationSkillLanguage["Th"] = "th";
|
|
12575
|
+
/** Tongan */
|
|
12576
|
+
KnownTextTranslationSkillLanguage["To"] = "to";
|
|
12577
|
+
/** Turkish */
|
|
12578
|
+
KnownTextTranslationSkillLanguage["Tr"] = "tr";
|
|
12579
|
+
/** Ukrainian */
|
|
12580
|
+
KnownTextTranslationSkillLanguage["Uk"] = "uk";
|
|
12581
|
+
/** Urdu */
|
|
12582
|
+
KnownTextTranslationSkillLanguage["Ur"] = "ur";
|
|
12583
|
+
/** Vietnamese */
|
|
12584
|
+
KnownTextTranslationSkillLanguage["Vi"] = "vi";
|
|
12585
|
+
/** Welsh */
|
|
12586
|
+
KnownTextTranslationSkillLanguage["Cy"] = "cy";
|
|
12587
|
+
/** Yucatec Maya */
|
|
12588
|
+
KnownTextTranslationSkillLanguage["Yua"] = "yua";
|
|
12589
|
+
/** Irish */
|
|
12590
|
+
KnownTextTranslationSkillLanguage["Ga"] = "ga";
|
|
12591
|
+
/** Kannada */
|
|
12592
|
+
KnownTextTranslationSkillLanguage["Kn"] = "kn";
|
|
12593
|
+
/** Maori */
|
|
12594
|
+
KnownTextTranslationSkillLanguage["Mi"] = "mi";
|
|
12595
|
+
/** Malayalam */
|
|
12596
|
+
KnownTextTranslationSkillLanguage["Ml"] = "ml";
|
|
12597
|
+
/** Punjabi */
|
|
12598
|
+
KnownTextTranslationSkillLanguage["Pa"] = "pa";
|
|
12599
|
+
})(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
|
|
12600
|
+
/** Known values of {@link LexicalTokenizerName} that the service accepts. */
|
|
12601
|
+
var KnownLexicalTokenizerName;
|
|
12602
|
+
(function (KnownLexicalTokenizerName) {
|
|
12603
|
+
/** Grammar-based tokenizer that is suitable for processing most European-language documents. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html */
|
|
12604
|
+
KnownLexicalTokenizerName["Classic"] = "classic";
|
|
12605
|
+
/** Tokenizes the input from an edge into n-grams of the given size(s). See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html */
|
|
12606
|
+
KnownLexicalTokenizerName["EdgeNGram"] = "edgeNGram";
|
|
12607
|
+
/** Emits the entire input as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordTokenizer.html */
|
|
12608
|
+
KnownLexicalTokenizerName["Keyword"] = "keyword_v2";
|
|
12609
|
+
/** Divides text at non-letters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html */
|
|
12610
|
+
KnownLexicalTokenizerName["Letter"] = "letter";
|
|
12611
|
+
/** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseTokenizer.html */
|
|
12612
|
+
KnownLexicalTokenizerName["Lowercase"] = "lowercase";
|
|
12613
|
+
/** Divides text using language-specific rules. */
|
|
12614
|
+
KnownLexicalTokenizerName["MicrosoftLanguageTokenizer"] = "microsoft_language_tokenizer";
|
|
12615
|
+
/** Divides text using language-specific rules and reduces words to their base forms. */
|
|
12616
|
+
KnownLexicalTokenizerName["MicrosoftLanguageStemmingTokenizer"] = "microsoft_language_stemming_tokenizer";
|
|
12617
|
+
/** Tokenizes the input into n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenizer.html */
|
|
12618
|
+
KnownLexicalTokenizerName["NGram"] = "nGram";
|
|
12619
|
+
/** Tokenizer for path-like hierarchies. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html */
|
|
12620
|
+
KnownLexicalTokenizerName["PathHierarchy"] = "path_hierarchy_v2";
|
|
12621
|
+
/** Tokenizer that uses regex pattern matching to construct distinct tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/pattern/PatternTokenizer.html */
|
|
12622
|
+
KnownLexicalTokenizerName["Pattern"] = "pattern";
|
|
12623
|
+
/** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/StandardTokenizer.html */
|
|
12624
|
+
KnownLexicalTokenizerName["Standard"] = "standard_v2";
|
|
12625
|
+
/** Tokenizes urls and emails as one token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizer.html */
|
|
12626
|
+
KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
|
|
12627
|
+
/** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
|
|
12628
|
+
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
12629
|
+
})(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
|
|
12630
|
+
(function (KnownRegexFlags) {
|
|
12631
|
+
/** Enables canonical equivalence. */
|
|
12632
|
+
KnownRegexFlags["CanonEq"] = "CANON_EQ";
|
|
12633
|
+
/** Enables case-insensitive matching. */
|
|
12634
|
+
KnownRegexFlags["CaseInsensitive"] = "CASE_INSENSITIVE";
|
|
12635
|
+
/** Permits whitespace and comments in the pattern. */
|
|
12636
|
+
KnownRegexFlags["Comments"] = "COMMENTS";
|
|
12637
|
+
/** Enables dotall mode. */
|
|
12638
|
+
KnownRegexFlags["DotAll"] = "DOTALL";
|
|
12639
|
+
/** Enables literal parsing of the pattern. */
|
|
12640
|
+
KnownRegexFlags["Literal"] = "LITERAL";
|
|
12641
|
+
/** Enables multiline mode. */
|
|
12642
|
+
KnownRegexFlags["Multiline"] = "MULTILINE";
|
|
12643
|
+
/** Enables Unicode-aware case folding. */
|
|
12644
|
+
KnownRegexFlags["UnicodeCase"] = "UNICODE_CASE";
|
|
12645
|
+
/** Enables Unix lines mode. */
|
|
12646
|
+
KnownRegexFlags["UnixLines"] = "UNIX_LINES";
|
|
12647
|
+
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
12648
|
+
|
|
11335
12649
|
// Copyright (c) Microsoft Corporation.
|
|
11336
12650
|
const readFileAsync = util.promisify(fs.readFile);
|
|
11337
12651
|
/**
|