@azure/search-documents 11.3.0-beta.4 → 11.3.0-beta.7
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 +39 -0
- package/dist/index.js +1352 -504
- 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 +141 -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 +9 -0
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +1 -0
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +2 -0
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +218 -7
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/models/parameters.js +15 -1
- package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/service/operations/aliases.js +166 -0
- package/dist-esm/src/generated/service/operations/aliases.js.map +1 -0
- package/dist-esm/src/generated/service/operations/index.js +1 -0
- package/dist-esm/src/generated/service/operations/index.js.map +1 -1
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +9 -0
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +1 -0
- package/dist-esm/src/generated/service/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +2 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
- package/dist-esm/src/geographyPoint.js +1 -1
- package/dist-esm/src/geographyPoint.js.map +1 -1
- package/dist-esm/src/index.js +4 -4
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexDocumentsBatch.js +1 -1
- package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/odataMetadataPolicy.js +1 -1
- package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
- package/dist-esm/src/searchApiKeyCredentialPolicy.js +1 -1
- package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/src/searchClient.js +39 -27
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +186 -28
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +47 -35
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/searchIndexingBufferedSender.js +10 -10
- package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
- package/dist-esm/src/serialization.js +6 -6
- package/dist-esm/src/serialization.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +25 -18
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/dist-esm/src/synonymMapHelper.js +1 -1
- package/dist-esm/src/synonymMapHelper.js.map +1 -1
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/package.json +17 -29
- package/types/search-documents.d.ts +445 -52
package/dist/index.js
CHANGED
|
@@ -2,18 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
-
|
|
7
5
|
var tslib = require('tslib');
|
|
8
6
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
9
7
|
var coreClient = require('@azure/core-client');
|
|
10
8
|
var coreAuth = require('@azure/core-auth');
|
|
11
9
|
var logger$1 = require('@azure/logger');
|
|
12
10
|
var coreTracing = require('@azure/core-tracing');
|
|
13
|
-
var EventEmitter =
|
|
11
|
+
var EventEmitter = require('events');
|
|
14
12
|
var util = require('util');
|
|
15
13
|
var fs = require('fs');
|
|
16
14
|
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
function _interopNamespace(e) {
|
|
18
|
+
if (e && e.__esModule) return e;
|
|
19
|
+
var n = Object.create(null);
|
|
20
|
+
if (e) {
|
|
21
|
+
Object.keys(e).forEach(function (k) {
|
|
22
|
+
if (k !== 'default') {
|
|
23
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return e[k]; }
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
n["default"] = e;
|
|
32
|
+
return Object.freeze(n);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
36
|
+
var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
|
|
37
|
+
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
38
|
+
|
|
17
39
|
/*
|
|
18
40
|
* Copyright (c) Microsoft Corporation.
|
|
19
41
|
* Licensed under the MIT License.
|
|
@@ -21,7 +43,7 @@ var fs = require('fs');
|
|
|
21
43
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
22
44
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
23
45
|
*/
|
|
24
|
-
const SearchError = {
|
|
46
|
+
const SearchError$1 = {
|
|
25
47
|
type: {
|
|
26
48
|
name: "Composite",
|
|
27
49
|
className: "SearchError",
|
|
@@ -286,6 +308,12 @@ const SearchRequest = {
|
|
|
286
308
|
name: "String"
|
|
287
309
|
}
|
|
288
310
|
},
|
|
311
|
+
semanticConfiguration: {
|
|
312
|
+
serializedName: "semanticConfiguration",
|
|
313
|
+
type: {
|
|
314
|
+
name: "String"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
289
317
|
searchText: {
|
|
290
318
|
serializedName: "search",
|
|
291
319
|
type: {
|
|
@@ -775,9 +803,9 @@ const AutocompleteRequest = {
|
|
|
775
803
|
}
|
|
776
804
|
};
|
|
777
805
|
|
|
778
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
806
|
+
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
779
807
|
__proto__: null,
|
|
780
|
-
SearchError: SearchError,
|
|
808
|
+
SearchError: SearchError$1,
|
|
781
809
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
782
810
|
FacetResult: FacetResult,
|
|
783
811
|
AnswerResult: AnswerResult,
|
|
@@ -803,7 +831,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
803
831
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
804
832
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
805
833
|
*/
|
|
806
|
-
const accept = {
|
|
834
|
+
const accept$1 = {
|
|
807
835
|
parameterPath: "accept",
|
|
808
836
|
mapper: {
|
|
809
837
|
defaultValue: "application/json",
|
|
@@ -814,7 +842,7 @@ const accept = {
|
|
|
814
842
|
}
|
|
815
843
|
}
|
|
816
844
|
};
|
|
817
|
-
const endpoint = {
|
|
845
|
+
const endpoint$1 = {
|
|
818
846
|
parameterPath: "endpoint",
|
|
819
847
|
mapper: {
|
|
820
848
|
serializedName: "endpoint",
|
|
@@ -825,7 +853,7 @@ const endpoint = {
|
|
|
825
853
|
},
|
|
826
854
|
skipEncoding: true
|
|
827
855
|
};
|
|
828
|
-
const indexName = {
|
|
856
|
+
const indexName$1 = {
|
|
829
857
|
parameterPath: "indexName",
|
|
830
858
|
mapper: {
|
|
831
859
|
serializedName: "indexName",
|
|
@@ -835,7 +863,7 @@ const indexName = {
|
|
|
835
863
|
}
|
|
836
864
|
}
|
|
837
865
|
};
|
|
838
|
-
const xMsClientRequestId = {
|
|
866
|
+
const xMsClientRequestId$1 = {
|
|
839
867
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
840
868
|
mapper: {
|
|
841
869
|
serializedName: "x-ms-client-request-id",
|
|
@@ -844,7 +872,7 @@ const xMsClientRequestId = {
|
|
|
844
872
|
}
|
|
845
873
|
}
|
|
846
874
|
};
|
|
847
|
-
const apiVersion = {
|
|
875
|
+
const apiVersion$1 = {
|
|
848
876
|
parameterPath: "apiVersion",
|
|
849
877
|
mapper: {
|
|
850
878
|
serializedName: "api-version",
|
|
@@ -987,6 +1015,15 @@ const scoringProfile = {
|
|
|
987
1015
|
}
|
|
988
1016
|
}
|
|
989
1017
|
};
|
|
1018
|
+
const semanticConfiguration = {
|
|
1019
|
+
parameterPath: ["options", "searchOptions", "semanticConfiguration"],
|
|
1020
|
+
mapper: {
|
|
1021
|
+
serializedName: "semanticConfiguration",
|
|
1022
|
+
type: {
|
|
1023
|
+
name: "String"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
990
1027
|
const searchFields = {
|
|
991
1028
|
parameterPath: ["options", "searchOptions", "searchFields"],
|
|
992
1029
|
mapper: {
|
|
@@ -1058,7 +1095,7 @@ const sessionId = {
|
|
|
1058
1095
|
}
|
|
1059
1096
|
}
|
|
1060
1097
|
};
|
|
1061
|
-
const select = {
|
|
1098
|
+
const select$1 = {
|
|
1062
1099
|
parameterPath: ["options", "searchOptions", "select"],
|
|
1063
1100
|
mapper: {
|
|
1064
1101
|
serializedName: "$select",
|
|
@@ -1115,7 +1152,7 @@ const semanticFields = {
|
|
|
1115
1152
|
},
|
|
1116
1153
|
collectionFormat: "CSV"
|
|
1117
1154
|
};
|
|
1118
|
-
const contentType = {
|
|
1155
|
+
const contentType$1 = {
|
|
1119
1156
|
parameterPath: ["options", "contentType"],
|
|
1120
1157
|
mapper: {
|
|
1121
1158
|
defaultValue: "application/json",
|
|
@@ -1410,7 +1447,7 @@ class DocumentsImpl {
|
|
|
1410
1447
|
* @param options The options parameters.
|
|
1411
1448
|
*/
|
|
1412
1449
|
get(key, options) {
|
|
1413
|
-
return this.client.sendOperationRequest({ key, options }, getOperationSpec);
|
|
1450
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec$6);
|
|
1414
1451
|
}
|
|
1415
1452
|
/**
|
|
1416
1453
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -1459,7 +1496,7 @@ class DocumentsImpl {
|
|
|
1459
1496
|
}
|
|
1460
1497
|
}
|
|
1461
1498
|
// Operation Specifications
|
|
1462
|
-
const serializer =
|
|
1499
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
|
|
1463
1500
|
const countOperationSpec = {
|
|
1464
1501
|
path: "/docs/$count",
|
|
1465
1502
|
httpMethod: "GET",
|
|
@@ -1468,13 +1505,13 @@ const countOperationSpec = {
|
|
|
1468
1505
|
bodyMapper: { type: { name: "Number" } }
|
|
1469
1506
|
},
|
|
1470
1507
|
default: {
|
|
1471
|
-
bodyMapper: SearchError
|
|
1508
|
+
bodyMapper: SearchError$1
|
|
1472
1509
|
}
|
|
1473
1510
|
},
|
|
1474
|
-
queryParameters: [apiVersion],
|
|
1475
|
-
urlParameters: [endpoint, indexName],
|
|
1476
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1477
|
-
serializer
|
|
1511
|
+
queryParameters: [apiVersion$1],
|
|
1512
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1513
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1514
|
+
serializer: serializer$7
|
|
1478
1515
|
};
|
|
1479
1516
|
const searchGetOperationSpec = {
|
|
1480
1517
|
path: "/docs",
|
|
@@ -1484,11 +1521,11 @@ const searchGetOperationSpec = {
|
|
|
1484
1521
|
bodyMapper: SearchDocumentsResult
|
|
1485
1522
|
},
|
|
1486
1523
|
default: {
|
|
1487
|
-
bodyMapper: SearchError
|
|
1524
|
+
bodyMapper: SearchError$1
|
|
1488
1525
|
}
|
|
1489
1526
|
},
|
|
1490
1527
|
queryParameters: [
|
|
1491
|
-
apiVersion,
|
|
1528
|
+
apiVersion$1,
|
|
1492
1529
|
searchText,
|
|
1493
1530
|
includeTotalResultCount,
|
|
1494
1531
|
facets,
|
|
@@ -1501,6 +1538,7 @@ const searchGetOperationSpec = {
|
|
|
1501
1538
|
queryType,
|
|
1502
1539
|
scoringParameters,
|
|
1503
1540
|
scoringProfile,
|
|
1541
|
+
semanticConfiguration,
|
|
1504
1542
|
searchFields,
|
|
1505
1543
|
queryLanguage,
|
|
1506
1544
|
speller,
|
|
@@ -1508,15 +1546,15 @@ const searchGetOperationSpec = {
|
|
|
1508
1546
|
searchMode,
|
|
1509
1547
|
scoringStatistics,
|
|
1510
1548
|
sessionId,
|
|
1511
|
-
select,
|
|
1549
|
+
select$1,
|
|
1512
1550
|
skip,
|
|
1513
1551
|
top,
|
|
1514
1552
|
captions,
|
|
1515
1553
|
semanticFields
|
|
1516
1554
|
],
|
|
1517
|
-
urlParameters: [endpoint, indexName],
|
|
1518
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1519
|
-
serializer
|
|
1555
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1556
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1557
|
+
serializer: serializer$7
|
|
1520
1558
|
};
|
|
1521
1559
|
const searchPostOperationSpec = {
|
|
1522
1560
|
path: "/docs/search.post.search",
|
|
@@ -1526,21 +1564,21 @@ const searchPostOperationSpec = {
|
|
|
1526
1564
|
bodyMapper: SearchDocumentsResult
|
|
1527
1565
|
},
|
|
1528
1566
|
default: {
|
|
1529
|
-
bodyMapper: SearchError
|
|
1567
|
+
bodyMapper: SearchError$1
|
|
1530
1568
|
}
|
|
1531
1569
|
},
|
|
1532
1570
|
requestBody: searchRequest,
|
|
1533
|
-
queryParameters: [apiVersion],
|
|
1534
|
-
urlParameters: [endpoint, indexName],
|
|
1571
|
+
queryParameters: [apiVersion$1],
|
|
1572
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1535
1573
|
headerParameters: [
|
|
1536
|
-
accept,
|
|
1537
|
-
xMsClientRequestId,
|
|
1538
|
-
contentType
|
|
1574
|
+
accept$1,
|
|
1575
|
+
xMsClientRequestId$1,
|
|
1576
|
+
contentType$1
|
|
1539
1577
|
],
|
|
1540
1578
|
mediaType: "json",
|
|
1541
|
-
serializer
|
|
1579
|
+
serializer: serializer$7
|
|
1542
1580
|
};
|
|
1543
|
-
const getOperationSpec = {
|
|
1581
|
+
const getOperationSpec$6 = {
|
|
1544
1582
|
path: "/docs('{key}')",
|
|
1545
1583
|
httpMethod: "GET",
|
|
1546
1584
|
responses: {
|
|
@@ -1550,13 +1588,13 @@ const getOperationSpec = {
|
|
|
1550
1588
|
}
|
|
1551
1589
|
},
|
|
1552
1590
|
default: {
|
|
1553
|
-
bodyMapper: SearchError
|
|
1591
|
+
bodyMapper: SearchError$1
|
|
1554
1592
|
}
|
|
1555
1593
|
},
|
|
1556
|
-
queryParameters: [apiVersion, selectedFields],
|
|
1557
|
-
urlParameters: [endpoint, indexName, key],
|
|
1558
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1559
|
-
serializer
|
|
1594
|
+
queryParameters: [apiVersion$1, selectedFields],
|
|
1595
|
+
urlParameters: [endpoint$1, indexName$1, key],
|
|
1596
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1597
|
+
serializer: serializer$7
|
|
1560
1598
|
};
|
|
1561
1599
|
const suggestGetOperationSpec = {
|
|
1562
1600
|
path: "/docs/search.suggest",
|
|
@@ -1566,11 +1604,11 @@ const suggestGetOperationSpec = {
|
|
|
1566
1604
|
bodyMapper: SuggestDocumentsResult
|
|
1567
1605
|
},
|
|
1568
1606
|
default: {
|
|
1569
|
-
bodyMapper: SearchError
|
|
1607
|
+
bodyMapper: SearchError$1
|
|
1570
1608
|
}
|
|
1571
1609
|
},
|
|
1572
1610
|
queryParameters: [
|
|
1573
|
-
apiVersion,
|
|
1611
|
+
apiVersion$1,
|
|
1574
1612
|
searchText1,
|
|
1575
1613
|
suggesterName,
|
|
1576
1614
|
filter1,
|
|
@@ -1583,9 +1621,9 @@ const suggestGetOperationSpec = {
|
|
|
1583
1621
|
select1,
|
|
1584
1622
|
top1
|
|
1585
1623
|
],
|
|
1586
|
-
urlParameters: [endpoint, indexName],
|
|
1587
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1588
|
-
serializer
|
|
1624
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1625
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1626
|
+
serializer: serializer$7
|
|
1589
1627
|
};
|
|
1590
1628
|
const suggestPostOperationSpec = {
|
|
1591
1629
|
path: "/docs/search.post.suggest",
|
|
@@ -1595,19 +1633,19 @@ const suggestPostOperationSpec = {
|
|
|
1595
1633
|
bodyMapper: SuggestDocumentsResult
|
|
1596
1634
|
},
|
|
1597
1635
|
default: {
|
|
1598
|
-
bodyMapper: SearchError
|
|
1636
|
+
bodyMapper: SearchError$1
|
|
1599
1637
|
}
|
|
1600
1638
|
},
|
|
1601
1639
|
requestBody: suggestRequest,
|
|
1602
|
-
queryParameters: [apiVersion],
|
|
1603
|
-
urlParameters: [endpoint, indexName],
|
|
1640
|
+
queryParameters: [apiVersion$1],
|
|
1641
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1604
1642
|
headerParameters: [
|
|
1605
|
-
accept,
|
|
1606
|
-
xMsClientRequestId,
|
|
1607
|
-
contentType
|
|
1643
|
+
accept$1,
|
|
1644
|
+
xMsClientRequestId$1,
|
|
1645
|
+
contentType$1
|
|
1608
1646
|
],
|
|
1609
1647
|
mediaType: "json",
|
|
1610
|
-
serializer
|
|
1648
|
+
serializer: serializer$7
|
|
1611
1649
|
};
|
|
1612
1650
|
const indexOperationSpec = {
|
|
1613
1651
|
path: "/docs/search.index",
|
|
@@ -1620,19 +1658,19 @@ const indexOperationSpec = {
|
|
|
1620
1658
|
bodyMapper: IndexDocumentsResult
|
|
1621
1659
|
},
|
|
1622
1660
|
default: {
|
|
1623
|
-
bodyMapper: SearchError
|
|
1661
|
+
bodyMapper: SearchError$1
|
|
1624
1662
|
}
|
|
1625
1663
|
},
|
|
1626
1664
|
requestBody: batch,
|
|
1627
|
-
queryParameters: [apiVersion],
|
|
1628
|
-
urlParameters: [endpoint, indexName],
|
|
1665
|
+
queryParameters: [apiVersion$1],
|
|
1666
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1629
1667
|
headerParameters: [
|
|
1630
|
-
accept,
|
|
1631
|
-
xMsClientRequestId,
|
|
1632
|
-
contentType
|
|
1668
|
+
accept$1,
|
|
1669
|
+
xMsClientRequestId$1,
|
|
1670
|
+
contentType$1
|
|
1633
1671
|
],
|
|
1634
1672
|
mediaType: "json",
|
|
1635
|
-
serializer
|
|
1673
|
+
serializer: serializer$7
|
|
1636
1674
|
};
|
|
1637
1675
|
const autocompleteGetOperationSpec = {
|
|
1638
1676
|
path: "/docs/search.autocomplete",
|
|
@@ -1642,11 +1680,11 @@ const autocompleteGetOperationSpec = {
|
|
|
1642
1680
|
bodyMapper: AutocompleteResult
|
|
1643
1681
|
},
|
|
1644
1682
|
default: {
|
|
1645
|
-
bodyMapper: SearchError
|
|
1683
|
+
bodyMapper: SearchError$1
|
|
1646
1684
|
}
|
|
1647
1685
|
},
|
|
1648
1686
|
queryParameters: [
|
|
1649
|
-
apiVersion,
|
|
1687
|
+
apiVersion$1,
|
|
1650
1688
|
searchText1,
|
|
1651
1689
|
suggesterName,
|
|
1652
1690
|
autocompleteMode,
|
|
@@ -1658,9 +1696,9 @@ const autocompleteGetOperationSpec = {
|
|
|
1658
1696
|
searchFields2,
|
|
1659
1697
|
top2
|
|
1660
1698
|
],
|
|
1661
|
-
urlParameters: [endpoint, indexName],
|
|
1662
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1663
|
-
serializer
|
|
1699
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1700
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1701
|
+
serializer: serializer$7
|
|
1664
1702
|
};
|
|
1665
1703
|
const autocompletePostOperationSpec = {
|
|
1666
1704
|
path: "/docs/search.post.autocomplete",
|
|
@@ -1670,19 +1708,19 @@ const autocompletePostOperationSpec = {
|
|
|
1670
1708
|
bodyMapper: AutocompleteResult
|
|
1671
1709
|
},
|
|
1672
1710
|
default: {
|
|
1673
|
-
bodyMapper: SearchError
|
|
1711
|
+
bodyMapper: SearchError$1
|
|
1674
1712
|
}
|
|
1675
1713
|
},
|
|
1676
1714
|
requestBody: autocompleteRequest,
|
|
1677
|
-
queryParameters: [apiVersion],
|
|
1678
|
-
urlParameters: [endpoint, indexName],
|
|
1715
|
+
queryParameters: [apiVersion$1],
|
|
1716
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1679
1717
|
headerParameters: [
|
|
1680
|
-
accept,
|
|
1681
|
-
xMsClientRequestId,
|
|
1682
|
-
contentType
|
|
1718
|
+
accept$1,
|
|
1719
|
+
xMsClientRequestId$1,
|
|
1720
|
+
contentType$1
|
|
1683
1721
|
],
|
|
1684
1722
|
mediaType: "json",
|
|
1685
|
-
serializer
|
|
1723
|
+
serializer: serializer$7
|
|
1686
1724
|
};
|
|
1687
1725
|
|
|
1688
1726
|
/*
|
|
@@ -1693,7 +1731,7 @@ const autocompletePostOperationSpec = {
|
|
|
1693
1731
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1694
1732
|
*/
|
|
1695
1733
|
/** @internal */
|
|
1696
|
-
class SearchClientContext extends
|
|
1734
|
+
class SearchClientContext extends coreClient__namespace.ServiceClient {
|
|
1697
1735
|
/**
|
|
1698
1736
|
* Initializes a new instance of the SearchClientContext class.
|
|
1699
1737
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1718,7 +1756,7 @@ class SearchClientContext extends coreClient.ServiceClient {
|
|
|
1718
1756
|
const defaults = {
|
|
1719
1757
|
requestContentType: "application/json; charset=utf-8"
|
|
1720
1758
|
};
|
|
1721
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
1759
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.7`;
|
|
1722
1760
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1723
1761
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1724
1762
|
: `${packageDetails}`;
|
|
@@ -1741,7 +1779,7 @@ class SearchClientContext extends coreClient.ServiceClient {
|
|
|
1741
1779
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1742
1780
|
*/
|
|
1743
1781
|
/** @internal */
|
|
1744
|
-
class SearchClient extends SearchClientContext {
|
|
1782
|
+
class SearchClient$1 extends SearchClientContext {
|
|
1745
1783
|
/**
|
|
1746
1784
|
* Initializes a new instance of the SearchClient class.
|
|
1747
1785
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1771,13 +1809,13 @@ function createSearchApiKeyCredentialPolicy(credential) {
|
|
|
1771
1809
|
request.headers.set(API_KEY_HEADER_NAME, credential.key);
|
|
1772
1810
|
}
|
|
1773
1811
|
return next(request);
|
|
1774
|
-
}
|
|
1812
|
+
},
|
|
1775
1813
|
};
|
|
1776
1814
|
}
|
|
1777
1815
|
|
|
1778
1816
|
// Copyright (c) Microsoft Corporation.
|
|
1779
1817
|
// Licensed under the MIT license.
|
|
1780
|
-
const SDK_VERSION = "11.3.0-beta.
|
|
1818
|
+
const SDK_VERSION = "11.3.0-beta.7";
|
|
1781
1819
|
|
|
1782
1820
|
// Copyright (c) Microsoft Corporation.
|
|
1783
1821
|
/**
|
|
@@ -1792,12 +1830,12 @@ const logger = logger$1.createClientLogger("search");
|
|
|
1792
1830
|
*/
|
|
1793
1831
|
const createSpan = coreTracing.createSpanFunction({
|
|
1794
1832
|
packagePrefix: "Azure.Search",
|
|
1795
|
-
namespace: "Microsoft.Search"
|
|
1833
|
+
namespace: "Microsoft.Search",
|
|
1796
1834
|
});
|
|
1797
1835
|
|
|
1798
1836
|
// Copyright (c) Microsoft Corporation.
|
|
1799
1837
|
// Licensed under the MIT license.
|
|
1800
|
-
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1838
|
+
const WorldGeodeticSystem1984$1 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1801
1839
|
/**
|
|
1802
1840
|
* Represents a geographic point in global coordinates.
|
|
1803
1841
|
*/
|
|
@@ -1818,7 +1856,7 @@ class GeographyPoint {
|
|
|
1818
1856
|
return {
|
|
1819
1857
|
type: "Point",
|
|
1820
1858
|
coordinates: [this.longitude, this.latitude],
|
|
1821
|
-
crs: { type: "name", properties: { name: WorldGeodeticSystem1984 } }
|
|
1859
|
+
crs: { type: "name", properties: { name: WorldGeodeticSystem1984$1 } },
|
|
1822
1860
|
};
|
|
1823
1861
|
}
|
|
1824
1862
|
}
|
|
@@ -1826,7 +1864,7 @@ class GeographyPoint {
|
|
|
1826
1864
|
// Copyright (c) Microsoft Corporation.
|
|
1827
1865
|
const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/i;
|
|
1828
1866
|
const GeoJSONPointTypeName = "Point";
|
|
1829
|
-
const WorldGeodeticSystem1984
|
|
1867
|
+
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1830
1868
|
function serialize(obj) {
|
|
1831
1869
|
return walk(obj, (value) => {
|
|
1832
1870
|
const result = serializeSpecialNumbers(value);
|
|
@@ -1846,13 +1884,13 @@ function walk(start, mapper) {
|
|
|
1846
1884
|
const seenMarker = new WeakMap();
|
|
1847
1885
|
const result = { value: undefined };
|
|
1848
1886
|
const queue = [
|
|
1849
|
-
{ value: start, parent: result, key: "value" }
|
|
1887
|
+
{ value: start, parent: result, key: "value" },
|
|
1850
1888
|
];
|
|
1851
1889
|
while (queue.length) {
|
|
1852
1890
|
const current = queue.shift();
|
|
1853
1891
|
if (typeof current.value === "object" && current.value !== null) {
|
|
1854
1892
|
if (seenMarker.has(current.value)) {
|
|
1855
|
-
|
|
1893
|
+
continue;
|
|
1856
1894
|
}
|
|
1857
1895
|
else {
|
|
1858
1896
|
seenMarker.set(current.value, true);
|
|
@@ -1867,7 +1905,7 @@ function walk(start, mapper) {
|
|
|
1867
1905
|
queue.push({
|
|
1868
1906
|
value: mapped[key],
|
|
1869
1907
|
parent: mapped,
|
|
1870
|
-
key
|
|
1908
|
+
key,
|
|
1871
1909
|
});
|
|
1872
1910
|
}
|
|
1873
1911
|
}
|
|
@@ -1931,7 +1969,7 @@ function isGeoJSONPoint(obj) {
|
|
|
1931
1969
|
default:
|
|
1932
1970
|
return false;
|
|
1933
1971
|
}
|
|
1934
|
-
}
|
|
1972
|
+
},
|
|
1935
1973
|
});
|
|
1936
1974
|
}
|
|
1937
1975
|
function isCoordinateArray(maybeCoordinates) {
|
|
@@ -1958,7 +1996,7 @@ function isCrs(maybeCrs) {
|
|
|
1958
1996
|
default:
|
|
1959
1997
|
return false;
|
|
1960
1998
|
}
|
|
1961
|
-
}
|
|
1999
|
+
},
|
|
1962
2000
|
});
|
|
1963
2001
|
}
|
|
1964
2002
|
function isCrsProperties(maybeProperties) {
|
|
@@ -1966,12 +2004,12 @@ function isCrsProperties(maybeProperties) {
|
|
|
1966
2004
|
requiredKeys: ["name"],
|
|
1967
2005
|
propertyValidator: (key) => {
|
|
1968
2006
|
if (key === "name") {
|
|
1969
|
-
return maybeProperties.name === WorldGeodeticSystem1984
|
|
2007
|
+
return maybeProperties.name === WorldGeodeticSystem1984;
|
|
1970
2008
|
}
|
|
1971
2009
|
else {
|
|
1972
2010
|
return false;
|
|
1973
2011
|
}
|
|
1974
|
-
}
|
|
2012
|
+
},
|
|
1975
2013
|
});
|
|
1976
2014
|
}
|
|
1977
2015
|
function isValidObject(obj, options = {}) {
|
|
@@ -2010,7 +2048,7 @@ function createOdataMetadataPolicy(metadataLevel) {
|
|
|
2010
2048
|
async sendRequest(request, next) {
|
|
2011
2049
|
request.headers.set(AcceptHeaderName, `application/json;odata.metadata=${metadataLevel}`);
|
|
2012
2050
|
return next(request);
|
|
2013
|
-
}
|
|
2051
|
+
},
|
|
2014
2052
|
};
|
|
2015
2053
|
}
|
|
2016
2054
|
|
|
@@ -2062,7 +2100,7 @@ class IndexDocumentsBatch {
|
|
|
2062
2100
|
const batch = keyValues.map((keyValue) => {
|
|
2063
2101
|
return {
|
|
2064
2102
|
__actionType: "delete",
|
|
2065
|
-
[keyName]: keyValue
|
|
2103
|
+
[keyName]: keyValue,
|
|
2066
2104
|
};
|
|
2067
2105
|
});
|
|
2068
2106
|
this.actions.push(...batch);
|
|
@@ -2099,6 +2137,11 @@ function decode(value) {
|
|
|
2099
2137
|
function isComplexField(field) {
|
|
2100
2138
|
return field.type === "Edm.ComplexType" || field.type === "Collection(Edm.ComplexType)";
|
|
2101
2139
|
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Defines values for TokenizerName.
|
|
2142
|
+
* @readonly
|
|
2143
|
+
*/
|
|
2144
|
+
exports.KnownTokenizerNames = void 0;
|
|
2102
2145
|
(function (KnownTokenizerNames) {
|
|
2103
2146
|
/**
|
|
2104
2147
|
* Grammar-based tokenizer that is suitable for processing most European-language documents. See
|
|
@@ -2167,6 +2210,11 @@ function isComplexField(field) {
|
|
|
2167
2210
|
*/
|
|
2168
2211
|
KnownTokenizerNames["Whitespace"] = "whitespace";
|
|
2169
2212
|
})(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
|
|
2213
|
+
/**
|
|
2214
|
+
* Defines values for TokenFilterName.
|
|
2215
|
+
* @readonly
|
|
2216
|
+
*/
|
|
2217
|
+
exports.KnownTokenFilterNames = void 0;
|
|
2170
2218
|
(function (KnownTokenFilterNames) {
|
|
2171
2219
|
/**
|
|
2172
2220
|
* A token filter that applies the Arabic normalizer to normalize the orthography. See
|
|
@@ -2345,6 +2393,11 @@ function isComplexField(field) {
|
|
|
2345
2393
|
*/
|
|
2346
2394
|
KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
|
|
2347
2395
|
})(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
|
|
2396
|
+
/**
|
|
2397
|
+
* Defines values for CharFilterName.
|
|
2398
|
+
* @readonly
|
|
2399
|
+
*/
|
|
2400
|
+
exports.KnownCharFilterNames = void 0;
|
|
2348
2401
|
(function (KnownCharFilterNames) {
|
|
2349
2402
|
/**
|
|
2350
2403
|
* A character filter that attempts to strip out HTML constructs. See
|
|
@@ -2352,6 +2405,12 @@ function isComplexField(field) {
|
|
|
2352
2405
|
*/
|
|
2353
2406
|
KnownCharFilterNames["HtmlStrip"] = "html_strip";
|
|
2354
2407
|
})(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
|
|
2408
|
+
/**
|
|
2409
|
+
* Defines values for AnalyzerName.
|
|
2410
|
+
* See https://docs.microsoft.com/rest/api/searchservice/Language-support
|
|
2411
|
+
* @readonly
|
|
2412
|
+
*/
|
|
2413
|
+
exports.KnownAnalyzerNames = void 0;
|
|
2355
2414
|
(function (KnownAnalyzerNames) {
|
|
2356
2415
|
/**
|
|
2357
2416
|
* Arabic
|
|
@@ -2790,6 +2849,9 @@ function convertSkillsToPublic(skills) {
|
|
|
2790
2849
|
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
2791
2850
|
result.push(skill);
|
|
2792
2851
|
break;
|
|
2852
|
+
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
2853
|
+
result.push(skill);
|
|
2854
|
+
break;
|
|
2793
2855
|
}
|
|
2794
2856
|
}
|
|
2795
2857
|
return result;
|
|
@@ -2877,7 +2939,7 @@ function convertFieldsToPublic(fields) {
|
|
|
2877
2939
|
return {
|
|
2878
2940
|
name: field.name,
|
|
2879
2941
|
type: field.type,
|
|
2880
|
-
fields: convertFieldsToPublic(field.fields)
|
|
2942
|
+
fields: convertFieldsToPublic(field.fields),
|
|
2881
2943
|
};
|
|
2882
2944
|
}
|
|
2883
2945
|
else {
|
|
@@ -2905,7 +2967,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
2905
2967
|
return {
|
|
2906
2968
|
name: field.name,
|
|
2907
2969
|
type: field.type,
|
|
2908
|
-
fields: convertFieldsToGenerated(field.fields)
|
|
2970
|
+
fields: convertFieldsToGenerated(field.fields),
|
|
2909
2971
|
};
|
|
2910
2972
|
}
|
|
2911
2973
|
else {
|
|
@@ -2974,7 +3036,7 @@ function convertEncryptionKeyToPublic(encryptionKey) {
|
|
|
2974
3036
|
keyName: encryptionKey.keyName,
|
|
2975
3037
|
keyVersion: encryptionKey.keyVersion,
|
|
2976
3038
|
vaultUrl: encryptionKey.vaultUri,
|
|
2977
|
-
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity)
|
|
3039
|
+
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
|
|
2978
3040
|
};
|
|
2979
3041
|
if (encryptionKey.accessCredentials) {
|
|
2980
3042
|
result.applicationId = encryptionKey.accessCredentials.applicationId;
|
|
@@ -2990,12 +3052,12 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
|
|
|
2990
3052
|
keyName: encryptionKey.keyName,
|
|
2991
3053
|
keyVersion: encryptionKey.keyVersion,
|
|
2992
3054
|
vaultUri: encryptionKey.vaultUrl,
|
|
2993
|
-
identity: encryptionKey.identity
|
|
3055
|
+
identity: encryptionKey.identity,
|
|
2994
3056
|
};
|
|
2995
3057
|
if (encryptionKey.applicationId) {
|
|
2996
3058
|
result.accessCredentials = {
|
|
2997
3059
|
applicationId: encryptionKey.applicationId,
|
|
2998
|
-
applicationSecret: encryptionKey.applicationSecret
|
|
3060
|
+
applicationSecret: encryptionKey.applicationSecret,
|
|
2999
3061
|
};
|
|
3000
3062
|
}
|
|
3001
3063
|
return result;
|
|
@@ -3015,7 +3077,8 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
3015
3077
|
normalizers: generatedIndex.normalizers,
|
|
3016
3078
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
3017
3079
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
3018
|
-
similarity: convertSimilarityToPublic(generatedIndex.similarity)
|
|
3080
|
+
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
3081
|
+
semanticSettings: generatedIndex.semanticSettings,
|
|
3019
3082
|
};
|
|
3020
3083
|
}
|
|
3021
3084
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
@@ -3027,7 +3090,7 @@ function generatedSearchResultToPublicSearchResult(results) {
|
|
|
3027
3090
|
highlights: _highlights,
|
|
3028
3091
|
rerankerScore,
|
|
3029
3092
|
captions,
|
|
3030
|
-
document: doc
|
|
3093
|
+
document: doc,
|
|
3031
3094
|
};
|
|
3032
3095
|
return obj;
|
|
3033
3096
|
});
|
|
@@ -3039,13 +3102,13 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
|
|
|
3039
3102
|
const doc = Object.assign({}, restProps);
|
|
3040
3103
|
const obj = {
|
|
3041
3104
|
text: _text,
|
|
3042
|
-
document: doc
|
|
3105
|
+
document: doc,
|
|
3043
3106
|
};
|
|
3044
3107
|
return obj;
|
|
3045
3108
|
});
|
|
3046
3109
|
const result = {
|
|
3047
3110
|
results: results,
|
|
3048
|
-
coverage: searchDocumentsResult.coverage
|
|
3111
|
+
coverage: searchDocumentsResult.coverage,
|
|
3049
3112
|
};
|
|
3050
3113
|
return result;
|
|
3051
3114
|
}
|
|
@@ -3064,7 +3127,8 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
3064
3127
|
analyzers: convertAnalyzersToGenerated(index.analyzers),
|
|
3065
3128
|
tokenizers: convertTokenizersToGenerated(index.tokenizers),
|
|
3066
3129
|
fields: convertFieldsToGenerated(index.fields),
|
|
3067
|
-
similarity: convertSimilarityToGenerated(index.similarity)
|
|
3130
|
+
similarity: convertSimilarityToGenerated(index.similarity),
|
|
3131
|
+
semanticSettings: index.semanticSettings,
|
|
3068
3132
|
};
|
|
3069
3133
|
}
|
|
3070
3134
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
@@ -3075,7 +3139,7 @@ function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
|
3075
3139
|
cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(generatedSkillset.cognitiveServicesAccount),
|
|
3076
3140
|
knowledgeStore: generatedSkillset.knowledgeStore,
|
|
3077
3141
|
etag: generatedSkillset.etag,
|
|
3078
|
-
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey)
|
|
3142
|
+
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey),
|
|
3079
3143
|
};
|
|
3080
3144
|
}
|
|
3081
3145
|
function publicSkillsetToGeneratedSkillset(skillset) {
|
|
@@ -3086,7 +3150,7 @@ function publicSkillsetToGeneratedSkillset(skillset) {
|
|
|
3086
3150
|
skills: skillset.skills,
|
|
3087
3151
|
cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount),
|
|
3088
3152
|
knowledgeStore: skillset.knowledgeStore,
|
|
3089
|
-
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey)
|
|
3153
|
+
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),
|
|
3090
3154
|
};
|
|
3091
3155
|
}
|
|
3092
3156
|
function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
@@ -3094,7 +3158,7 @@ function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
|
3094
3158
|
name: synonymMap.name,
|
|
3095
3159
|
encryptionKey: convertEncryptionKeyToPublic(synonymMap.encryptionKey),
|
|
3096
3160
|
etag: synonymMap.etag,
|
|
3097
|
-
synonyms: []
|
|
3161
|
+
synonyms: [],
|
|
3098
3162
|
};
|
|
3099
3163
|
if (synonymMap.synonyms) {
|
|
3100
3164
|
result.synonyms = synonymMap.synonyms.split("\n");
|
|
@@ -3107,7 +3171,7 @@ function publicSynonymMapToGeneratedSynonymMap(synonymMap) {
|
|
|
3107
3171
|
format: "solr",
|
|
3108
3172
|
encryptionKey: convertEncryptionKeyToGenerated(synonymMap.encryptionKey),
|
|
3109
3173
|
etag: synonymMap.etag,
|
|
3110
|
-
synonyms: synonymMap.synonyms.join("\n")
|
|
3174
|
+
synonyms: synonymMap.synonyms.join("\n"),
|
|
3111
3175
|
};
|
|
3112
3176
|
result.encryptionKey = convertEncryptionKeyToGenerated(synonymMap.encryptionKey);
|
|
3113
3177
|
return result;
|
|
@@ -3124,14 +3188,14 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
|
3124
3188
|
description: dataSource.description,
|
|
3125
3189
|
type: dataSource.type,
|
|
3126
3190
|
credentials: {
|
|
3127
|
-
connectionString: dataSource.connectionString
|
|
3191
|
+
connectionString: dataSource.connectionString,
|
|
3128
3192
|
},
|
|
3129
3193
|
container: dataSource.container,
|
|
3130
3194
|
identity: dataSource.identity,
|
|
3131
3195
|
etag: dataSource.etag,
|
|
3132
3196
|
dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
|
|
3133
3197
|
dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
|
|
3134
|
-
encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey)
|
|
3198
|
+
encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey),
|
|
3135
3199
|
};
|
|
3136
3200
|
}
|
|
3137
3201
|
function generatedDataSourceToPublicDataSource(dataSource) {
|
|
@@ -3145,7 +3209,7 @@ function generatedDataSourceToPublicDataSource(dataSource) {
|
|
|
3145
3209
|
etag: dataSource.etag,
|
|
3146
3210
|
dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
|
|
3147
3211
|
dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
|
|
3148
|
-
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey)
|
|
3212
|
+
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey),
|
|
3149
3213
|
};
|
|
3150
3214
|
}
|
|
3151
3215
|
function convertSearchIndexerDataIdentityToPublic(searchIndexerDataIdentity) {
|
|
@@ -3195,6 +3259,8 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3195
3259
|
function delay(timeInMs) {
|
|
3196
3260
|
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3197
3261
|
}
|
|
3262
|
+
const serviceVersions = ["2020-06-30", "2021-04-30-Preview"];
|
|
3263
|
+
const defaultServiceVersion = "2021-04-30-Preview";
|
|
3198
3264
|
|
|
3199
3265
|
// Copyright (c) Microsoft Corporation.
|
|
3200
3266
|
/**
|
|
@@ -3202,7 +3268,7 @@ function delay(timeInMs) {
|
|
|
3202
3268
|
* including querying documents in the index as well as
|
|
3203
3269
|
* adding, updating, and removing them.
|
|
3204
3270
|
*/
|
|
3205
|
-
class SearchClient
|
|
3271
|
+
class SearchClient {
|
|
3206
3272
|
/**
|
|
3207
3273
|
* Creates an instance of SearchClient.
|
|
3208
3274
|
*
|
|
@@ -3224,10 +3290,15 @@ class SearchClient$1 {
|
|
|
3224
3290
|
constructor(endpoint, indexName, credential, options = {}) {
|
|
3225
3291
|
/// Maintenance note: when updating supported API versions,
|
|
3226
3292
|
/// the ContinuationToken logic will need to be updated below.
|
|
3293
|
+
/**
|
|
3294
|
+
* The service version to use when communicating with the service.
|
|
3295
|
+
*/
|
|
3296
|
+
this.serviceVersion = defaultServiceVersion;
|
|
3227
3297
|
/**
|
|
3228
3298
|
* The API version to use when communicating with the service.
|
|
3299
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
3229
3300
|
*/
|
|
3230
|
-
this.apiVersion =
|
|
3301
|
+
this.apiVersion = defaultServiceVersion;
|
|
3231
3302
|
this.endpoint = endpoint;
|
|
3232
3303
|
this.indexName = indexName;
|
|
3233
3304
|
const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;
|
|
@@ -3249,18 +3320,25 @@ class SearchClient$1 {
|
|
|
3249
3320
|
"OData-MaxVersion",
|
|
3250
3321
|
"OData-Version",
|
|
3251
3322
|
"Prefer",
|
|
3252
|
-
"throttle-reason"
|
|
3253
|
-
]
|
|
3254
|
-
}
|
|
3323
|
+
"throttle-reason",
|
|
3324
|
+
],
|
|
3325
|
+
},
|
|
3255
3326
|
});
|
|
3256
|
-
let apiVersion = this.apiVersion;
|
|
3257
3327
|
if (options.apiVersion) {
|
|
3258
|
-
if (!
|
|
3328
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
3259
3329
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
3260
3330
|
}
|
|
3261
|
-
|
|
3331
|
+
this.serviceVersion = options.apiVersion;
|
|
3332
|
+
this.apiVersion = options.apiVersion;
|
|
3333
|
+
}
|
|
3334
|
+
if (options.serviceVersion) {
|
|
3335
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
3336
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
3337
|
+
}
|
|
3338
|
+
this.serviceVersion = options.serviceVersion;
|
|
3339
|
+
this.apiVersion = options.serviceVersion;
|
|
3262
3340
|
}
|
|
3263
|
-
this.client = new SearchClient(this.endpoint, this.indexName,
|
|
3341
|
+
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3264
3342
|
if (coreAuth.isTokenCredential(credential)) {
|
|
3265
3343
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
3266
3344
|
}
|
|
@@ -3285,7 +3363,7 @@ class SearchClient$1 {
|
|
|
3285
3363
|
catch (e) {
|
|
3286
3364
|
span.setStatus({
|
|
3287
3365
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3288
|
-
message: e.message
|
|
3366
|
+
message: e.message,
|
|
3289
3367
|
});
|
|
3290
3368
|
throw e;
|
|
3291
3369
|
}
|
|
@@ -3318,7 +3396,7 @@ class SearchClient$1 {
|
|
|
3318
3396
|
catch (e) {
|
|
3319
3397
|
span.setStatus({
|
|
3320
3398
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3321
|
-
message: e.message
|
|
3399
|
+
message: e.message,
|
|
3322
3400
|
});
|
|
3323
3401
|
throw e;
|
|
3324
3402
|
}
|
|
@@ -3341,14 +3419,14 @@ class SearchClient$1 {
|
|
|
3341
3419
|
coverage,
|
|
3342
3420
|
facets,
|
|
3343
3421
|
answers,
|
|
3344
|
-
continuationToken: this.encodeContinuationToken(nextLink, result.nextPageParameters)
|
|
3422
|
+
continuationToken: this.encodeContinuationToken(nextLink, result.nextPageParameters),
|
|
3345
3423
|
};
|
|
3346
3424
|
return deserialize(converted);
|
|
3347
3425
|
}
|
|
3348
3426
|
catch (e) {
|
|
3349
3427
|
span.setStatus({
|
|
3350
3428
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3351
|
-
message: e.message
|
|
3429
|
+
message: e.message,
|
|
3352
3430
|
});
|
|
3353
3431
|
throw e;
|
|
3354
3432
|
}
|
|
@@ -3377,7 +3455,7 @@ class SearchClient$1 {
|
|
|
3377
3455
|
if (firstPage.continuationToken) {
|
|
3378
3456
|
try {
|
|
3379
3457
|
for (var _b = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
|
|
3380
|
-
continuationToken: firstPage.continuationToken
|
|
3458
|
+
continuationToken: firstPage.continuationToken,
|
|
3381
3459
|
})), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3382
3460
|
const page = _c.value;
|
|
3383
3461
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
@@ -3404,7 +3482,7 @@ class SearchClient$1 {
|
|
|
3404
3482
|
},
|
|
3405
3483
|
byPage: (settings = {}) => {
|
|
3406
3484
|
return this.listSearchResultsPage(searchText, options, settings);
|
|
3407
|
-
}
|
|
3485
|
+
},
|
|
3408
3486
|
};
|
|
3409
3487
|
}
|
|
3410
3488
|
/**
|
|
@@ -3423,13 +3501,13 @@ class SearchClient$1 {
|
|
|
3423
3501
|
coverage,
|
|
3424
3502
|
facets,
|
|
3425
3503
|
answers,
|
|
3426
|
-
results: this.listSearchResults(pageResult, searchText, updatedOptions)
|
|
3504
|
+
results: this.listSearchResults(pageResult, searchText, updatedOptions),
|
|
3427
3505
|
};
|
|
3428
3506
|
}
|
|
3429
3507
|
catch (e) {
|
|
3430
3508
|
span.setStatus({
|
|
3431
3509
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3432
|
-
message: e.message
|
|
3510
|
+
message: e.message,
|
|
3433
3511
|
});
|
|
3434
3512
|
throw e;
|
|
3435
3513
|
}
|
|
@@ -3463,7 +3541,7 @@ class SearchClient$1 {
|
|
|
3463
3541
|
catch (e) {
|
|
3464
3542
|
span.setStatus({
|
|
3465
3543
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3466
|
-
message: e.message
|
|
3544
|
+
message: e.message,
|
|
3467
3545
|
});
|
|
3468
3546
|
throw e;
|
|
3469
3547
|
}
|
|
@@ -3485,7 +3563,7 @@ class SearchClient$1 {
|
|
|
3485
3563
|
catch (e) {
|
|
3486
3564
|
span.setStatus({
|
|
3487
3565
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3488
|
-
message: e.message
|
|
3566
|
+
message: e.message,
|
|
3489
3567
|
});
|
|
3490
3568
|
throw e;
|
|
3491
3569
|
}
|
|
@@ -3520,7 +3598,7 @@ class SearchClient$1 {
|
|
|
3520
3598
|
catch (e) {
|
|
3521
3599
|
span.setStatus({
|
|
3522
3600
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3523
|
-
message: e.message
|
|
3601
|
+
message: e.message,
|
|
3524
3602
|
});
|
|
3525
3603
|
throw e;
|
|
3526
3604
|
}
|
|
@@ -3543,7 +3621,7 @@ class SearchClient$1 {
|
|
|
3543
3621
|
catch (e) {
|
|
3544
3622
|
span.setStatus({
|
|
3545
3623
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3546
|
-
message: e.message
|
|
3624
|
+
message: e.message,
|
|
3547
3625
|
});
|
|
3548
3626
|
throw e;
|
|
3549
3627
|
}
|
|
@@ -3567,7 +3645,7 @@ class SearchClient$1 {
|
|
|
3567
3645
|
catch (e) {
|
|
3568
3646
|
span.setStatus({
|
|
3569
3647
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3570
|
-
message: e.message
|
|
3648
|
+
message: e.message,
|
|
3571
3649
|
});
|
|
3572
3650
|
throw e;
|
|
3573
3651
|
}
|
|
@@ -3591,7 +3669,7 @@ class SearchClient$1 {
|
|
|
3591
3669
|
catch (e) {
|
|
3592
3670
|
span.setStatus({
|
|
3593
3671
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3594
|
-
message: e.message
|
|
3672
|
+
message: e.message,
|
|
3595
3673
|
});
|
|
3596
3674
|
throw e;
|
|
3597
3675
|
}
|
|
@@ -3614,7 +3692,7 @@ class SearchClient$1 {
|
|
|
3614
3692
|
catch (e) {
|
|
3615
3693
|
span.setStatus({
|
|
3616
3694
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3617
|
-
message: e.message
|
|
3695
|
+
message: e.message,
|
|
3618
3696
|
});
|
|
3619
3697
|
throw e;
|
|
3620
3698
|
}
|
|
@@ -3629,7 +3707,7 @@ class SearchClient$1 {
|
|
|
3629
3707
|
const payload = JSON.stringify({
|
|
3630
3708
|
apiVersion: this.apiVersion,
|
|
3631
3709
|
nextLink,
|
|
3632
|
-
nextPageParameters
|
|
3710
|
+
nextPageParameters,
|
|
3633
3711
|
});
|
|
3634
3712
|
return encode(payload);
|
|
3635
3713
|
}
|
|
@@ -3645,7 +3723,7 @@ class SearchClient$1 {
|
|
|
3645
3723
|
}
|
|
3646
3724
|
return {
|
|
3647
3725
|
nextLink: result.nextLink,
|
|
3648
|
-
nextPageParameters: result.nextPageParameters
|
|
3726
|
+
nextPageParameters: result.nextPageParameters,
|
|
3649
3727
|
};
|
|
3650
3728
|
}
|
|
3651
3729
|
catch (e) {
|
|
@@ -3659,9 +3737,9 @@ class SearchClient$1 {
|
|
|
3659
3737
|
operationOptions: {
|
|
3660
3738
|
abortSignal,
|
|
3661
3739
|
requestOptions,
|
|
3662
|
-
tracingOptions
|
|
3740
|
+
tracingOptions,
|
|
3663
3741
|
},
|
|
3664
|
-
restOptions
|
|
3742
|
+
restOptions,
|
|
3665
3743
|
};
|
|
3666
3744
|
}
|
|
3667
3745
|
convertSelect(select) {
|
|
@@ -3724,7 +3802,7 @@ class SearchIndexingBufferedSender {
|
|
|
3724
3802
|
/**
|
|
3725
3803
|
* Event emitter/publisher used in the Buffered Sender
|
|
3726
3804
|
*/
|
|
3727
|
-
this.emitter = new
|
|
3805
|
+
this.emitter = new EventEmitter__default["default"]();
|
|
3728
3806
|
this.client = client;
|
|
3729
3807
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
3730
3808
|
// General Configuration properties
|
|
@@ -3756,14 +3834,14 @@ class SearchIndexingBufferedSender {
|
|
|
3756
3834
|
this.batchObject.upload(documents);
|
|
3757
3835
|
this.emitter.emit("batchAdded", {
|
|
3758
3836
|
action: "upload",
|
|
3759
|
-
documents
|
|
3837
|
+
documents,
|
|
3760
3838
|
});
|
|
3761
3839
|
return this.internalFlush(false, updatedOptions);
|
|
3762
3840
|
}
|
|
3763
3841
|
catch (e) {
|
|
3764
3842
|
span.setStatus({
|
|
3765
3843
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3766
|
-
message: e.message
|
|
3844
|
+
message: e.message,
|
|
3767
3845
|
});
|
|
3768
3846
|
throw e;
|
|
3769
3847
|
}
|
|
@@ -3783,14 +3861,14 @@ class SearchIndexingBufferedSender {
|
|
|
3783
3861
|
this.batchObject.merge(documents);
|
|
3784
3862
|
this.emitter.emit("batchAdded", {
|
|
3785
3863
|
action: "merge",
|
|
3786
|
-
documents
|
|
3864
|
+
documents,
|
|
3787
3865
|
});
|
|
3788
3866
|
return this.internalFlush(false, updatedOptions);
|
|
3789
3867
|
}
|
|
3790
3868
|
catch (e) {
|
|
3791
3869
|
span.setStatus({
|
|
3792
3870
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3793
|
-
message: e.message
|
|
3871
|
+
message: e.message,
|
|
3794
3872
|
});
|
|
3795
3873
|
throw e;
|
|
3796
3874
|
}
|
|
@@ -3810,14 +3888,14 @@ class SearchIndexingBufferedSender {
|
|
|
3810
3888
|
this.batchObject.mergeOrUpload(documents);
|
|
3811
3889
|
this.emitter.emit("batchAdded", {
|
|
3812
3890
|
action: "mergeOrUpload",
|
|
3813
|
-
documents
|
|
3891
|
+
documents,
|
|
3814
3892
|
});
|
|
3815
3893
|
return this.internalFlush(false, updatedOptions);
|
|
3816
3894
|
}
|
|
3817
3895
|
catch (e) {
|
|
3818
3896
|
span.setStatus({
|
|
3819
3897
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3820
|
-
message: e.message
|
|
3898
|
+
message: e.message,
|
|
3821
3899
|
});
|
|
3822
3900
|
throw e;
|
|
3823
3901
|
}
|
|
@@ -3837,14 +3915,14 @@ class SearchIndexingBufferedSender {
|
|
|
3837
3915
|
this.batchObject.delete(documents);
|
|
3838
3916
|
this.emitter.emit("batchAdded", {
|
|
3839
3917
|
action: "delete",
|
|
3840
|
-
documents
|
|
3918
|
+
documents,
|
|
3841
3919
|
});
|
|
3842
3920
|
return this.internalFlush(false, updatedOptions);
|
|
3843
3921
|
}
|
|
3844
3922
|
catch (e) {
|
|
3845
3923
|
span.setStatus({
|
|
3846
3924
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3847
|
-
message: e.message
|
|
3925
|
+
message: e.message,
|
|
3848
3926
|
});
|
|
3849
3927
|
throw e;
|
|
3850
3928
|
}
|
|
@@ -3867,7 +3945,7 @@ class SearchIndexingBufferedSender {
|
|
|
3867
3945
|
catch (e) {
|
|
3868
3946
|
span.setStatus({
|
|
3869
3947
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3870
|
-
message: e.message
|
|
3948
|
+
message: e.message,
|
|
3871
3949
|
});
|
|
3872
3950
|
throw e;
|
|
3873
3951
|
}
|
|
@@ -3938,7 +4016,7 @@ class SearchIndexingBufferedSender {
|
|
|
3938
4016
|
// Cut the payload size to half
|
|
3939
4017
|
const splitActionsArray = [
|
|
3940
4018
|
actionsToSend.slice(0, actionsToSend.length / 2),
|
|
3941
|
-
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length)
|
|
4019
|
+
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length),
|
|
3942
4020
|
];
|
|
3943
4021
|
this.initialBatchActionCount = splitActionsArray[0].length; // So, we do not want 413 happening again and again
|
|
3944
4022
|
for (const actions of splitActionsArray) {
|
|
@@ -4209,7 +4287,7 @@ const AzureActiveDirectoryApplicationCredentials = {
|
|
|
4209
4287
|
}
|
|
4210
4288
|
}
|
|
4211
4289
|
};
|
|
4212
|
-
const SearchError
|
|
4290
|
+
const SearchError = {
|
|
4213
4291
|
type: {
|
|
4214
4292
|
name: "Composite",
|
|
4215
4293
|
className: "SearchError",
|
|
@@ -4747,7 +4825,7 @@ const IndexerExecutionResult = {
|
|
|
4747
4825
|
serializedName: "currentState",
|
|
4748
4826
|
type: {
|
|
4749
4827
|
name: "Composite",
|
|
4750
|
-
className: "
|
|
4828
|
+
className: "IndexerState"
|
|
4751
4829
|
}
|
|
4752
4830
|
},
|
|
4753
4831
|
errorMessage: {
|
|
@@ -4833,10 +4911,10 @@ const IndexerExecutionResult = {
|
|
|
4833
4911
|
}
|
|
4834
4912
|
}
|
|
4835
4913
|
};
|
|
4836
|
-
const
|
|
4914
|
+
const IndexerState = {
|
|
4837
4915
|
type: {
|
|
4838
4916
|
name: "Composite",
|
|
4839
|
-
className: "
|
|
4917
|
+
className: "IndexerState",
|
|
4840
4918
|
modelProperties: {
|
|
4841
4919
|
mode: {
|
|
4842
4920
|
serializedName: "mode",
|
|
@@ -4845,28 +4923,28 @@ const IndexerCurrentState = {
|
|
|
4845
4923
|
name: "String"
|
|
4846
4924
|
}
|
|
4847
4925
|
},
|
|
4848
|
-
|
|
4926
|
+
allDocumentsInitialChangeTrackingState: {
|
|
4849
4927
|
serializedName: "allDocsInitialChangeTrackingState",
|
|
4850
4928
|
readOnly: true,
|
|
4851
4929
|
type: {
|
|
4852
4930
|
name: "String"
|
|
4853
4931
|
}
|
|
4854
4932
|
},
|
|
4855
|
-
|
|
4933
|
+
allDocumentsFinalChangeTrackingState: {
|
|
4856
4934
|
serializedName: "allDocsFinalChangeTrackingState",
|
|
4857
4935
|
readOnly: true,
|
|
4858
4936
|
type: {
|
|
4859
4937
|
name: "String"
|
|
4860
4938
|
}
|
|
4861
4939
|
},
|
|
4862
|
-
|
|
4940
|
+
resetDocumentsInitialChangeTrackingState: {
|
|
4863
4941
|
serializedName: "resetDocsInitialChangeTrackingState",
|
|
4864
4942
|
readOnly: true,
|
|
4865
4943
|
type: {
|
|
4866
4944
|
name: "String"
|
|
4867
4945
|
}
|
|
4868
4946
|
},
|
|
4869
|
-
|
|
4947
|
+
resetDocumentsFinalChangeTrackingState: {
|
|
4870
4948
|
serializedName: "resetDocsFinalChangeTrackingState",
|
|
4871
4949
|
readOnly: true,
|
|
4872
4950
|
type: {
|
|
@@ -5594,6 +5672,13 @@ const SearchIndex = {
|
|
|
5594
5672
|
className: "Similarity"
|
|
5595
5673
|
}
|
|
5596
5674
|
},
|
|
5675
|
+
semanticSettings: {
|
|
5676
|
+
serializedName: "semantic",
|
|
5677
|
+
type: {
|
|
5678
|
+
name: "Composite",
|
|
5679
|
+
className: "SemanticSettings"
|
|
5680
|
+
}
|
|
5681
|
+
},
|
|
5597
5682
|
etag: {
|
|
5598
5683
|
serializedName: "@odata\\.etag",
|
|
5599
5684
|
type: {
|
|
@@ -6033,6 +6118,101 @@ const Similarity = {
|
|
|
6033
6118
|
}
|
|
6034
6119
|
}
|
|
6035
6120
|
};
|
|
6121
|
+
const SemanticSettings = {
|
|
6122
|
+
type: {
|
|
6123
|
+
name: "Composite",
|
|
6124
|
+
className: "SemanticSettings",
|
|
6125
|
+
modelProperties: {
|
|
6126
|
+
configurations: {
|
|
6127
|
+
serializedName: "configurations",
|
|
6128
|
+
type: {
|
|
6129
|
+
name: "Sequence",
|
|
6130
|
+
element: {
|
|
6131
|
+
type: {
|
|
6132
|
+
name: "Composite",
|
|
6133
|
+
className: "SemanticConfiguration"
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6136
|
+
}
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
};
|
|
6141
|
+
const SemanticConfiguration = {
|
|
6142
|
+
type: {
|
|
6143
|
+
name: "Composite",
|
|
6144
|
+
className: "SemanticConfiguration",
|
|
6145
|
+
modelProperties: {
|
|
6146
|
+
name: {
|
|
6147
|
+
serializedName: "name",
|
|
6148
|
+
required: true,
|
|
6149
|
+
type: {
|
|
6150
|
+
name: "String"
|
|
6151
|
+
}
|
|
6152
|
+
},
|
|
6153
|
+
prioritizedFields: {
|
|
6154
|
+
serializedName: "prioritizedFields",
|
|
6155
|
+
type: {
|
|
6156
|
+
name: "Composite",
|
|
6157
|
+
className: "PrioritizedFields"
|
|
6158
|
+
}
|
|
6159
|
+
}
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
};
|
|
6163
|
+
const PrioritizedFields = {
|
|
6164
|
+
type: {
|
|
6165
|
+
name: "Composite",
|
|
6166
|
+
className: "PrioritizedFields",
|
|
6167
|
+
modelProperties: {
|
|
6168
|
+
titleField: {
|
|
6169
|
+
serializedName: "titleField",
|
|
6170
|
+
type: {
|
|
6171
|
+
name: "Composite",
|
|
6172
|
+
className: "SemanticField"
|
|
6173
|
+
}
|
|
6174
|
+
},
|
|
6175
|
+
prioritizedContentFields: {
|
|
6176
|
+
serializedName: "prioritizedContentFields",
|
|
6177
|
+
type: {
|
|
6178
|
+
name: "Sequence",
|
|
6179
|
+
element: {
|
|
6180
|
+
type: {
|
|
6181
|
+
name: "Composite",
|
|
6182
|
+
className: "SemanticField"
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
6185
|
+
}
|
|
6186
|
+
},
|
|
6187
|
+
prioritizedKeywordsFields: {
|
|
6188
|
+
serializedName: "prioritizedKeywordsFields",
|
|
6189
|
+
type: {
|
|
6190
|
+
name: "Sequence",
|
|
6191
|
+
element: {
|
|
6192
|
+
type: {
|
|
6193
|
+
name: "Composite",
|
|
6194
|
+
className: "SemanticField"
|
|
6195
|
+
}
|
|
6196
|
+
}
|
|
6197
|
+
}
|
|
6198
|
+
}
|
|
6199
|
+
}
|
|
6200
|
+
}
|
|
6201
|
+
};
|
|
6202
|
+
const SemanticField = {
|
|
6203
|
+
type: {
|
|
6204
|
+
name: "Composite",
|
|
6205
|
+
className: "SemanticField",
|
|
6206
|
+
modelProperties: {
|
|
6207
|
+
name: {
|
|
6208
|
+
serializedName: "fieldName",
|
|
6209
|
+
type: {
|
|
6210
|
+
name: "String"
|
|
6211
|
+
}
|
|
6212
|
+
}
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
};
|
|
6036
6216
|
const ListIndexesResult = {
|
|
6037
6217
|
type: {
|
|
6038
6218
|
name: "Composite",
|
|
@@ -6195,33 +6375,95 @@ const AnalyzedTokenInfo = {
|
|
|
6195
6375
|
}
|
|
6196
6376
|
}
|
|
6197
6377
|
};
|
|
6198
|
-
const
|
|
6378
|
+
const SearchAlias = {
|
|
6199
6379
|
type: {
|
|
6200
6380
|
name: "Composite",
|
|
6201
|
-
className: "
|
|
6381
|
+
className: "SearchAlias",
|
|
6202
6382
|
modelProperties: {
|
|
6203
|
-
|
|
6204
|
-
serializedName: "
|
|
6383
|
+
name: {
|
|
6384
|
+
serializedName: "name",
|
|
6385
|
+
required: true,
|
|
6205
6386
|
type: {
|
|
6206
|
-
name: "
|
|
6207
|
-
className: "ServiceCounters"
|
|
6387
|
+
name: "String"
|
|
6208
6388
|
}
|
|
6209
6389
|
},
|
|
6210
|
-
|
|
6211
|
-
serializedName: "
|
|
6390
|
+
indexes: {
|
|
6391
|
+
serializedName: "indexes",
|
|
6392
|
+
required: true,
|
|
6212
6393
|
type: {
|
|
6213
|
-
name: "
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
}
|
|
6394
|
+
name: "Sequence",
|
|
6395
|
+
element: {
|
|
6396
|
+
type: {
|
|
6397
|
+
name: "String"
|
|
6398
|
+
}
|
|
6399
|
+
}
|
|
6400
|
+
}
|
|
6401
|
+
},
|
|
6402
|
+
etag: {
|
|
6403
|
+
serializedName: "@odata\\.etag",
|
|
6404
|
+
type: {
|
|
6405
|
+
name: "String"
|
|
6406
|
+
}
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
}
|
|
6410
|
+
};
|
|
6411
|
+
const ListAliasesResult = {
|
|
6412
|
+
type: {
|
|
6413
|
+
name: "Composite",
|
|
6414
|
+
className: "ListAliasesResult",
|
|
6415
|
+
modelProperties: {
|
|
6416
|
+
aliases: {
|
|
6417
|
+
serializedName: "value",
|
|
6418
|
+
required: true,
|
|
6419
|
+
readOnly: true,
|
|
6420
|
+
type: {
|
|
6421
|
+
name: "Sequence",
|
|
6422
|
+
element: {
|
|
6423
|
+
type: {
|
|
6424
|
+
name: "Composite",
|
|
6425
|
+
className: "SearchAlias"
|
|
6426
|
+
}
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
}
|
|
6430
|
+
}
|
|
6431
|
+
}
|
|
6432
|
+
};
|
|
6433
|
+
const ServiceStatistics = {
|
|
6434
|
+
type: {
|
|
6435
|
+
name: "Composite",
|
|
6436
|
+
className: "ServiceStatistics",
|
|
6437
|
+
modelProperties: {
|
|
6438
|
+
counters: {
|
|
6439
|
+
serializedName: "counters",
|
|
6440
|
+
type: {
|
|
6441
|
+
name: "Composite",
|
|
6442
|
+
className: "ServiceCounters"
|
|
6443
|
+
}
|
|
6444
|
+
},
|
|
6445
|
+
limits: {
|
|
6446
|
+
serializedName: "limits",
|
|
6447
|
+
type: {
|
|
6448
|
+
name: "Composite",
|
|
6449
|
+
className: "ServiceLimits"
|
|
6450
|
+
}
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6453
|
+
}
|
|
6454
|
+
};
|
|
6220
6455
|
const ServiceCounters = {
|
|
6221
6456
|
type: {
|
|
6222
6457
|
name: "Composite",
|
|
6223
6458
|
className: "ServiceCounters",
|
|
6224
6459
|
modelProperties: {
|
|
6460
|
+
aliasCounter: {
|
|
6461
|
+
serializedName: "aliasesCount",
|
|
6462
|
+
type: {
|
|
6463
|
+
name: "Composite",
|
|
6464
|
+
className: "ResourceCounter"
|
|
6465
|
+
}
|
|
6466
|
+
},
|
|
6225
6467
|
documentCounter: {
|
|
6226
6468
|
serializedName: "documentCount",
|
|
6227
6469
|
type: {
|
|
@@ -7166,6 +7408,52 @@ const WebApiSkill = {
|
|
|
7166
7408
|
} })
|
|
7167
7409
|
}
|
|
7168
7410
|
};
|
|
7411
|
+
const AzureMachineLearningSkill = {
|
|
7412
|
+
serializedName: "#Microsoft.Skills.Custom.AmlSkill",
|
|
7413
|
+
type: {
|
|
7414
|
+
name: "Composite",
|
|
7415
|
+
className: "AzureMachineLearningSkill",
|
|
7416
|
+
uberParent: "SearchIndexerSkill",
|
|
7417
|
+
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7418
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
|
|
7419
|
+
serializedName: "uri",
|
|
7420
|
+
nullable: true,
|
|
7421
|
+
type: {
|
|
7422
|
+
name: "String"
|
|
7423
|
+
}
|
|
7424
|
+
}, authenticationKey: {
|
|
7425
|
+
serializedName: "key",
|
|
7426
|
+
nullable: true,
|
|
7427
|
+
type: {
|
|
7428
|
+
name: "String"
|
|
7429
|
+
}
|
|
7430
|
+
}, resourceId: {
|
|
7431
|
+
serializedName: "resourceId",
|
|
7432
|
+
nullable: true,
|
|
7433
|
+
type: {
|
|
7434
|
+
name: "String"
|
|
7435
|
+
}
|
|
7436
|
+
}, timeout: {
|
|
7437
|
+
serializedName: "timeout",
|
|
7438
|
+
nullable: true,
|
|
7439
|
+
type: {
|
|
7440
|
+
name: "TimeSpan"
|
|
7441
|
+
}
|
|
7442
|
+
}, region: {
|
|
7443
|
+
serializedName: "region",
|
|
7444
|
+
nullable: true,
|
|
7445
|
+
type: {
|
|
7446
|
+
name: "String"
|
|
7447
|
+
}
|
|
7448
|
+
}, degreeOfParallelism: {
|
|
7449
|
+
serializedName: "degreeOfParallelism",
|
|
7450
|
+
nullable: true,
|
|
7451
|
+
type: {
|
|
7452
|
+
name: "Number"
|
|
7453
|
+
}
|
|
7454
|
+
} })
|
|
7455
|
+
}
|
|
7456
|
+
};
|
|
7169
7457
|
const DefaultCognitiveServicesAccount = {
|
|
7170
7458
|
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7171
7459
|
type: {
|
|
@@ -8824,6 +9112,7 @@ let discriminators = {
|
|
|
8824
9112
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
8825
9113
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
8826
9114
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
9115
|
+
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
8827
9116
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
8828
9117
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
8829
9118
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -8878,7 +9167,7 @@ let discriminators = {
|
|
|
8878
9167
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
|
|
8879
9168
|
};
|
|
8880
9169
|
|
|
8881
|
-
var Mappers
|
|
9170
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
8882
9171
|
__proto__: null,
|
|
8883
9172
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
8884
9173
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -8888,7 +9177,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8888
9177
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
8889
9178
|
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
8890
9179
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
8891
|
-
SearchError: SearchError
|
|
9180
|
+
SearchError: SearchError,
|
|
8892
9181
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
8893
9182
|
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
8894
9183
|
SearchIndexer: SearchIndexer,
|
|
@@ -8901,7 +9190,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8901
9190
|
ListIndexersResult: ListIndexersResult,
|
|
8902
9191
|
SearchIndexerStatus: SearchIndexerStatus,
|
|
8903
9192
|
IndexerExecutionResult: IndexerExecutionResult,
|
|
8904
|
-
|
|
9193
|
+
IndexerState: IndexerState,
|
|
8905
9194
|
SearchIndexerError: SearchIndexerError,
|
|
8906
9195
|
SearchIndexerWarning: SearchIndexerWarning,
|
|
8907
9196
|
SearchIndexerLimits: SearchIndexerLimits,
|
|
@@ -8930,11 +9219,17 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8930
9219
|
CharFilter: CharFilter,
|
|
8931
9220
|
LexicalNormalizer: LexicalNormalizer,
|
|
8932
9221
|
Similarity: Similarity,
|
|
9222
|
+
SemanticSettings: SemanticSettings,
|
|
9223
|
+
SemanticConfiguration: SemanticConfiguration,
|
|
9224
|
+
PrioritizedFields: PrioritizedFields,
|
|
9225
|
+
SemanticField: SemanticField,
|
|
8933
9226
|
ListIndexesResult: ListIndexesResult,
|
|
8934
9227
|
GetIndexStatisticsResult: GetIndexStatisticsResult,
|
|
8935
9228
|
AnalyzeRequest: AnalyzeRequest,
|
|
8936
9229
|
AnalyzeResult: AnalyzeResult,
|
|
8937
9230
|
AnalyzedTokenInfo: AnalyzedTokenInfo,
|
|
9231
|
+
SearchAlias: SearchAlias,
|
|
9232
|
+
ListAliasesResult: ListAliasesResult,
|
|
8938
9233
|
ServiceStatistics: ServiceStatistics,
|
|
8939
9234
|
ServiceCounters: ServiceCounters,
|
|
8940
9235
|
ResourceCounter: ResourceCounter,
|
|
@@ -8968,6 +9263,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
8968
9263
|
TextTranslationSkill: TextTranslationSkill,
|
|
8969
9264
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
8970
9265
|
WebApiSkill: WebApiSkill,
|
|
9266
|
+
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
8971
9267
|
DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
|
|
8972
9268
|
CognitiveServicesAccountKey: CognitiveServicesAccountKey,
|
|
8973
9269
|
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
@@ -9034,7 +9330,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9034
9330
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9035
9331
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9036
9332
|
*/
|
|
9037
|
-
const contentType
|
|
9333
|
+
const contentType = {
|
|
9038
9334
|
parameterPath: ["options", "contentType"],
|
|
9039
9335
|
mapper: {
|
|
9040
9336
|
defaultValue: "application/json",
|
|
@@ -9049,7 +9345,7 @@ const dataSource = {
|
|
|
9049
9345
|
parameterPath: "dataSource",
|
|
9050
9346
|
mapper: SearchIndexerDataSource
|
|
9051
9347
|
};
|
|
9052
|
-
const accept
|
|
9348
|
+
const accept = {
|
|
9053
9349
|
parameterPath: "accept",
|
|
9054
9350
|
mapper: {
|
|
9055
9351
|
defaultValue: "application/json",
|
|
@@ -9060,7 +9356,7 @@ const accept$1 = {
|
|
|
9060
9356
|
}
|
|
9061
9357
|
}
|
|
9062
9358
|
};
|
|
9063
|
-
const endpoint
|
|
9359
|
+
const endpoint = {
|
|
9064
9360
|
parameterPath: "endpoint",
|
|
9065
9361
|
mapper: {
|
|
9066
9362
|
serializedName: "endpoint",
|
|
@@ -9081,7 +9377,7 @@ const dataSourceName = {
|
|
|
9081
9377
|
}
|
|
9082
9378
|
}
|
|
9083
9379
|
};
|
|
9084
|
-
const xMsClientRequestId
|
|
9380
|
+
const xMsClientRequestId = {
|
|
9085
9381
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
9086
9382
|
mapper: {
|
|
9087
9383
|
serializedName: "x-ms-client-request-id",
|
|
@@ -9119,7 +9415,7 @@ const prefer = {
|
|
|
9119
9415
|
}
|
|
9120
9416
|
}
|
|
9121
9417
|
};
|
|
9122
|
-
const apiVersion
|
|
9418
|
+
const apiVersion = {
|
|
9123
9419
|
parameterPath: "apiVersion",
|
|
9124
9420
|
mapper: {
|
|
9125
9421
|
serializedName: "api-version",
|
|
@@ -9138,7 +9434,7 @@ const skipIndexerResetRequirementForCache = {
|
|
|
9138
9434
|
}
|
|
9139
9435
|
}
|
|
9140
9436
|
};
|
|
9141
|
-
const select
|
|
9437
|
+
const select = {
|
|
9142
9438
|
parameterPath: ["options", "select"],
|
|
9143
9439
|
mapper: {
|
|
9144
9440
|
serializedName: "$select",
|
|
@@ -9220,7 +9516,7 @@ const index = {
|
|
|
9220
9516
|
parameterPath: "index",
|
|
9221
9517
|
mapper: SearchIndex
|
|
9222
9518
|
};
|
|
9223
|
-
const indexName
|
|
9519
|
+
const indexName = {
|
|
9224
9520
|
parameterPath: "indexName",
|
|
9225
9521
|
mapper: {
|
|
9226
9522
|
serializedName: "indexName",
|
|
@@ -9243,6 +9539,20 @@ const request = {
|
|
|
9243
9539
|
parameterPath: "request",
|
|
9244
9540
|
mapper: AnalyzeRequest
|
|
9245
9541
|
};
|
|
9542
|
+
const alias = {
|
|
9543
|
+
parameterPath: "alias",
|
|
9544
|
+
mapper: SearchAlias
|
|
9545
|
+
};
|
|
9546
|
+
const aliasName = {
|
|
9547
|
+
parameterPath: "aliasName",
|
|
9548
|
+
mapper: {
|
|
9549
|
+
serializedName: "aliasName",
|
|
9550
|
+
required: true,
|
|
9551
|
+
type: {
|
|
9552
|
+
name: "String"
|
|
9553
|
+
}
|
|
9554
|
+
}
|
|
9555
|
+
};
|
|
9246
9556
|
|
|
9247
9557
|
/*
|
|
9248
9558
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -9267,7 +9577,7 @@ class DataSourcesImpl {
|
|
|
9267
9577
|
* @param options The options parameters.
|
|
9268
9578
|
*/
|
|
9269
9579
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
9270
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
|
|
9580
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$5);
|
|
9271
9581
|
}
|
|
9272
9582
|
/**
|
|
9273
9583
|
* Deletes a datasource.
|
|
@@ -9275,7 +9585,7 @@ class DataSourcesImpl {
|
|
|
9275
9585
|
* @param options The options parameters.
|
|
9276
9586
|
*/
|
|
9277
9587
|
delete(dataSourceName, options) {
|
|
9278
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
|
|
9588
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$5);
|
|
9279
9589
|
}
|
|
9280
9590
|
/**
|
|
9281
9591
|
* Retrieves a datasource definition.
|
|
@@ -9283,14 +9593,14 @@ class DataSourcesImpl {
|
|
|
9283
9593
|
* @param options The options parameters.
|
|
9284
9594
|
*/
|
|
9285
9595
|
get(dataSourceName, options) {
|
|
9286
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
9596
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$5);
|
|
9287
9597
|
}
|
|
9288
9598
|
/**
|
|
9289
9599
|
* Lists all datasources available for a search service.
|
|
9290
9600
|
* @param options The options parameters.
|
|
9291
9601
|
*/
|
|
9292
9602
|
list(options) {
|
|
9293
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
9603
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$5);
|
|
9294
9604
|
}
|
|
9295
9605
|
/**
|
|
9296
9606
|
* Creates a new datasource.
|
|
@@ -9298,12 +9608,12 @@ class DataSourcesImpl {
|
|
|
9298
9608
|
* @param options The options parameters.
|
|
9299
9609
|
*/
|
|
9300
9610
|
create(dataSource, options) {
|
|
9301
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
|
|
9611
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$5);
|
|
9302
9612
|
}
|
|
9303
9613
|
}
|
|
9304
9614
|
// Operation Specifications
|
|
9305
|
-
const serializer$
|
|
9306
|
-
const createOrUpdateOperationSpec = {
|
|
9615
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9616
|
+
const createOrUpdateOperationSpec$5 = {
|
|
9307
9617
|
path: "/datasources('{dataSourceName}')",
|
|
9308
9618
|
httpMethod: "PUT",
|
|
9309
9619
|
responses: {
|
|
@@ -9314,47 +9624,47 @@ const createOrUpdateOperationSpec = {
|
|
|
9314
9624
|
bodyMapper: SearchIndexerDataSource
|
|
9315
9625
|
},
|
|
9316
9626
|
default: {
|
|
9317
|
-
bodyMapper: SearchError
|
|
9627
|
+
bodyMapper: SearchError
|
|
9318
9628
|
}
|
|
9319
9629
|
},
|
|
9320
9630
|
requestBody: dataSource,
|
|
9321
9631
|
queryParameters: [
|
|
9322
|
-
apiVersion
|
|
9632
|
+
apiVersion,
|
|
9323
9633
|
skipIndexerResetRequirementForCache
|
|
9324
9634
|
],
|
|
9325
|
-
urlParameters: [endpoint
|
|
9635
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9326
9636
|
headerParameters: [
|
|
9327
|
-
contentType
|
|
9328
|
-
accept
|
|
9329
|
-
xMsClientRequestId
|
|
9637
|
+
contentType,
|
|
9638
|
+
accept,
|
|
9639
|
+
xMsClientRequestId,
|
|
9330
9640
|
ifMatch,
|
|
9331
9641
|
ifNoneMatch,
|
|
9332
9642
|
prefer
|
|
9333
9643
|
],
|
|
9334
9644
|
mediaType: "json",
|
|
9335
|
-
serializer: serializer$
|
|
9645
|
+
serializer: serializer$6
|
|
9336
9646
|
};
|
|
9337
|
-
const deleteOperationSpec = {
|
|
9647
|
+
const deleteOperationSpec$5 = {
|
|
9338
9648
|
path: "/datasources('{dataSourceName}')",
|
|
9339
9649
|
httpMethod: "DELETE",
|
|
9340
9650
|
responses: {
|
|
9341
9651
|
204: {},
|
|
9342
9652
|
404: {},
|
|
9343
9653
|
default: {
|
|
9344
|
-
bodyMapper: SearchError
|
|
9654
|
+
bodyMapper: SearchError
|
|
9345
9655
|
}
|
|
9346
9656
|
},
|
|
9347
|
-
queryParameters: [apiVersion
|
|
9348
|
-
urlParameters: [endpoint
|
|
9657
|
+
queryParameters: [apiVersion],
|
|
9658
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9349
9659
|
headerParameters: [
|
|
9350
|
-
accept
|
|
9351
|
-
xMsClientRequestId
|
|
9660
|
+
accept,
|
|
9661
|
+
xMsClientRequestId,
|
|
9352
9662
|
ifMatch,
|
|
9353
9663
|
ifNoneMatch
|
|
9354
9664
|
],
|
|
9355
|
-
serializer: serializer$
|
|
9665
|
+
serializer: serializer$6
|
|
9356
9666
|
};
|
|
9357
|
-
const getOperationSpec$
|
|
9667
|
+
const getOperationSpec$5 = {
|
|
9358
9668
|
path: "/datasources('{dataSourceName}')",
|
|
9359
9669
|
httpMethod: "GET",
|
|
9360
9670
|
responses: {
|
|
@@ -9362,15 +9672,15 @@ const getOperationSpec$1 = {
|
|
|
9362
9672
|
bodyMapper: SearchIndexerDataSource
|
|
9363
9673
|
},
|
|
9364
9674
|
default: {
|
|
9365
|
-
bodyMapper: SearchError
|
|
9675
|
+
bodyMapper: SearchError
|
|
9366
9676
|
}
|
|
9367
9677
|
},
|
|
9368
|
-
queryParameters: [apiVersion
|
|
9369
|
-
urlParameters: [endpoint
|
|
9370
|
-
headerParameters: [accept
|
|
9371
|
-
serializer: serializer$
|
|
9678
|
+
queryParameters: [apiVersion],
|
|
9679
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9680
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9681
|
+
serializer: serializer$6
|
|
9372
9682
|
};
|
|
9373
|
-
const listOperationSpec = {
|
|
9683
|
+
const listOperationSpec$5 = {
|
|
9374
9684
|
path: "/datasources",
|
|
9375
9685
|
httpMethod: "GET",
|
|
9376
9686
|
responses: {
|
|
@@ -9378,15 +9688,15 @@ const listOperationSpec = {
|
|
|
9378
9688
|
bodyMapper: ListDataSourcesResult
|
|
9379
9689
|
},
|
|
9380
9690
|
default: {
|
|
9381
|
-
bodyMapper: SearchError
|
|
9691
|
+
bodyMapper: SearchError
|
|
9382
9692
|
}
|
|
9383
9693
|
},
|
|
9384
|
-
queryParameters: [apiVersion
|
|
9385
|
-
urlParameters: [endpoint
|
|
9386
|
-
headerParameters: [accept
|
|
9387
|
-
serializer: serializer$
|
|
9694
|
+
queryParameters: [apiVersion, select],
|
|
9695
|
+
urlParameters: [endpoint],
|
|
9696
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9697
|
+
serializer: serializer$6
|
|
9388
9698
|
};
|
|
9389
|
-
const createOperationSpec = {
|
|
9699
|
+
const createOperationSpec$5 = {
|
|
9390
9700
|
path: "/datasources",
|
|
9391
9701
|
httpMethod: "POST",
|
|
9392
9702
|
responses: {
|
|
@@ -9394,19 +9704,19 @@ const createOperationSpec = {
|
|
|
9394
9704
|
bodyMapper: SearchIndexerDataSource
|
|
9395
9705
|
},
|
|
9396
9706
|
default: {
|
|
9397
|
-
bodyMapper: SearchError
|
|
9707
|
+
bodyMapper: SearchError
|
|
9398
9708
|
}
|
|
9399
9709
|
},
|
|
9400
9710
|
requestBody: dataSource,
|
|
9401
|
-
queryParameters: [apiVersion
|
|
9402
|
-
urlParameters: [endpoint
|
|
9711
|
+
queryParameters: [apiVersion],
|
|
9712
|
+
urlParameters: [endpoint],
|
|
9403
9713
|
headerParameters: [
|
|
9404
|
-
contentType
|
|
9405
|
-
accept
|
|
9406
|
-
xMsClientRequestId
|
|
9714
|
+
contentType,
|
|
9715
|
+
accept,
|
|
9716
|
+
xMsClientRequestId
|
|
9407
9717
|
],
|
|
9408
9718
|
mediaType: "json",
|
|
9409
|
-
serializer: serializer$
|
|
9719
|
+
serializer: serializer$6
|
|
9410
9720
|
};
|
|
9411
9721
|
|
|
9412
9722
|
/*
|
|
@@ -9456,7 +9766,7 @@ class IndexersImpl {
|
|
|
9456
9766
|
* @param options The options parameters.
|
|
9457
9767
|
*/
|
|
9458
9768
|
createOrUpdate(indexerName, indexer, options) {
|
|
9459
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
9769
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$4);
|
|
9460
9770
|
}
|
|
9461
9771
|
/**
|
|
9462
9772
|
* Deletes an indexer.
|
|
@@ -9464,7 +9774,7 @@ class IndexersImpl {
|
|
|
9464
9774
|
* @param options The options parameters.
|
|
9465
9775
|
*/
|
|
9466
9776
|
delete(indexerName, options) {
|
|
9467
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
9777
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$4);
|
|
9468
9778
|
}
|
|
9469
9779
|
/**
|
|
9470
9780
|
* Retrieves an indexer definition.
|
|
@@ -9472,14 +9782,14 @@ class IndexersImpl {
|
|
|
9472
9782
|
* @param options The options parameters.
|
|
9473
9783
|
*/
|
|
9474
9784
|
get(indexerName, options) {
|
|
9475
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
9785
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$4);
|
|
9476
9786
|
}
|
|
9477
9787
|
/**
|
|
9478
9788
|
* Lists all indexers available for a search service.
|
|
9479
9789
|
* @param options The options parameters.
|
|
9480
9790
|
*/
|
|
9481
9791
|
list(options) {
|
|
9482
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9792
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
9483
9793
|
}
|
|
9484
9794
|
/**
|
|
9485
9795
|
* Creates a new indexer.
|
|
@@ -9487,7 +9797,7 @@ class IndexersImpl {
|
|
|
9487
9797
|
* @param options The options parameters.
|
|
9488
9798
|
*/
|
|
9489
9799
|
create(indexer, options) {
|
|
9490
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
9800
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$4);
|
|
9491
9801
|
}
|
|
9492
9802
|
/**
|
|
9493
9803
|
* Returns the current status and execution history of an indexer.
|
|
@@ -9499,20 +9809,20 @@ class IndexersImpl {
|
|
|
9499
9809
|
}
|
|
9500
9810
|
}
|
|
9501
9811
|
// Operation Specifications
|
|
9502
|
-
const serializer$
|
|
9812
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9503
9813
|
const resetOperationSpec = {
|
|
9504
9814
|
path: "/indexers('{indexerName}')/search.reset",
|
|
9505
9815
|
httpMethod: "POST",
|
|
9506
9816
|
responses: {
|
|
9507
9817
|
204: {},
|
|
9508
9818
|
default: {
|
|
9509
|
-
bodyMapper: SearchError
|
|
9819
|
+
bodyMapper: SearchError
|
|
9510
9820
|
}
|
|
9511
9821
|
},
|
|
9512
|
-
queryParameters: [apiVersion
|
|
9513
|
-
urlParameters: [endpoint
|
|
9514
|
-
headerParameters: [accept
|
|
9515
|
-
serializer: serializer$
|
|
9822
|
+
queryParameters: [apiVersion],
|
|
9823
|
+
urlParameters: [endpoint, indexerName],
|
|
9824
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9825
|
+
serializer: serializer$5
|
|
9516
9826
|
};
|
|
9517
9827
|
const resetDocsOperationSpec = {
|
|
9518
9828
|
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
@@ -9520,19 +9830,19 @@ const resetDocsOperationSpec = {
|
|
|
9520
9830
|
responses: {
|
|
9521
9831
|
204: {},
|
|
9522
9832
|
default: {
|
|
9523
|
-
bodyMapper: SearchError
|
|
9833
|
+
bodyMapper: SearchError
|
|
9524
9834
|
}
|
|
9525
9835
|
},
|
|
9526
9836
|
requestBody: keysOrIds,
|
|
9527
|
-
queryParameters: [apiVersion
|
|
9528
|
-
urlParameters: [endpoint
|
|
9837
|
+
queryParameters: [apiVersion, overwrite],
|
|
9838
|
+
urlParameters: [endpoint, indexerName],
|
|
9529
9839
|
headerParameters: [
|
|
9530
|
-
contentType
|
|
9531
|
-
accept
|
|
9532
|
-
xMsClientRequestId
|
|
9840
|
+
contentType,
|
|
9841
|
+
accept,
|
|
9842
|
+
xMsClientRequestId
|
|
9533
9843
|
],
|
|
9534
9844
|
mediaType: "json",
|
|
9535
|
-
serializer: serializer$
|
|
9845
|
+
serializer: serializer$5
|
|
9536
9846
|
};
|
|
9537
9847
|
const runOperationSpec = {
|
|
9538
9848
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -9540,15 +9850,15 @@ const runOperationSpec = {
|
|
|
9540
9850
|
responses: {
|
|
9541
9851
|
202: {},
|
|
9542
9852
|
default: {
|
|
9543
|
-
bodyMapper: SearchError
|
|
9853
|
+
bodyMapper: SearchError
|
|
9544
9854
|
}
|
|
9545
9855
|
},
|
|
9546
|
-
queryParameters: [apiVersion
|
|
9547
|
-
urlParameters: [endpoint
|
|
9548
|
-
headerParameters: [accept
|
|
9549
|
-
serializer: serializer$
|
|
9856
|
+
queryParameters: [apiVersion],
|
|
9857
|
+
urlParameters: [endpoint, indexerName],
|
|
9858
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9859
|
+
serializer: serializer$5
|
|
9550
9860
|
};
|
|
9551
|
-
const createOrUpdateOperationSpec$
|
|
9861
|
+
const createOrUpdateOperationSpec$4 = {
|
|
9552
9862
|
path: "/indexers('{indexerName}')",
|
|
9553
9863
|
httpMethod: "PUT",
|
|
9554
9864
|
responses: {
|
|
@@ -9559,48 +9869,48 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
9559
9869
|
bodyMapper: SearchIndexer
|
|
9560
9870
|
},
|
|
9561
9871
|
default: {
|
|
9562
|
-
bodyMapper: SearchError
|
|
9872
|
+
bodyMapper: SearchError
|
|
9563
9873
|
}
|
|
9564
9874
|
},
|
|
9565
9875
|
requestBody: indexer,
|
|
9566
9876
|
queryParameters: [
|
|
9567
|
-
apiVersion
|
|
9877
|
+
apiVersion,
|
|
9568
9878
|
skipIndexerResetRequirementForCache,
|
|
9569
9879
|
disableCacheReprocessingChangeDetection
|
|
9570
9880
|
],
|
|
9571
|
-
urlParameters: [endpoint
|
|
9881
|
+
urlParameters: [endpoint, indexerName],
|
|
9572
9882
|
headerParameters: [
|
|
9573
|
-
contentType
|
|
9574
|
-
accept
|
|
9575
|
-
xMsClientRequestId
|
|
9883
|
+
contentType,
|
|
9884
|
+
accept,
|
|
9885
|
+
xMsClientRequestId,
|
|
9576
9886
|
ifMatch,
|
|
9577
9887
|
ifNoneMatch,
|
|
9578
9888
|
prefer
|
|
9579
9889
|
],
|
|
9580
9890
|
mediaType: "json",
|
|
9581
|
-
serializer: serializer$
|
|
9891
|
+
serializer: serializer$5
|
|
9582
9892
|
};
|
|
9583
|
-
const deleteOperationSpec$
|
|
9893
|
+
const deleteOperationSpec$4 = {
|
|
9584
9894
|
path: "/indexers('{indexerName}')",
|
|
9585
9895
|
httpMethod: "DELETE",
|
|
9586
9896
|
responses: {
|
|
9587
9897
|
204: {},
|
|
9588
9898
|
404: {},
|
|
9589
9899
|
default: {
|
|
9590
|
-
bodyMapper: SearchError
|
|
9900
|
+
bodyMapper: SearchError
|
|
9591
9901
|
}
|
|
9592
9902
|
},
|
|
9593
|
-
queryParameters: [apiVersion
|
|
9594
|
-
urlParameters: [endpoint
|
|
9903
|
+
queryParameters: [apiVersion],
|
|
9904
|
+
urlParameters: [endpoint, indexerName],
|
|
9595
9905
|
headerParameters: [
|
|
9596
|
-
accept
|
|
9597
|
-
xMsClientRequestId
|
|
9906
|
+
accept,
|
|
9907
|
+
xMsClientRequestId,
|
|
9598
9908
|
ifMatch,
|
|
9599
9909
|
ifNoneMatch
|
|
9600
9910
|
],
|
|
9601
|
-
serializer: serializer$
|
|
9911
|
+
serializer: serializer$5
|
|
9602
9912
|
};
|
|
9603
|
-
const getOperationSpec$
|
|
9913
|
+
const getOperationSpec$4 = {
|
|
9604
9914
|
path: "/indexers('{indexerName}')",
|
|
9605
9915
|
httpMethod: "GET",
|
|
9606
9916
|
responses: {
|
|
@@ -9608,15 +9918,15 @@ const getOperationSpec$2 = {
|
|
|
9608
9918
|
bodyMapper: SearchIndexer
|
|
9609
9919
|
},
|
|
9610
9920
|
default: {
|
|
9611
|
-
bodyMapper: SearchError
|
|
9921
|
+
bodyMapper: SearchError
|
|
9612
9922
|
}
|
|
9613
9923
|
},
|
|
9614
|
-
queryParameters: [apiVersion
|
|
9615
|
-
urlParameters: [endpoint
|
|
9616
|
-
headerParameters: [accept
|
|
9617
|
-
serializer: serializer$
|
|
9924
|
+
queryParameters: [apiVersion],
|
|
9925
|
+
urlParameters: [endpoint, indexerName],
|
|
9926
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9927
|
+
serializer: serializer$5
|
|
9618
9928
|
};
|
|
9619
|
-
const listOperationSpec$
|
|
9929
|
+
const listOperationSpec$4 = {
|
|
9620
9930
|
path: "/indexers",
|
|
9621
9931
|
httpMethod: "GET",
|
|
9622
9932
|
responses: {
|
|
@@ -9624,15 +9934,15 @@ const listOperationSpec$1 = {
|
|
|
9624
9934
|
bodyMapper: ListIndexersResult
|
|
9625
9935
|
},
|
|
9626
9936
|
default: {
|
|
9627
|
-
bodyMapper: SearchError
|
|
9937
|
+
bodyMapper: SearchError
|
|
9628
9938
|
}
|
|
9629
9939
|
},
|
|
9630
|
-
queryParameters: [apiVersion
|
|
9631
|
-
urlParameters: [endpoint
|
|
9632
|
-
headerParameters: [accept
|
|
9633
|
-
serializer: serializer$
|
|
9940
|
+
queryParameters: [apiVersion, select],
|
|
9941
|
+
urlParameters: [endpoint],
|
|
9942
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9943
|
+
serializer: serializer$5
|
|
9634
9944
|
};
|
|
9635
|
-
const createOperationSpec$
|
|
9945
|
+
const createOperationSpec$4 = {
|
|
9636
9946
|
path: "/indexers",
|
|
9637
9947
|
httpMethod: "POST",
|
|
9638
9948
|
responses: {
|
|
@@ -9640,19 +9950,19 @@ const createOperationSpec$1 = {
|
|
|
9640
9950
|
bodyMapper: SearchIndexer
|
|
9641
9951
|
},
|
|
9642
9952
|
default: {
|
|
9643
|
-
bodyMapper: SearchError
|
|
9953
|
+
bodyMapper: SearchError
|
|
9644
9954
|
}
|
|
9645
9955
|
},
|
|
9646
9956
|
requestBody: indexer,
|
|
9647
|
-
queryParameters: [apiVersion
|
|
9648
|
-
urlParameters: [endpoint
|
|
9957
|
+
queryParameters: [apiVersion],
|
|
9958
|
+
urlParameters: [endpoint],
|
|
9649
9959
|
headerParameters: [
|
|
9650
|
-
contentType
|
|
9651
|
-
accept
|
|
9652
|
-
xMsClientRequestId
|
|
9960
|
+
contentType,
|
|
9961
|
+
accept,
|
|
9962
|
+
xMsClientRequestId
|
|
9653
9963
|
],
|
|
9654
9964
|
mediaType: "json",
|
|
9655
|
-
serializer: serializer$
|
|
9965
|
+
serializer: serializer$5
|
|
9656
9966
|
};
|
|
9657
9967
|
const getStatusOperationSpec = {
|
|
9658
9968
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -9662,13 +9972,13 @@ const getStatusOperationSpec = {
|
|
|
9662
9972
|
bodyMapper: SearchIndexerStatus
|
|
9663
9973
|
},
|
|
9664
9974
|
default: {
|
|
9665
|
-
bodyMapper: SearchError
|
|
9975
|
+
bodyMapper: SearchError
|
|
9666
9976
|
}
|
|
9667
9977
|
},
|
|
9668
|
-
queryParameters: [apiVersion
|
|
9669
|
-
urlParameters: [endpoint
|
|
9670
|
-
headerParameters: [accept
|
|
9671
|
-
serializer: serializer$
|
|
9978
|
+
queryParameters: [apiVersion],
|
|
9979
|
+
urlParameters: [endpoint, indexerName],
|
|
9980
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9981
|
+
serializer: serializer$5
|
|
9672
9982
|
};
|
|
9673
9983
|
|
|
9674
9984
|
/*
|
|
@@ -9694,7 +10004,7 @@ class SkillsetsImpl {
|
|
|
9694
10004
|
* @param options The options parameters.
|
|
9695
10005
|
*/
|
|
9696
10006
|
createOrUpdate(skillsetName, skillset, options) {
|
|
9697
|
-
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$
|
|
10007
|
+
return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$3);
|
|
9698
10008
|
}
|
|
9699
10009
|
/**
|
|
9700
10010
|
* Deletes a skillset in a search service.
|
|
@@ -9702,7 +10012,7 @@ class SkillsetsImpl {
|
|
|
9702
10012
|
* @param options The options parameters.
|
|
9703
10013
|
*/
|
|
9704
10014
|
delete(skillsetName, options) {
|
|
9705
|
-
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$
|
|
10015
|
+
return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$3);
|
|
9706
10016
|
}
|
|
9707
10017
|
/**
|
|
9708
10018
|
* Retrieves a skillset in a search service.
|
|
@@ -9717,7 +10027,7 @@ class SkillsetsImpl {
|
|
|
9717
10027
|
* @param options The options parameters.
|
|
9718
10028
|
*/
|
|
9719
10029
|
list(options) {
|
|
9720
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10030
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
9721
10031
|
}
|
|
9722
10032
|
/**
|
|
9723
10033
|
* Creates a new skillset in a search service.
|
|
@@ -9725,7 +10035,7 @@ class SkillsetsImpl {
|
|
|
9725
10035
|
* @param options The options parameters.
|
|
9726
10036
|
*/
|
|
9727
10037
|
create(skillset, options) {
|
|
9728
|
-
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$
|
|
10038
|
+
return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$3);
|
|
9729
10039
|
}
|
|
9730
10040
|
/**
|
|
9731
10041
|
* Reset an existing skillset in a search service.
|
|
@@ -9738,8 +10048,8 @@ class SkillsetsImpl {
|
|
|
9738
10048
|
}
|
|
9739
10049
|
}
|
|
9740
10050
|
// Operation Specifications
|
|
9741
|
-
const serializer$
|
|
9742
|
-
const createOrUpdateOperationSpec$
|
|
10051
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10052
|
+
const createOrUpdateOperationSpec$3 = {
|
|
9743
10053
|
path: "/skillsets('{skillsetName}')",
|
|
9744
10054
|
httpMethod: "PUT",
|
|
9745
10055
|
responses: {
|
|
@@ -9750,46 +10060,46 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
9750
10060
|
bodyMapper: SearchIndexerSkillset
|
|
9751
10061
|
},
|
|
9752
10062
|
default: {
|
|
9753
|
-
bodyMapper: SearchError
|
|
10063
|
+
bodyMapper: SearchError
|
|
9754
10064
|
}
|
|
9755
10065
|
},
|
|
9756
10066
|
requestBody: skillset,
|
|
9757
10067
|
queryParameters: [
|
|
9758
|
-
apiVersion
|
|
10068
|
+
apiVersion,
|
|
9759
10069
|
skipIndexerResetRequirementForCache,
|
|
9760
10070
|
disableCacheReprocessingChangeDetection
|
|
9761
10071
|
],
|
|
9762
|
-
urlParameters: [endpoint
|
|
10072
|
+
urlParameters: [endpoint, skillsetName],
|
|
9763
10073
|
headerParameters: [
|
|
9764
|
-
contentType
|
|
9765
|
-
accept
|
|
9766
|
-
xMsClientRequestId
|
|
10074
|
+
contentType,
|
|
10075
|
+
accept,
|
|
10076
|
+
xMsClientRequestId,
|
|
9767
10077
|
ifMatch,
|
|
9768
10078
|
ifNoneMatch,
|
|
9769
10079
|
prefer
|
|
9770
10080
|
],
|
|
9771
10081
|
mediaType: "json",
|
|
9772
|
-
serializer: serializer$
|
|
10082
|
+
serializer: serializer$4
|
|
9773
10083
|
};
|
|
9774
|
-
const deleteOperationSpec$
|
|
10084
|
+
const deleteOperationSpec$3 = {
|
|
9775
10085
|
path: "/skillsets('{skillsetName}')",
|
|
9776
10086
|
httpMethod: "DELETE",
|
|
9777
10087
|
responses: {
|
|
9778
10088
|
204: {},
|
|
9779
10089
|
404: {},
|
|
9780
10090
|
default: {
|
|
9781
|
-
bodyMapper: SearchError
|
|
10091
|
+
bodyMapper: SearchError
|
|
9782
10092
|
}
|
|
9783
10093
|
},
|
|
9784
|
-
queryParameters: [apiVersion
|
|
9785
|
-
urlParameters: [endpoint
|
|
10094
|
+
queryParameters: [apiVersion],
|
|
10095
|
+
urlParameters: [endpoint, skillsetName],
|
|
9786
10096
|
headerParameters: [
|
|
9787
|
-
accept
|
|
9788
|
-
xMsClientRequestId
|
|
10097
|
+
accept,
|
|
10098
|
+
xMsClientRequestId,
|
|
9789
10099
|
ifMatch,
|
|
9790
10100
|
ifNoneMatch
|
|
9791
10101
|
],
|
|
9792
|
-
serializer: serializer$
|
|
10102
|
+
serializer: serializer$4
|
|
9793
10103
|
};
|
|
9794
10104
|
const getOperationSpec$3 = {
|
|
9795
10105
|
path: "/skillsets('{skillsetName}')",
|
|
@@ -9799,15 +10109,15 @@ const getOperationSpec$3 = {
|
|
|
9799
10109
|
bodyMapper: SearchIndexerSkillset
|
|
9800
10110
|
},
|
|
9801
10111
|
default: {
|
|
9802
|
-
bodyMapper: SearchError
|
|
10112
|
+
bodyMapper: SearchError
|
|
9803
10113
|
}
|
|
9804
10114
|
},
|
|
9805
|
-
queryParameters: [apiVersion
|
|
9806
|
-
urlParameters: [endpoint
|
|
9807
|
-
headerParameters: [accept
|
|
9808
|
-
serializer: serializer$
|
|
10115
|
+
queryParameters: [apiVersion],
|
|
10116
|
+
urlParameters: [endpoint, skillsetName],
|
|
10117
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10118
|
+
serializer: serializer$4
|
|
9809
10119
|
};
|
|
9810
|
-
const listOperationSpec$
|
|
10120
|
+
const listOperationSpec$3 = {
|
|
9811
10121
|
path: "/skillsets",
|
|
9812
10122
|
httpMethod: "GET",
|
|
9813
10123
|
responses: {
|
|
@@ -9815,15 +10125,15 @@ const listOperationSpec$2 = {
|
|
|
9815
10125
|
bodyMapper: ListSkillsetsResult
|
|
9816
10126
|
},
|
|
9817
10127
|
default: {
|
|
9818
|
-
bodyMapper: SearchError
|
|
10128
|
+
bodyMapper: SearchError
|
|
9819
10129
|
}
|
|
9820
10130
|
},
|
|
9821
|
-
queryParameters: [apiVersion
|
|
9822
|
-
urlParameters: [endpoint
|
|
9823
|
-
headerParameters: [accept
|
|
9824
|
-
serializer: serializer$
|
|
10131
|
+
queryParameters: [apiVersion, select],
|
|
10132
|
+
urlParameters: [endpoint],
|
|
10133
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10134
|
+
serializer: serializer$4
|
|
9825
10135
|
};
|
|
9826
|
-
const createOperationSpec$
|
|
10136
|
+
const createOperationSpec$3 = {
|
|
9827
10137
|
path: "/skillsets",
|
|
9828
10138
|
httpMethod: "POST",
|
|
9829
10139
|
responses: {
|
|
@@ -9831,19 +10141,19 @@ const createOperationSpec$2 = {
|
|
|
9831
10141
|
bodyMapper: SearchIndexerSkillset
|
|
9832
10142
|
},
|
|
9833
10143
|
default: {
|
|
9834
|
-
bodyMapper: SearchError
|
|
10144
|
+
bodyMapper: SearchError
|
|
9835
10145
|
}
|
|
9836
10146
|
},
|
|
9837
10147
|
requestBody: skillset,
|
|
9838
|
-
queryParameters: [apiVersion
|
|
9839
|
-
urlParameters: [endpoint
|
|
10148
|
+
queryParameters: [apiVersion],
|
|
10149
|
+
urlParameters: [endpoint],
|
|
9840
10150
|
headerParameters: [
|
|
9841
|
-
contentType
|
|
9842
|
-
accept
|
|
9843
|
-
xMsClientRequestId
|
|
10151
|
+
contentType,
|
|
10152
|
+
accept,
|
|
10153
|
+
xMsClientRequestId
|
|
9844
10154
|
],
|
|
9845
10155
|
mediaType: "json",
|
|
9846
|
-
serializer: serializer$
|
|
10156
|
+
serializer: serializer$4
|
|
9847
10157
|
};
|
|
9848
10158
|
const resetSkillsOperationSpec = {
|
|
9849
10159
|
path: "/skillsets('{skillsetName}')/search.resetskills",
|
|
@@ -9851,19 +10161,19 @@ const resetSkillsOperationSpec = {
|
|
|
9851
10161
|
responses: {
|
|
9852
10162
|
204: {},
|
|
9853
10163
|
default: {
|
|
9854
|
-
bodyMapper: SearchError
|
|
10164
|
+
bodyMapper: SearchError
|
|
9855
10165
|
}
|
|
9856
10166
|
},
|
|
9857
10167
|
requestBody: skillNames,
|
|
9858
|
-
queryParameters: [apiVersion
|
|
9859
|
-
urlParameters: [endpoint
|
|
10168
|
+
queryParameters: [apiVersion],
|
|
10169
|
+
urlParameters: [endpoint, skillsetName],
|
|
9860
10170
|
headerParameters: [
|
|
9861
|
-
contentType
|
|
9862
|
-
accept
|
|
9863
|
-
xMsClientRequestId
|
|
10171
|
+
contentType,
|
|
10172
|
+
accept,
|
|
10173
|
+
xMsClientRequestId
|
|
9864
10174
|
],
|
|
9865
10175
|
mediaType: "json",
|
|
9866
|
-
serializer: serializer$
|
|
10176
|
+
serializer: serializer$4
|
|
9867
10177
|
};
|
|
9868
10178
|
|
|
9869
10179
|
/*
|
|
@@ -9889,7 +10199,7 @@ class SynonymMapsImpl {
|
|
|
9889
10199
|
* @param options The options parameters.
|
|
9890
10200
|
*/
|
|
9891
10201
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
9892
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
10202
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$2);
|
|
9893
10203
|
}
|
|
9894
10204
|
/**
|
|
9895
10205
|
* Deletes a synonym map.
|
|
@@ -9897,7 +10207,7 @@ class SynonymMapsImpl {
|
|
|
9897
10207
|
* @param options The options parameters.
|
|
9898
10208
|
*/
|
|
9899
10209
|
delete(synonymMapName, options) {
|
|
9900
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
10210
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$2);
|
|
9901
10211
|
}
|
|
9902
10212
|
/**
|
|
9903
10213
|
* Retrieves a synonym map definition.
|
|
@@ -9905,14 +10215,14 @@ class SynonymMapsImpl {
|
|
|
9905
10215
|
* @param options The options parameters.
|
|
9906
10216
|
*/
|
|
9907
10217
|
get(synonymMapName, options) {
|
|
9908
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
10218
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$2);
|
|
9909
10219
|
}
|
|
9910
10220
|
/**
|
|
9911
10221
|
* Lists all synonym maps available for a search service.
|
|
9912
10222
|
* @param options The options parameters.
|
|
9913
10223
|
*/
|
|
9914
10224
|
list(options) {
|
|
9915
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10225
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
9916
10226
|
}
|
|
9917
10227
|
/**
|
|
9918
10228
|
* Creates a new synonym map.
|
|
@@ -9920,12 +10230,12 @@ class SynonymMapsImpl {
|
|
|
9920
10230
|
* @param options The options parameters.
|
|
9921
10231
|
*/
|
|
9922
10232
|
create(synonymMap, options) {
|
|
9923
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
10233
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$2);
|
|
9924
10234
|
}
|
|
9925
10235
|
}
|
|
9926
10236
|
// Operation Specifications
|
|
9927
|
-
const serializer$
|
|
9928
|
-
const createOrUpdateOperationSpec$
|
|
10237
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10238
|
+
const createOrUpdateOperationSpec$2 = {
|
|
9929
10239
|
path: "/synonymmaps('{synonymMapName}')",
|
|
9930
10240
|
httpMethod: "PUT",
|
|
9931
10241
|
responses: {
|
|
@@ -9936,44 +10246,44 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
9936
10246
|
bodyMapper: SynonymMap
|
|
9937
10247
|
},
|
|
9938
10248
|
default: {
|
|
9939
|
-
bodyMapper: SearchError
|
|
10249
|
+
bodyMapper: SearchError
|
|
9940
10250
|
}
|
|
9941
10251
|
},
|
|
9942
10252
|
requestBody: synonymMap,
|
|
9943
|
-
queryParameters: [apiVersion
|
|
9944
|
-
urlParameters: [endpoint
|
|
10253
|
+
queryParameters: [apiVersion],
|
|
10254
|
+
urlParameters: [endpoint, synonymMapName],
|
|
9945
10255
|
headerParameters: [
|
|
9946
|
-
contentType
|
|
9947
|
-
accept
|
|
9948
|
-
xMsClientRequestId
|
|
10256
|
+
contentType,
|
|
10257
|
+
accept,
|
|
10258
|
+
xMsClientRequestId,
|
|
9949
10259
|
ifMatch,
|
|
9950
10260
|
ifNoneMatch,
|
|
9951
10261
|
prefer
|
|
9952
10262
|
],
|
|
9953
10263
|
mediaType: "json",
|
|
9954
|
-
serializer: serializer$
|
|
10264
|
+
serializer: serializer$3
|
|
9955
10265
|
};
|
|
9956
|
-
const deleteOperationSpec$
|
|
10266
|
+
const deleteOperationSpec$2 = {
|
|
9957
10267
|
path: "/synonymmaps('{synonymMapName}')",
|
|
9958
10268
|
httpMethod: "DELETE",
|
|
9959
10269
|
responses: {
|
|
9960
10270
|
204: {},
|
|
9961
10271
|
404: {},
|
|
9962
10272
|
default: {
|
|
9963
|
-
bodyMapper: SearchError
|
|
10273
|
+
bodyMapper: SearchError
|
|
9964
10274
|
}
|
|
9965
10275
|
},
|
|
9966
|
-
queryParameters: [apiVersion
|
|
9967
|
-
urlParameters: [endpoint
|
|
10276
|
+
queryParameters: [apiVersion],
|
|
10277
|
+
urlParameters: [endpoint, synonymMapName],
|
|
9968
10278
|
headerParameters: [
|
|
9969
|
-
accept
|
|
9970
|
-
xMsClientRequestId
|
|
10279
|
+
accept,
|
|
10280
|
+
xMsClientRequestId,
|
|
9971
10281
|
ifMatch,
|
|
9972
10282
|
ifNoneMatch
|
|
9973
10283
|
],
|
|
9974
|
-
serializer: serializer$
|
|
10284
|
+
serializer: serializer$3
|
|
9975
10285
|
};
|
|
9976
|
-
const getOperationSpec$
|
|
10286
|
+
const getOperationSpec$2 = {
|
|
9977
10287
|
path: "/synonymmaps('{synonymMapName}')",
|
|
9978
10288
|
httpMethod: "GET",
|
|
9979
10289
|
responses: {
|
|
@@ -9981,15 +10291,15 @@ const getOperationSpec$4 = {
|
|
|
9981
10291
|
bodyMapper: SynonymMap
|
|
9982
10292
|
},
|
|
9983
10293
|
default: {
|
|
9984
|
-
bodyMapper: SearchError
|
|
10294
|
+
bodyMapper: SearchError
|
|
9985
10295
|
}
|
|
9986
10296
|
},
|
|
9987
|
-
queryParameters: [apiVersion
|
|
9988
|
-
urlParameters: [endpoint
|
|
9989
|
-
headerParameters: [accept
|
|
9990
|
-
serializer: serializer$
|
|
10297
|
+
queryParameters: [apiVersion],
|
|
10298
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10299
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10300
|
+
serializer: serializer$3
|
|
9991
10301
|
};
|
|
9992
|
-
const listOperationSpec$
|
|
10302
|
+
const listOperationSpec$2 = {
|
|
9993
10303
|
path: "/synonymmaps",
|
|
9994
10304
|
httpMethod: "GET",
|
|
9995
10305
|
responses: {
|
|
@@ -9997,15 +10307,15 @@ const listOperationSpec$3 = {
|
|
|
9997
10307
|
bodyMapper: ListSynonymMapsResult
|
|
9998
10308
|
},
|
|
9999
10309
|
default: {
|
|
10000
|
-
bodyMapper: SearchError
|
|
10310
|
+
bodyMapper: SearchError
|
|
10001
10311
|
}
|
|
10002
10312
|
},
|
|
10003
|
-
queryParameters: [apiVersion
|
|
10004
|
-
urlParameters: [endpoint
|
|
10005
|
-
headerParameters: [accept
|
|
10006
|
-
serializer: serializer$
|
|
10313
|
+
queryParameters: [apiVersion, select],
|
|
10314
|
+
urlParameters: [endpoint],
|
|
10315
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10316
|
+
serializer: serializer$3
|
|
10007
10317
|
};
|
|
10008
|
-
const createOperationSpec$
|
|
10318
|
+
const createOperationSpec$2 = {
|
|
10009
10319
|
path: "/synonymmaps",
|
|
10010
10320
|
httpMethod: "POST",
|
|
10011
10321
|
responses: {
|
|
@@ -10013,19 +10323,19 @@ const createOperationSpec$3 = {
|
|
|
10013
10323
|
bodyMapper: SynonymMap
|
|
10014
10324
|
},
|
|
10015
10325
|
default: {
|
|
10016
|
-
bodyMapper: SearchError
|
|
10326
|
+
bodyMapper: SearchError
|
|
10017
10327
|
}
|
|
10018
10328
|
},
|
|
10019
10329
|
requestBody: synonymMap,
|
|
10020
|
-
queryParameters: [apiVersion
|
|
10021
|
-
urlParameters: [endpoint
|
|
10330
|
+
queryParameters: [apiVersion],
|
|
10331
|
+
urlParameters: [endpoint],
|
|
10022
10332
|
headerParameters: [
|
|
10023
|
-
contentType
|
|
10024
|
-
accept
|
|
10025
|
-
xMsClientRequestId
|
|
10333
|
+
contentType,
|
|
10334
|
+
accept,
|
|
10335
|
+
xMsClientRequestId
|
|
10026
10336
|
],
|
|
10027
10337
|
mediaType: "json",
|
|
10028
|
-
serializer: serializer$
|
|
10338
|
+
serializer: serializer$3
|
|
10029
10339
|
};
|
|
10030
10340
|
|
|
10031
10341
|
/*
|
|
@@ -10050,14 +10360,14 @@ class IndexesImpl {
|
|
|
10050
10360
|
* @param options The options parameters.
|
|
10051
10361
|
*/
|
|
10052
10362
|
create(index, options) {
|
|
10053
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec$
|
|
10363
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec$1);
|
|
10054
10364
|
}
|
|
10055
10365
|
/**
|
|
10056
10366
|
* Lists all indexes available for a search service.
|
|
10057
10367
|
* @param options The options parameters.
|
|
10058
10368
|
*/
|
|
10059
10369
|
list(options) {
|
|
10060
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10370
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
10061
10371
|
}
|
|
10062
10372
|
/**
|
|
10063
10373
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -10066,7 +10376,7 @@ class IndexesImpl {
|
|
|
10066
10376
|
* @param options The options parameters.
|
|
10067
10377
|
*/
|
|
10068
10378
|
createOrUpdate(indexName, index, options) {
|
|
10069
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$
|
|
10379
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$1);
|
|
10070
10380
|
}
|
|
10071
10381
|
/**
|
|
10072
10382
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -10076,7 +10386,7 @@ class IndexesImpl {
|
|
|
10076
10386
|
* @param options The options parameters.
|
|
10077
10387
|
*/
|
|
10078
10388
|
delete(indexName, options) {
|
|
10079
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$
|
|
10389
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$1);
|
|
10080
10390
|
}
|
|
10081
10391
|
/**
|
|
10082
10392
|
* Retrieves an index definition.
|
|
@@ -10084,7 +10394,7 @@ class IndexesImpl {
|
|
|
10084
10394
|
* @param options The options parameters.
|
|
10085
10395
|
*/
|
|
10086
10396
|
get(indexName, options) {
|
|
10087
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$
|
|
10397
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$1);
|
|
10088
10398
|
}
|
|
10089
10399
|
/**
|
|
10090
10400
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10105,8 +10415,8 @@ class IndexesImpl {
|
|
|
10105
10415
|
}
|
|
10106
10416
|
}
|
|
10107
10417
|
// Operation Specifications
|
|
10108
|
-
const serializer$
|
|
10109
|
-
const createOperationSpec$
|
|
10418
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10419
|
+
const createOperationSpec$1 = {
|
|
10110
10420
|
path: "/indexes",
|
|
10111
10421
|
httpMethod: "POST",
|
|
10112
10422
|
responses: {
|
|
@@ -10114,21 +10424,21 @@ const createOperationSpec$4 = {
|
|
|
10114
10424
|
bodyMapper: SearchIndex
|
|
10115
10425
|
},
|
|
10116
10426
|
default: {
|
|
10117
|
-
bodyMapper: SearchError
|
|
10427
|
+
bodyMapper: SearchError
|
|
10118
10428
|
}
|
|
10119
10429
|
},
|
|
10120
10430
|
requestBody: index,
|
|
10121
|
-
queryParameters: [apiVersion
|
|
10122
|
-
urlParameters: [endpoint
|
|
10431
|
+
queryParameters: [apiVersion],
|
|
10432
|
+
urlParameters: [endpoint],
|
|
10123
10433
|
headerParameters: [
|
|
10124
|
-
contentType
|
|
10125
|
-
accept
|
|
10126
|
-
xMsClientRequestId
|
|
10434
|
+
contentType,
|
|
10435
|
+
accept,
|
|
10436
|
+
xMsClientRequestId
|
|
10127
10437
|
],
|
|
10128
10438
|
mediaType: "json",
|
|
10129
|
-
serializer: serializer$
|
|
10439
|
+
serializer: serializer$2
|
|
10130
10440
|
};
|
|
10131
|
-
const listOperationSpec$
|
|
10441
|
+
const listOperationSpec$1 = {
|
|
10132
10442
|
path: "/indexes",
|
|
10133
10443
|
httpMethod: "GET",
|
|
10134
10444
|
responses: {
|
|
@@ -10136,15 +10446,15 @@ const listOperationSpec$4 = {
|
|
|
10136
10446
|
bodyMapper: ListIndexesResult
|
|
10137
10447
|
},
|
|
10138
10448
|
default: {
|
|
10139
|
-
bodyMapper: SearchError
|
|
10449
|
+
bodyMapper: SearchError
|
|
10140
10450
|
}
|
|
10141
10451
|
},
|
|
10142
|
-
queryParameters: [apiVersion
|
|
10143
|
-
urlParameters: [endpoint
|
|
10144
|
-
headerParameters: [accept
|
|
10145
|
-
serializer: serializer$
|
|
10452
|
+
queryParameters: [apiVersion, select],
|
|
10453
|
+
urlParameters: [endpoint],
|
|
10454
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10455
|
+
serializer: serializer$2
|
|
10146
10456
|
};
|
|
10147
|
-
const createOrUpdateOperationSpec$
|
|
10457
|
+
const createOrUpdateOperationSpec$1 = {
|
|
10148
10458
|
path: "/indexes('{indexName}')",
|
|
10149
10459
|
httpMethod: "PUT",
|
|
10150
10460
|
responses: {
|
|
@@ -10155,44 +10465,44 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10155
10465
|
bodyMapper: SearchIndex
|
|
10156
10466
|
},
|
|
10157
10467
|
default: {
|
|
10158
|
-
bodyMapper: SearchError
|
|
10468
|
+
bodyMapper: SearchError
|
|
10159
10469
|
}
|
|
10160
10470
|
},
|
|
10161
10471
|
requestBody: index,
|
|
10162
|
-
queryParameters: [apiVersion
|
|
10163
|
-
urlParameters: [endpoint
|
|
10472
|
+
queryParameters: [apiVersion, allowIndexDowntime],
|
|
10473
|
+
urlParameters: [endpoint, indexName],
|
|
10164
10474
|
headerParameters: [
|
|
10165
|
-
contentType
|
|
10166
|
-
accept
|
|
10167
|
-
xMsClientRequestId
|
|
10475
|
+
contentType,
|
|
10476
|
+
accept,
|
|
10477
|
+
xMsClientRequestId,
|
|
10168
10478
|
ifMatch,
|
|
10169
10479
|
ifNoneMatch,
|
|
10170
10480
|
prefer
|
|
10171
10481
|
],
|
|
10172
10482
|
mediaType: "json",
|
|
10173
|
-
serializer: serializer$
|
|
10483
|
+
serializer: serializer$2
|
|
10174
10484
|
};
|
|
10175
|
-
const deleteOperationSpec$
|
|
10485
|
+
const deleteOperationSpec$1 = {
|
|
10176
10486
|
path: "/indexes('{indexName}')",
|
|
10177
10487
|
httpMethod: "DELETE",
|
|
10178
10488
|
responses: {
|
|
10179
10489
|
204: {},
|
|
10180
10490
|
404: {},
|
|
10181
10491
|
default: {
|
|
10182
|
-
bodyMapper: SearchError
|
|
10492
|
+
bodyMapper: SearchError
|
|
10183
10493
|
}
|
|
10184
10494
|
},
|
|
10185
|
-
queryParameters: [apiVersion
|
|
10186
|
-
urlParameters: [endpoint
|
|
10495
|
+
queryParameters: [apiVersion],
|
|
10496
|
+
urlParameters: [endpoint, indexName],
|
|
10187
10497
|
headerParameters: [
|
|
10188
|
-
accept
|
|
10189
|
-
xMsClientRequestId
|
|
10498
|
+
accept,
|
|
10499
|
+
xMsClientRequestId,
|
|
10190
10500
|
ifMatch,
|
|
10191
10501
|
ifNoneMatch
|
|
10192
10502
|
],
|
|
10193
|
-
serializer: serializer$
|
|
10503
|
+
serializer: serializer$2
|
|
10194
10504
|
};
|
|
10195
|
-
const getOperationSpec$
|
|
10505
|
+
const getOperationSpec$1 = {
|
|
10196
10506
|
path: "/indexes('{indexName}')",
|
|
10197
10507
|
httpMethod: "GET",
|
|
10198
10508
|
responses: {
|
|
@@ -10200,13 +10510,13 @@ const getOperationSpec$5 = {
|
|
|
10200
10510
|
bodyMapper: SearchIndex
|
|
10201
10511
|
},
|
|
10202
10512
|
default: {
|
|
10203
|
-
bodyMapper: SearchError
|
|
10513
|
+
bodyMapper: SearchError
|
|
10204
10514
|
}
|
|
10205
10515
|
},
|
|
10206
|
-
queryParameters: [apiVersion
|
|
10207
|
-
urlParameters: [endpoint
|
|
10208
|
-
headerParameters: [accept
|
|
10209
|
-
serializer: serializer$
|
|
10516
|
+
queryParameters: [apiVersion],
|
|
10517
|
+
urlParameters: [endpoint, indexName],
|
|
10518
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10519
|
+
serializer: serializer$2
|
|
10210
10520
|
};
|
|
10211
10521
|
const getStatisticsOperationSpec = {
|
|
10212
10522
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -10216,13 +10526,13 @@ const getStatisticsOperationSpec = {
|
|
|
10216
10526
|
bodyMapper: GetIndexStatisticsResult
|
|
10217
10527
|
},
|
|
10218
10528
|
default: {
|
|
10219
|
-
bodyMapper: SearchError
|
|
10529
|
+
bodyMapper: SearchError
|
|
10220
10530
|
}
|
|
10221
10531
|
},
|
|
10222
|
-
queryParameters: [apiVersion
|
|
10223
|
-
urlParameters: [endpoint
|
|
10224
|
-
headerParameters: [accept
|
|
10225
|
-
serializer: serializer$
|
|
10532
|
+
queryParameters: [apiVersion],
|
|
10533
|
+
urlParameters: [endpoint, indexName],
|
|
10534
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10535
|
+
serializer: serializer$2
|
|
10226
10536
|
};
|
|
10227
10537
|
const analyzeOperationSpec = {
|
|
10228
10538
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -10232,19 +10542,182 @@ const analyzeOperationSpec = {
|
|
|
10232
10542
|
bodyMapper: AnalyzeResult
|
|
10233
10543
|
},
|
|
10234
10544
|
default: {
|
|
10235
|
-
bodyMapper: SearchError
|
|
10545
|
+
bodyMapper: SearchError
|
|
10236
10546
|
}
|
|
10237
10547
|
},
|
|
10238
10548
|
requestBody: request,
|
|
10239
|
-
queryParameters: [apiVersion
|
|
10240
|
-
urlParameters: [endpoint
|
|
10549
|
+
queryParameters: [apiVersion],
|
|
10550
|
+
urlParameters: [endpoint, indexName],
|
|
10241
10551
|
headerParameters: [
|
|
10242
|
-
contentType
|
|
10243
|
-
accept
|
|
10244
|
-
xMsClientRequestId
|
|
10552
|
+
contentType,
|
|
10553
|
+
accept,
|
|
10554
|
+
xMsClientRequestId
|
|
10245
10555
|
],
|
|
10246
10556
|
mediaType: "json",
|
|
10247
|
-
serializer: serializer$
|
|
10557
|
+
serializer: serializer$2
|
|
10558
|
+
};
|
|
10559
|
+
|
|
10560
|
+
/*
|
|
10561
|
+
* Copyright (c) Microsoft Corporation.
|
|
10562
|
+
* Licensed under the MIT License.
|
|
10563
|
+
*
|
|
10564
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10565
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10566
|
+
*/
|
|
10567
|
+
/** Class containing Aliases operations. */
|
|
10568
|
+
class AliasesImpl {
|
|
10569
|
+
/**
|
|
10570
|
+
* Initialize a new instance of the class Aliases class.
|
|
10571
|
+
* @param client Reference to the service client
|
|
10572
|
+
*/
|
|
10573
|
+
constructor(client) {
|
|
10574
|
+
this.client = client;
|
|
10575
|
+
}
|
|
10576
|
+
/**
|
|
10577
|
+
* Creates a new search alias.
|
|
10578
|
+
* @param alias The definition of the alias to create.
|
|
10579
|
+
* @param options The options parameters.
|
|
10580
|
+
*/
|
|
10581
|
+
create(alias, options) {
|
|
10582
|
+
return this.client.sendOperationRequest({ alias, options }, createOperationSpec);
|
|
10583
|
+
}
|
|
10584
|
+
/**
|
|
10585
|
+
* Lists all aliases available for a search service.
|
|
10586
|
+
* @param options The options parameters.
|
|
10587
|
+
*/
|
|
10588
|
+
list(options) {
|
|
10589
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
10590
|
+
}
|
|
10591
|
+
/**
|
|
10592
|
+
* Creates a new search alias or updates an alias if it already exists.
|
|
10593
|
+
* @param aliasName The definition of the alias to create or update.
|
|
10594
|
+
* @param alias The definition of the alias to create or update.
|
|
10595
|
+
* @param options The options parameters.
|
|
10596
|
+
*/
|
|
10597
|
+
createOrUpdate(aliasName, alias, options) {
|
|
10598
|
+
return this.client.sendOperationRequest({ aliasName, alias, options }, createOrUpdateOperationSpec);
|
|
10599
|
+
}
|
|
10600
|
+
/**
|
|
10601
|
+
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
10602
|
+
* recovery option. The mapped index is untouched by this operation.
|
|
10603
|
+
* @param aliasName The name of the alias to delete.
|
|
10604
|
+
* @param options The options parameters.
|
|
10605
|
+
*/
|
|
10606
|
+
delete(aliasName, options) {
|
|
10607
|
+
return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
|
|
10608
|
+
}
|
|
10609
|
+
/**
|
|
10610
|
+
* Retrieves an alias definition.
|
|
10611
|
+
* @param aliasName The name of the alias to retrieve.
|
|
10612
|
+
* @param options The options parameters.
|
|
10613
|
+
*/
|
|
10614
|
+
get(aliasName, options) {
|
|
10615
|
+
return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
|
|
10616
|
+
}
|
|
10617
|
+
}
|
|
10618
|
+
// Operation Specifications
|
|
10619
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10620
|
+
const createOperationSpec = {
|
|
10621
|
+
path: "/aliases",
|
|
10622
|
+
httpMethod: "POST",
|
|
10623
|
+
responses: {
|
|
10624
|
+
201: {
|
|
10625
|
+
bodyMapper: SearchAlias
|
|
10626
|
+
},
|
|
10627
|
+
default: {
|
|
10628
|
+
bodyMapper: SearchError
|
|
10629
|
+
}
|
|
10630
|
+
},
|
|
10631
|
+
requestBody: alias,
|
|
10632
|
+
queryParameters: [apiVersion],
|
|
10633
|
+
urlParameters: [endpoint],
|
|
10634
|
+
headerParameters: [
|
|
10635
|
+
contentType,
|
|
10636
|
+
accept,
|
|
10637
|
+
xMsClientRequestId
|
|
10638
|
+
],
|
|
10639
|
+
mediaType: "json",
|
|
10640
|
+
serializer: serializer$1
|
|
10641
|
+
};
|
|
10642
|
+
const listOperationSpec = {
|
|
10643
|
+
path: "/aliases",
|
|
10644
|
+
httpMethod: "GET",
|
|
10645
|
+
responses: {
|
|
10646
|
+
200: {
|
|
10647
|
+
bodyMapper: ListAliasesResult
|
|
10648
|
+
},
|
|
10649
|
+
default: {
|
|
10650
|
+
bodyMapper: SearchError
|
|
10651
|
+
}
|
|
10652
|
+
},
|
|
10653
|
+
queryParameters: [apiVersion],
|
|
10654
|
+
urlParameters: [endpoint],
|
|
10655
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10656
|
+
serializer: serializer$1
|
|
10657
|
+
};
|
|
10658
|
+
const createOrUpdateOperationSpec = {
|
|
10659
|
+
path: "/aliases('{aliasName}')",
|
|
10660
|
+
httpMethod: "PUT",
|
|
10661
|
+
responses: {
|
|
10662
|
+
200: {
|
|
10663
|
+
bodyMapper: SearchAlias
|
|
10664
|
+
},
|
|
10665
|
+
201: {
|
|
10666
|
+
bodyMapper: SearchAlias
|
|
10667
|
+
},
|
|
10668
|
+
default: {
|
|
10669
|
+
bodyMapper: SearchError
|
|
10670
|
+
}
|
|
10671
|
+
},
|
|
10672
|
+
requestBody: alias,
|
|
10673
|
+
queryParameters: [apiVersion],
|
|
10674
|
+
urlParameters: [endpoint, aliasName],
|
|
10675
|
+
headerParameters: [
|
|
10676
|
+
contentType,
|
|
10677
|
+
accept,
|
|
10678
|
+
xMsClientRequestId,
|
|
10679
|
+
ifMatch,
|
|
10680
|
+
ifNoneMatch,
|
|
10681
|
+
prefer
|
|
10682
|
+
],
|
|
10683
|
+
mediaType: "json",
|
|
10684
|
+
serializer: serializer$1
|
|
10685
|
+
};
|
|
10686
|
+
const deleteOperationSpec = {
|
|
10687
|
+
path: "/aliases('{aliasName}')",
|
|
10688
|
+
httpMethod: "DELETE",
|
|
10689
|
+
responses: {
|
|
10690
|
+
204: {},
|
|
10691
|
+
404: {},
|
|
10692
|
+
default: {
|
|
10693
|
+
bodyMapper: SearchError
|
|
10694
|
+
}
|
|
10695
|
+
},
|
|
10696
|
+
queryParameters: [apiVersion],
|
|
10697
|
+
urlParameters: [endpoint, aliasName],
|
|
10698
|
+
headerParameters: [
|
|
10699
|
+
accept,
|
|
10700
|
+
xMsClientRequestId,
|
|
10701
|
+
ifMatch,
|
|
10702
|
+
ifNoneMatch
|
|
10703
|
+
],
|
|
10704
|
+
serializer: serializer$1
|
|
10705
|
+
};
|
|
10706
|
+
const getOperationSpec = {
|
|
10707
|
+
path: "/aliases('{aliasName}')",
|
|
10708
|
+
httpMethod: "GET",
|
|
10709
|
+
responses: {
|
|
10710
|
+
200: {
|
|
10711
|
+
bodyMapper: SearchAlias
|
|
10712
|
+
},
|
|
10713
|
+
default: {
|
|
10714
|
+
bodyMapper: SearchError
|
|
10715
|
+
}
|
|
10716
|
+
},
|
|
10717
|
+
queryParameters: [apiVersion],
|
|
10718
|
+
urlParameters: [endpoint, aliasName],
|
|
10719
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10720
|
+
serializer: serializer$1
|
|
10248
10721
|
};
|
|
10249
10722
|
|
|
10250
10723
|
/*
|
|
@@ -10255,7 +10728,7 @@ const analyzeOperationSpec = {
|
|
|
10255
10728
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10256
10729
|
*/
|
|
10257
10730
|
/** @internal */
|
|
10258
|
-
class SearchServiceClientContext extends
|
|
10731
|
+
class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
|
|
10259
10732
|
/**
|
|
10260
10733
|
* Initializes a new instance of the SearchServiceClientContext class.
|
|
10261
10734
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -10276,7 +10749,7 @@ class SearchServiceClientContext extends coreClient.ServiceClient {
|
|
|
10276
10749
|
const defaults = {
|
|
10277
10750
|
requestContentType: "application/json; charset=utf-8"
|
|
10278
10751
|
};
|
|
10279
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
10752
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.7`;
|
|
10280
10753
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10281
10754
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10282
10755
|
: `${packageDetails}`;
|
|
@@ -10312,6 +10785,7 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10312
10785
|
this.skillsets = new SkillsetsImpl(this);
|
|
10313
10786
|
this.synonymMaps = new SynonymMapsImpl(this);
|
|
10314
10787
|
this.indexes = new IndexesImpl(this);
|
|
10788
|
+
this.aliases = new AliasesImpl(this);
|
|
10315
10789
|
}
|
|
10316
10790
|
/**
|
|
10317
10791
|
* Gets service level statistics for a search service.
|
|
@@ -10322,7 +10796,7 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10322
10796
|
}
|
|
10323
10797
|
}
|
|
10324
10798
|
// Operation Specifications
|
|
10325
|
-
const serializer
|
|
10799
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10326
10800
|
const getServiceStatisticsOperationSpec = {
|
|
10327
10801
|
path: "/servicestats",
|
|
10328
10802
|
httpMethod: "GET",
|
|
@@ -10331,13 +10805,13 @@ const getServiceStatisticsOperationSpec = {
|
|
|
10331
10805
|
bodyMapper: ServiceStatistics
|
|
10332
10806
|
},
|
|
10333
10807
|
default: {
|
|
10334
|
-
bodyMapper: SearchError
|
|
10808
|
+
bodyMapper: SearchError
|
|
10335
10809
|
}
|
|
10336
10810
|
},
|
|
10337
|
-
queryParameters: [apiVersion
|
|
10338
|
-
urlParameters: [endpoint
|
|
10339
|
-
headerParameters: [accept
|
|
10340
|
-
serializer
|
|
10811
|
+
queryParameters: [apiVersion],
|
|
10812
|
+
urlParameters: [endpoint],
|
|
10813
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10814
|
+
serializer
|
|
10341
10815
|
};
|
|
10342
10816
|
|
|
10343
10817
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -10367,7 +10841,12 @@ class SearchIndexClient {
|
|
|
10367
10841
|
/**
|
|
10368
10842
|
* The API version to use when communicating with the service.
|
|
10369
10843
|
*/
|
|
10370
|
-
this.
|
|
10844
|
+
this.serviceVersion = defaultServiceVersion;
|
|
10845
|
+
/**
|
|
10846
|
+
* The API version to use when communicating with the service.
|
|
10847
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
10848
|
+
*/
|
|
10849
|
+
this.apiVersion = defaultServiceVersion;
|
|
10371
10850
|
this.endpoint = endpoint;
|
|
10372
10851
|
this.credential = credential;
|
|
10373
10852
|
this.options = options;
|
|
@@ -10390,18 +10869,25 @@ class SearchIndexClient {
|
|
|
10390
10869
|
"OData-MaxVersion",
|
|
10391
10870
|
"OData-Version",
|
|
10392
10871
|
"Prefer",
|
|
10393
|
-
"throttle-reason"
|
|
10394
|
-
]
|
|
10395
|
-
}
|
|
10872
|
+
"throttle-reason",
|
|
10873
|
+
],
|
|
10874
|
+
},
|
|
10396
10875
|
});
|
|
10397
|
-
let apiVersion = this.apiVersion;
|
|
10398
10876
|
if (options.apiVersion) {
|
|
10399
|
-
if (!
|
|
10877
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
10400
10878
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
10401
10879
|
}
|
|
10402
|
-
|
|
10880
|
+
this.serviceVersion = options.apiVersion;
|
|
10881
|
+
this.apiVersion = options.apiVersion;
|
|
10882
|
+
}
|
|
10883
|
+
if (options.serviceVersion) {
|
|
10884
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
10885
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
10886
|
+
}
|
|
10887
|
+
this.serviceVersion = options.serviceVersion;
|
|
10888
|
+
this.apiVersion = options.serviceVersion;
|
|
10403
10889
|
}
|
|
10404
|
-
this.client = new SearchServiceClient(this.endpoint,
|
|
10890
|
+
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
10405
10891
|
if (coreAuth.isTokenCredential(credential)) {
|
|
10406
10892
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
10407
10893
|
}
|
|
@@ -10421,7 +10907,7 @@ class SearchIndexClient {
|
|
|
10421
10907
|
catch (e) {
|
|
10422
10908
|
span.setStatus({
|
|
10423
10909
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10424
|
-
message: e.message
|
|
10910
|
+
message: e.message,
|
|
10425
10911
|
});
|
|
10426
10912
|
throw e;
|
|
10427
10913
|
}
|
|
@@ -10463,7 +10949,62 @@ class SearchIndexClient {
|
|
|
10463
10949
|
},
|
|
10464
10950
|
byPage: () => {
|
|
10465
10951
|
return this.listIndexesPage(options);
|
|
10952
|
+
},
|
|
10953
|
+
};
|
|
10954
|
+
}
|
|
10955
|
+
listAliasesPage(options = {}) {
|
|
10956
|
+
return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
|
|
10957
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options);
|
|
10958
|
+
try {
|
|
10959
|
+
const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
|
|
10960
|
+
yield yield tslib.__await(result.aliases);
|
|
10961
|
+
}
|
|
10962
|
+
catch (e) {
|
|
10963
|
+
span.setStatus({
|
|
10964
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
10965
|
+
message: e.message,
|
|
10966
|
+
});
|
|
10967
|
+
throw e;
|
|
10968
|
+
}
|
|
10969
|
+
finally {
|
|
10970
|
+
span.end();
|
|
10466
10971
|
}
|
|
10972
|
+
});
|
|
10973
|
+
}
|
|
10974
|
+
listAliasesAll(options = {}) {
|
|
10975
|
+
return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
|
|
10976
|
+
var e_2, _a;
|
|
10977
|
+
try {
|
|
10978
|
+
for (var _b = tslib.__asyncValues(this.listAliasesPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
10979
|
+
const page = _c.value;
|
|
10980
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
10981
|
+
}
|
|
10982
|
+
}
|
|
10983
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
10984
|
+
finally {
|
|
10985
|
+
try {
|
|
10986
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
10987
|
+
}
|
|
10988
|
+
finally { if (e_2) throw e_2.error; }
|
|
10989
|
+
}
|
|
10990
|
+
});
|
|
10991
|
+
}
|
|
10992
|
+
/**
|
|
10993
|
+
* Lists all aliases available for a search service.
|
|
10994
|
+
* @param options - The options parameters.
|
|
10995
|
+
*/
|
|
10996
|
+
listAliases(options = {}) {
|
|
10997
|
+
const iter = this.listAliasesAll(options);
|
|
10998
|
+
return {
|
|
10999
|
+
next() {
|
|
11000
|
+
return iter.next();
|
|
11001
|
+
},
|
|
11002
|
+
[Symbol.asyncIterator]() {
|
|
11003
|
+
return this;
|
|
11004
|
+
},
|
|
11005
|
+
byPage: () => {
|
|
11006
|
+
return this.listAliasesPage(options);
|
|
11007
|
+
},
|
|
10467
11008
|
};
|
|
10468
11009
|
}
|
|
10469
11010
|
listIndexesNamesPage(options = {}) {
|
|
@@ -10477,7 +11018,7 @@ class SearchIndexClient {
|
|
|
10477
11018
|
catch (e) {
|
|
10478
11019
|
span.setStatus({
|
|
10479
11020
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10480
|
-
message: e.message
|
|
11021
|
+
message: e.message,
|
|
10481
11022
|
});
|
|
10482
11023
|
throw e;
|
|
10483
11024
|
}
|
|
@@ -10488,19 +11029,19 @@ class SearchIndexClient {
|
|
|
10488
11029
|
}
|
|
10489
11030
|
listIndexesNamesAll(options = {}) {
|
|
10490
11031
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
|
|
10491
|
-
var
|
|
11032
|
+
var e_3, _a;
|
|
10492
11033
|
try {
|
|
10493
11034
|
for (var _b = tslib.__asyncValues(this.listIndexesNamesPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
10494
11035
|
const page = _c.value;
|
|
10495
11036
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
10496
11037
|
}
|
|
10497
11038
|
}
|
|
10498
|
-
catch (
|
|
11039
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
10499
11040
|
finally {
|
|
10500
11041
|
try {
|
|
10501
11042
|
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
10502
11043
|
}
|
|
10503
|
-
finally { if (
|
|
11044
|
+
finally { if (e_3) throw e_3.error; }
|
|
10504
11045
|
}
|
|
10505
11046
|
});
|
|
10506
11047
|
}
|
|
@@ -10519,7 +11060,7 @@ class SearchIndexClient {
|
|
|
10519
11060
|
},
|
|
10520
11061
|
byPage: () => {
|
|
10521
11062
|
return this.listIndexesNamesPage(options);
|
|
10522
|
-
}
|
|
11063
|
+
},
|
|
10523
11064
|
};
|
|
10524
11065
|
}
|
|
10525
11066
|
/**
|
|
@@ -10535,7 +11076,7 @@ class SearchIndexClient {
|
|
|
10535
11076
|
catch (e) {
|
|
10536
11077
|
span.setStatus({
|
|
10537
11078
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10538
|
-
message: e.message
|
|
11079
|
+
message: e.message,
|
|
10539
11080
|
});
|
|
10540
11081
|
throw e;
|
|
10541
11082
|
}
|
|
@@ -10556,7 +11097,7 @@ class SearchIndexClient {
|
|
|
10556
11097
|
catch (e) {
|
|
10557
11098
|
span.setStatus({
|
|
10558
11099
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10559
|
-
message: e.message
|
|
11100
|
+
message: e.message,
|
|
10560
11101
|
});
|
|
10561
11102
|
throw e;
|
|
10562
11103
|
}
|
|
@@ -10578,7 +11119,7 @@ class SearchIndexClient {
|
|
|
10578
11119
|
catch (e) {
|
|
10579
11120
|
span.setStatus({
|
|
10580
11121
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10581
|
-
message: e.message
|
|
11122
|
+
message: e.message,
|
|
10582
11123
|
});
|
|
10583
11124
|
throw e;
|
|
10584
11125
|
}
|
|
@@ -10600,7 +11141,7 @@ class SearchIndexClient {
|
|
|
10600
11141
|
catch (e) {
|
|
10601
11142
|
span.setStatus({
|
|
10602
11143
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10603
|
-
message: e.message
|
|
11144
|
+
message: e.message,
|
|
10604
11145
|
});
|
|
10605
11146
|
throw e;
|
|
10606
11147
|
}
|
|
@@ -10622,7 +11163,7 @@ class SearchIndexClient {
|
|
|
10622
11163
|
catch (e) {
|
|
10623
11164
|
span.setStatus({
|
|
10624
11165
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10625
|
-
message: e.message
|
|
11166
|
+
message: e.message,
|
|
10626
11167
|
});
|
|
10627
11168
|
throw e;
|
|
10628
11169
|
}
|
|
@@ -10644,7 +11185,7 @@ class SearchIndexClient {
|
|
|
10644
11185
|
catch (e) {
|
|
10645
11186
|
span.setStatus({
|
|
10646
11187
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10647
|
-
message: e.message
|
|
11188
|
+
message: e.message,
|
|
10648
11189
|
});
|
|
10649
11190
|
throw e;
|
|
10650
11191
|
}
|
|
@@ -10667,7 +11208,7 @@ class SearchIndexClient {
|
|
|
10667
11208
|
catch (e) {
|
|
10668
11209
|
span.setStatus({
|
|
10669
11210
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10670
|
-
message: e.message
|
|
11211
|
+
message: e.message,
|
|
10671
11212
|
});
|
|
10672
11213
|
throw e;
|
|
10673
11214
|
}
|
|
@@ -10690,7 +11231,7 @@ class SearchIndexClient {
|
|
|
10690
11231
|
catch (e) {
|
|
10691
11232
|
span.setStatus({
|
|
10692
11233
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10693
|
-
message: e.message
|
|
11234
|
+
message: e.message,
|
|
10694
11235
|
});
|
|
10695
11236
|
throw e;
|
|
10696
11237
|
}
|
|
@@ -10713,7 +11254,7 @@ class SearchIndexClient {
|
|
|
10713
11254
|
catch (e) {
|
|
10714
11255
|
span.setStatus({
|
|
10715
11256
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10716
|
-
message: e.message
|
|
11257
|
+
message: e.message,
|
|
10717
11258
|
});
|
|
10718
11259
|
throw e;
|
|
10719
11260
|
}
|
|
@@ -10740,7 +11281,98 @@ class SearchIndexClient {
|
|
|
10740
11281
|
catch (e) {
|
|
10741
11282
|
span.setStatus({
|
|
10742
11283
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10743
|
-
message: e.message
|
|
11284
|
+
message: e.message,
|
|
11285
|
+
});
|
|
11286
|
+
throw e;
|
|
11287
|
+
}
|
|
11288
|
+
finally {
|
|
11289
|
+
span.end();
|
|
11290
|
+
}
|
|
11291
|
+
}
|
|
11292
|
+
/**
|
|
11293
|
+
* Creates a new search alias or updates an alias if it already exists.
|
|
11294
|
+
* @param alias - The definition of the alias to create or update.
|
|
11295
|
+
* @param options - The options parameters.
|
|
11296
|
+
*/
|
|
11297
|
+
async createOrUpdateAlias(alias, options = {}) {
|
|
11298
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options);
|
|
11299
|
+
try {
|
|
11300
|
+
const etag = options.onlyIfUnchanged ? alias.etag : undefined;
|
|
11301
|
+
const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11302
|
+
return result;
|
|
11303
|
+
}
|
|
11304
|
+
catch (e) {
|
|
11305
|
+
span.setStatus({
|
|
11306
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
11307
|
+
message: e.message,
|
|
11308
|
+
});
|
|
11309
|
+
throw e;
|
|
11310
|
+
}
|
|
11311
|
+
finally {
|
|
11312
|
+
span.end();
|
|
11313
|
+
}
|
|
11314
|
+
}
|
|
11315
|
+
/**
|
|
11316
|
+
* Creates a new search alias.
|
|
11317
|
+
* @param alias - The definition of the alias to create.
|
|
11318
|
+
* @param options - The options parameters.
|
|
11319
|
+
*/
|
|
11320
|
+
async createAlias(alias, options = {}) {
|
|
11321
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-createAlias", options);
|
|
11322
|
+
try {
|
|
11323
|
+
const result = await this.client.aliases.create(alias, updatedOptions);
|
|
11324
|
+
return result;
|
|
11325
|
+
}
|
|
11326
|
+
catch (e) {
|
|
11327
|
+
span.setStatus({
|
|
11328
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
11329
|
+
message: e.message,
|
|
11330
|
+
});
|
|
11331
|
+
throw e;
|
|
11332
|
+
}
|
|
11333
|
+
finally {
|
|
11334
|
+
span.end();
|
|
11335
|
+
}
|
|
11336
|
+
}
|
|
11337
|
+
/**
|
|
11338
|
+
* Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
|
|
11339
|
+
* recovery option. The mapped index is untouched by this operation.
|
|
11340
|
+
* @param alias - Alias/Name name of the alias to delete.
|
|
11341
|
+
* @param options - The options parameters.
|
|
11342
|
+
*/
|
|
11343
|
+
async deleteAlias(alias, options = {}) {
|
|
11344
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteAlias", options);
|
|
11345
|
+
try {
|
|
11346
|
+
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
11347
|
+
const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
|
|
11348
|
+
await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
|
|
11349
|
+
}
|
|
11350
|
+
catch (e) {
|
|
11351
|
+
span.setStatus({
|
|
11352
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
11353
|
+
message: e.message,
|
|
11354
|
+
});
|
|
11355
|
+
throw e;
|
|
11356
|
+
}
|
|
11357
|
+
finally {
|
|
11358
|
+
span.end();
|
|
11359
|
+
}
|
|
11360
|
+
}
|
|
11361
|
+
/**
|
|
11362
|
+
* Retrieves an alias definition.
|
|
11363
|
+
* @param aliasName - The name of the alias to retrieve.
|
|
11364
|
+
* @param options - The options parameters.
|
|
11365
|
+
*/
|
|
11366
|
+
async getAlias(aliasName, options = {}) {
|
|
11367
|
+
const { span, updatedOptions } = createSpan("SearchIndexerClient-getAlias", options);
|
|
11368
|
+
try {
|
|
11369
|
+
const result = await this.client.aliases.get(aliasName, updatedOptions);
|
|
11370
|
+
return result;
|
|
11371
|
+
}
|
|
11372
|
+
catch (e) {
|
|
11373
|
+
span.setStatus({
|
|
11374
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
|
11375
|
+
message: e.message,
|
|
10744
11376
|
});
|
|
10745
11377
|
throw e;
|
|
10746
11378
|
}
|
|
@@ -10763,7 +11395,7 @@ class SearchIndexClient {
|
|
|
10763
11395
|
catch (e) {
|
|
10764
11396
|
span.setStatus({
|
|
10765
11397
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10766
|
-
message: e.message
|
|
11398
|
+
message: e.message,
|
|
10767
11399
|
});
|
|
10768
11400
|
throw e;
|
|
10769
11401
|
}
|
|
@@ -10782,7 +11414,7 @@ class SearchIndexClient {
|
|
|
10782
11414
|
const operationOptions = {
|
|
10783
11415
|
abortSignal,
|
|
10784
11416
|
requestOptions,
|
|
10785
|
-
tracingOptions
|
|
11417
|
+
tracingOptions,
|
|
10786
11418
|
};
|
|
10787
11419
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
10788
11420
|
try {
|
|
@@ -10792,7 +11424,7 @@ class SearchIndexClient {
|
|
|
10792
11424
|
catch (e) {
|
|
10793
11425
|
span.setStatus({
|
|
10794
11426
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10795
|
-
message: e.message
|
|
11427
|
+
message: e.message,
|
|
10796
11428
|
});
|
|
10797
11429
|
throw e;
|
|
10798
11430
|
}
|
|
@@ -10813,7 +11445,7 @@ class SearchIndexClient {
|
|
|
10813
11445
|
catch (e) {
|
|
10814
11446
|
span.setStatus({
|
|
10815
11447
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10816
|
-
message: e.message
|
|
11448
|
+
message: e.message,
|
|
10817
11449
|
});
|
|
10818
11450
|
throw e;
|
|
10819
11451
|
}
|
|
@@ -10827,7 +11459,7 @@ class SearchIndexClient {
|
|
|
10827
11459
|
* @param options - SearchClient Options
|
|
10828
11460
|
*/
|
|
10829
11461
|
getSearchClient(indexName, options) {
|
|
10830
|
-
return new SearchClient
|
|
11462
|
+
return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
|
|
10831
11463
|
}
|
|
10832
11464
|
}
|
|
10833
11465
|
|
|
@@ -10858,7 +11490,12 @@ class SearchIndexerClient {
|
|
|
10858
11490
|
/**
|
|
10859
11491
|
* The API version to use when communicating with the service.
|
|
10860
11492
|
*/
|
|
10861
|
-
this.
|
|
11493
|
+
this.serviceVersion = defaultServiceVersion;
|
|
11494
|
+
/**
|
|
11495
|
+
* The API version to use when communicating with the service.
|
|
11496
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
11497
|
+
*/
|
|
11498
|
+
this.apiVersion = defaultServiceVersion;
|
|
10862
11499
|
this.endpoint = endpoint;
|
|
10863
11500
|
const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;
|
|
10864
11501
|
if (!options.userAgentOptions) {
|
|
@@ -10879,18 +11516,25 @@ class SearchIndexerClient {
|
|
|
10879
11516
|
"OData-MaxVersion",
|
|
10880
11517
|
"OData-Version",
|
|
10881
11518
|
"Prefer",
|
|
10882
|
-
"throttle-reason"
|
|
10883
|
-
]
|
|
10884
|
-
}
|
|
11519
|
+
"throttle-reason",
|
|
11520
|
+
],
|
|
11521
|
+
},
|
|
10885
11522
|
});
|
|
10886
|
-
let apiVersion = this.apiVersion;
|
|
10887
11523
|
if (options.apiVersion) {
|
|
10888
|
-
if (!
|
|
11524
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
10889
11525
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
10890
11526
|
}
|
|
10891
|
-
|
|
11527
|
+
this.serviceVersion = options.apiVersion;
|
|
11528
|
+
this.apiVersion = options.apiVersion;
|
|
11529
|
+
}
|
|
11530
|
+
if (options.serviceVersion) {
|
|
11531
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
11532
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
11533
|
+
}
|
|
11534
|
+
this.serviceVersion = options.serviceVersion;
|
|
11535
|
+
this.apiVersion = options.serviceVersion;
|
|
10892
11536
|
}
|
|
10893
|
-
this.client = new SearchServiceClient(this.endpoint,
|
|
11537
|
+
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
10894
11538
|
if (coreAuth.isTokenCredential(credential)) {
|
|
10895
11539
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
10896
11540
|
}
|
|
@@ -10912,7 +11556,7 @@ class SearchIndexerClient {
|
|
|
10912
11556
|
catch (e) {
|
|
10913
11557
|
span.setStatus({
|
|
10914
11558
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10915
|
-
message: e.message
|
|
11559
|
+
message: e.message,
|
|
10916
11560
|
});
|
|
10917
11561
|
throw e;
|
|
10918
11562
|
}
|
|
@@ -10933,7 +11577,7 @@ class SearchIndexerClient {
|
|
|
10933
11577
|
catch (e) {
|
|
10934
11578
|
span.setStatus({
|
|
10935
11579
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10936
|
-
message: e.message
|
|
11580
|
+
message: e.message,
|
|
10937
11581
|
});
|
|
10938
11582
|
throw e;
|
|
10939
11583
|
}
|
|
@@ -10954,7 +11598,7 @@ class SearchIndexerClient {
|
|
|
10954
11598
|
catch (e) {
|
|
10955
11599
|
span.setStatus({
|
|
10956
11600
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10957
|
-
message: e.message
|
|
11601
|
+
message: e.message,
|
|
10958
11602
|
});
|
|
10959
11603
|
throw e;
|
|
10960
11604
|
}
|
|
@@ -10975,7 +11619,7 @@ class SearchIndexerClient {
|
|
|
10975
11619
|
catch (e) {
|
|
10976
11620
|
span.setStatus({
|
|
10977
11621
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10978
|
-
message: e.message
|
|
11622
|
+
message: e.message,
|
|
10979
11623
|
});
|
|
10980
11624
|
throw e;
|
|
10981
11625
|
}
|
|
@@ -10996,7 +11640,7 @@ class SearchIndexerClient {
|
|
|
10996
11640
|
catch (e) {
|
|
10997
11641
|
span.setStatus({
|
|
10998
11642
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10999
|
-
message: e.message
|
|
11643
|
+
message: e.message,
|
|
11000
11644
|
});
|
|
11001
11645
|
throw e;
|
|
11002
11646
|
}
|
|
@@ -11017,7 +11661,7 @@ class SearchIndexerClient {
|
|
|
11017
11661
|
catch (e) {
|
|
11018
11662
|
span.setStatus({
|
|
11019
11663
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11020
|
-
message: e.message
|
|
11664
|
+
message: e.message,
|
|
11021
11665
|
});
|
|
11022
11666
|
throw e;
|
|
11023
11667
|
}
|
|
@@ -11039,7 +11683,7 @@ class SearchIndexerClient {
|
|
|
11039
11683
|
catch (e) {
|
|
11040
11684
|
span.setStatus({
|
|
11041
11685
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11042
|
-
message: e.message
|
|
11686
|
+
message: e.message,
|
|
11043
11687
|
});
|
|
11044
11688
|
throw e;
|
|
11045
11689
|
}
|
|
@@ -11061,7 +11705,7 @@ class SearchIndexerClient {
|
|
|
11061
11705
|
catch (e) {
|
|
11062
11706
|
span.setStatus({
|
|
11063
11707
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11064
|
-
message: e.message
|
|
11708
|
+
message: e.message,
|
|
11065
11709
|
});
|
|
11066
11710
|
throw e;
|
|
11067
11711
|
}
|
|
@@ -11083,7 +11727,7 @@ class SearchIndexerClient {
|
|
|
11083
11727
|
catch (e) {
|
|
11084
11728
|
span.setStatus({
|
|
11085
11729
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11086
|
-
message: e.message
|
|
11730
|
+
message: e.message,
|
|
11087
11731
|
});
|
|
11088
11732
|
throw e;
|
|
11089
11733
|
}
|
|
@@ -11105,7 +11749,7 @@ class SearchIndexerClient {
|
|
|
11105
11749
|
catch (e) {
|
|
11106
11750
|
span.setStatus({
|
|
11107
11751
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11108
|
-
message: e.message
|
|
11752
|
+
message: e.message,
|
|
11109
11753
|
});
|
|
11110
11754
|
throw e;
|
|
11111
11755
|
}
|
|
@@ -11127,7 +11771,7 @@ class SearchIndexerClient {
|
|
|
11127
11771
|
catch (e) {
|
|
11128
11772
|
span.setStatus({
|
|
11129
11773
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11130
|
-
message: e.message
|
|
11774
|
+
message: e.message,
|
|
11131
11775
|
});
|
|
11132
11776
|
throw e;
|
|
11133
11777
|
}
|
|
@@ -11149,7 +11793,7 @@ class SearchIndexerClient {
|
|
|
11149
11793
|
catch (e) {
|
|
11150
11794
|
span.setStatus({
|
|
11151
11795
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11152
|
-
message: e.message
|
|
11796
|
+
message: e.message,
|
|
11153
11797
|
});
|
|
11154
11798
|
throw e;
|
|
11155
11799
|
}
|
|
@@ -11172,7 +11816,7 @@ class SearchIndexerClient {
|
|
|
11172
11816
|
catch (e) {
|
|
11173
11817
|
span.setStatus({
|
|
11174
11818
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11175
|
-
message: e.message
|
|
11819
|
+
message: e.message,
|
|
11176
11820
|
});
|
|
11177
11821
|
throw e;
|
|
11178
11822
|
}
|
|
@@ -11195,7 +11839,7 @@ class SearchIndexerClient {
|
|
|
11195
11839
|
catch (e) {
|
|
11196
11840
|
span.setStatus({
|
|
11197
11841
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11198
|
-
message: e.message
|
|
11842
|
+
message: e.message,
|
|
11199
11843
|
});
|
|
11200
11844
|
throw e;
|
|
11201
11845
|
}
|
|
@@ -11218,7 +11862,7 @@ class SearchIndexerClient {
|
|
|
11218
11862
|
catch (e) {
|
|
11219
11863
|
span.setStatus({
|
|
11220
11864
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11221
|
-
message: e.message
|
|
11865
|
+
message: e.message,
|
|
11222
11866
|
});
|
|
11223
11867
|
throw e;
|
|
11224
11868
|
}
|
|
@@ -11245,7 +11889,7 @@ class SearchIndexerClient {
|
|
|
11245
11889
|
catch (e) {
|
|
11246
11890
|
span.setStatus({
|
|
11247
11891
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11248
|
-
message: e.message
|
|
11892
|
+
message: e.message,
|
|
11249
11893
|
});
|
|
11250
11894
|
throw e;
|
|
11251
11895
|
}
|
|
@@ -11272,7 +11916,7 @@ class SearchIndexerClient {
|
|
|
11272
11916
|
catch (e) {
|
|
11273
11917
|
span.setStatus({
|
|
11274
11918
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11275
|
-
message: e.message
|
|
11919
|
+
message: e.message,
|
|
11276
11920
|
});
|
|
11277
11921
|
throw e;
|
|
11278
11922
|
}
|
|
@@ -11299,7 +11943,7 @@ class SearchIndexerClient {
|
|
|
11299
11943
|
catch (e) {
|
|
11300
11944
|
span.setStatus({
|
|
11301
11945
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11302
|
-
message: e.message
|
|
11946
|
+
message: e.message,
|
|
11303
11947
|
});
|
|
11304
11948
|
throw e;
|
|
11305
11949
|
}
|
|
@@ -11321,7 +11965,7 @@ class SearchIndexerClient {
|
|
|
11321
11965
|
catch (e) {
|
|
11322
11966
|
span.setStatus({
|
|
11323
11967
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11324
|
-
message: e.message
|
|
11968
|
+
message: e.message,
|
|
11325
11969
|
});
|
|
11326
11970
|
throw e;
|
|
11327
11971
|
}
|
|
@@ -11342,7 +11986,7 @@ class SearchIndexerClient {
|
|
|
11342
11986
|
catch (e) {
|
|
11343
11987
|
span.setStatus({
|
|
11344
11988
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11345
|
-
message: e.message
|
|
11989
|
+
message: e.message,
|
|
11346
11990
|
});
|
|
11347
11991
|
throw e;
|
|
11348
11992
|
}
|
|
@@ -11363,7 +12007,7 @@ class SearchIndexerClient {
|
|
|
11363
12007
|
catch (e) {
|
|
11364
12008
|
span.setStatus({
|
|
11365
12009
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11366
|
-
message: e.message
|
|
12010
|
+
message: e.message,
|
|
11367
12011
|
});
|
|
11368
12012
|
throw e;
|
|
11369
12013
|
}
|
|
@@ -11376,18 +12020,18 @@ class SearchIndexerClient {
|
|
|
11376
12020
|
* @param indexerName - The name of the indexer to reset documents for.
|
|
11377
12021
|
* @param options - Additional optional arguments.
|
|
11378
12022
|
*/
|
|
11379
|
-
async
|
|
12023
|
+
async resetDocuments(indexerName, options = {}) {
|
|
11380
12024
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
|
|
11381
12025
|
try {
|
|
11382
12026
|
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
11383
12027
|
documentKeys: updatedOptions.documentKeys,
|
|
11384
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds
|
|
12028
|
+
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
11385
12029
|
} }));
|
|
11386
12030
|
}
|
|
11387
12031
|
catch (e) {
|
|
11388
12032
|
span.setStatus({
|
|
11389
12033
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11390
|
-
message: e.message
|
|
12034
|
+
message: e.message,
|
|
11391
12035
|
});
|
|
11392
12036
|
throw e;
|
|
11393
12037
|
}
|
|
@@ -11401,15 +12045,15 @@ class SearchIndexerClient {
|
|
|
11401
12045
|
* @param skillNames - The names of skills to reset.
|
|
11402
12046
|
* @param options - The options parameters.
|
|
11403
12047
|
*/
|
|
11404
|
-
async resetSkills(skillsetName,
|
|
12048
|
+
async resetSkills(skillsetName, options = {}) {
|
|
11405
12049
|
const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
|
|
11406
12050
|
try {
|
|
11407
|
-
await this.client.skillsets.resetSkills(skillsetName, { skillNames }, updatedOptions);
|
|
12051
|
+
await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
|
|
11408
12052
|
}
|
|
11409
12053
|
catch (e) {
|
|
11410
12054
|
span.setStatus({
|
|
11411
12055
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11412
|
-
message: e.message
|
|
12056
|
+
message: e.message,
|
|
11413
12057
|
});
|
|
11414
12058
|
throw e;
|
|
11415
12059
|
}
|
|
@@ -11474,23 +12118,169 @@ function odata(strings, ...values) {
|
|
|
11474
12118
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11475
12119
|
*/
|
|
11476
12120
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11477
|
-
var KnownApiVersion20210430Preview;
|
|
12121
|
+
var KnownApiVersion20210430Preview$1;
|
|
11478
12122
|
(function (KnownApiVersion20210430Preview) {
|
|
11479
12123
|
/** Api Version '2021-04-30-Preview' */
|
|
11480
12124
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11481
|
-
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
12125
|
+
})(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
|
|
12126
|
+
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
12127
|
+
exports.KnownQueryLanguage = void 0;
|
|
11482
12128
|
(function (KnownQueryLanguage) {
|
|
11483
12129
|
/** Query language not specified. */
|
|
11484
12130
|
KnownQueryLanguage["None"] = "none";
|
|
11485
|
-
/** English */
|
|
12131
|
+
/** Query language value for English (United States). */
|
|
11486
12132
|
KnownQueryLanguage["EnUs"] = "en-us";
|
|
12133
|
+
/** Query language value for English (Great Britain). */
|
|
12134
|
+
KnownQueryLanguage["EnGb"] = "en-gb";
|
|
12135
|
+
/** Query language value for English (India). */
|
|
12136
|
+
KnownQueryLanguage["EnIn"] = "en-in";
|
|
12137
|
+
/** Query language value for English (Canada). */
|
|
12138
|
+
KnownQueryLanguage["EnCa"] = "en-ca";
|
|
12139
|
+
/** Query language value for English (Australia). */
|
|
12140
|
+
KnownQueryLanguage["EnAu"] = "en-au";
|
|
12141
|
+
/** Query language value for French (France). */
|
|
12142
|
+
KnownQueryLanguage["FrFr"] = "fr-fr";
|
|
12143
|
+
/** Query language value for French (Canada). */
|
|
12144
|
+
KnownQueryLanguage["FrCa"] = "fr-ca";
|
|
12145
|
+
/** Query language value for German (Germany). */
|
|
12146
|
+
KnownQueryLanguage["DeDe"] = "de-de";
|
|
12147
|
+
/** Query language value for Spanish (Spain). */
|
|
12148
|
+
KnownQueryLanguage["EsEs"] = "es-es";
|
|
12149
|
+
/** Query language value for Spanish (Mexico). */
|
|
12150
|
+
KnownQueryLanguage["EsMx"] = "es-mx";
|
|
12151
|
+
/** Query language value for Chinese (China). */
|
|
12152
|
+
KnownQueryLanguage["ZhCn"] = "zh-cn";
|
|
12153
|
+
/** Query language value for Chinese (Taiwan). */
|
|
12154
|
+
KnownQueryLanguage["ZhTw"] = "zh-tw";
|
|
12155
|
+
/** Query language value for Portuguese (Brazil). */
|
|
12156
|
+
KnownQueryLanguage["PtBr"] = "pt-br";
|
|
12157
|
+
/** Query language value for Portuguese (Portugal). */
|
|
12158
|
+
KnownQueryLanguage["PtPt"] = "pt-pt";
|
|
12159
|
+
/** Query language value for Italian (Italy). */
|
|
12160
|
+
KnownQueryLanguage["ItIt"] = "it-it";
|
|
12161
|
+
/** Query language value for Japanese (Japan). */
|
|
12162
|
+
KnownQueryLanguage["JaJp"] = "ja-jp";
|
|
12163
|
+
/** Query language value for Korean (Korea). */
|
|
12164
|
+
KnownQueryLanguage["KoKr"] = "ko-kr";
|
|
12165
|
+
/** Query language value for Russian (Russia). */
|
|
12166
|
+
KnownQueryLanguage["RuRu"] = "ru-ru";
|
|
12167
|
+
/** Query language value for Czech (Czech Republic). */
|
|
12168
|
+
KnownQueryLanguage["CsCz"] = "cs-cz";
|
|
12169
|
+
/** Query language value for Dutch (Belgium). */
|
|
12170
|
+
KnownQueryLanguage["NlBe"] = "nl-be";
|
|
12171
|
+
/** Query language value for Dutch (Netherlands). */
|
|
12172
|
+
KnownQueryLanguage["NlNl"] = "nl-nl";
|
|
12173
|
+
/** Query language value for Hungarian (Hungary). */
|
|
12174
|
+
KnownQueryLanguage["HuHu"] = "hu-hu";
|
|
12175
|
+
/** Query language value for Polish (Poland). */
|
|
12176
|
+
KnownQueryLanguage["PlPl"] = "pl-pl";
|
|
12177
|
+
/** Query language value for Swedish (Sweden). */
|
|
12178
|
+
KnownQueryLanguage["SvSe"] = "sv-se";
|
|
12179
|
+
/** Query language value for Turkish (Turkey). */
|
|
12180
|
+
KnownQueryLanguage["TrTr"] = "tr-tr";
|
|
12181
|
+
/** Query language value for Hindi (India). */
|
|
12182
|
+
KnownQueryLanguage["HiIn"] = "hi-in";
|
|
12183
|
+
/** Query language value for Arabic (Saudi Arabia). */
|
|
12184
|
+
KnownQueryLanguage["ArSa"] = "ar-sa";
|
|
12185
|
+
/** Query language value for Arabic (Egypt). */
|
|
12186
|
+
KnownQueryLanguage["ArEg"] = "ar-eg";
|
|
12187
|
+
/** Query language value for Arabic (Morocco). */
|
|
12188
|
+
KnownQueryLanguage["ArMa"] = "ar-ma";
|
|
12189
|
+
/** Query language value for Arabic (Kuwait). */
|
|
12190
|
+
KnownQueryLanguage["ArKw"] = "ar-kw";
|
|
12191
|
+
/** Query language value for Arabic (Jordan). */
|
|
12192
|
+
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
12193
|
+
/** Query language value for Danish (Denmark). */
|
|
12194
|
+
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
12195
|
+
/** Query language value for Norwegian (Norway). */
|
|
12196
|
+
KnownQueryLanguage["NoNo"] = "no-no";
|
|
12197
|
+
/** Query language value for Bulgarian (Bulgaria). */
|
|
12198
|
+
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
12199
|
+
/** Query language value for Croatian (Croatia). */
|
|
12200
|
+
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
12201
|
+
/** Query language value for Croatian (Bosnia and Herzegovina). */
|
|
12202
|
+
KnownQueryLanguage["HrBa"] = "hr-ba";
|
|
12203
|
+
/** Query language value for Malay (Malaysia). */
|
|
12204
|
+
KnownQueryLanguage["MsMy"] = "ms-my";
|
|
12205
|
+
/** Query language value for Malay (Brunei Darussalam). */
|
|
12206
|
+
KnownQueryLanguage["MsBn"] = "ms-bn";
|
|
12207
|
+
/** Query language value for Slovenian (Slovenia). */
|
|
12208
|
+
KnownQueryLanguage["SlSl"] = "sl-sl";
|
|
12209
|
+
/** Query language value for Tamil (India). */
|
|
12210
|
+
KnownQueryLanguage["TaIn"] = "ta-in";
|
|
12211
|
+
/** Query language value for Vietnamese (Viet Nam). */
|
|
12212
|
+
KnownQueryLanguage["ViVn"] = "vi-vn";
|
|
12213
|
+
/** Query language value for Greek (Greece). */
|
|
12214
|
+
KnownQueryLanguage["ElGr"] = "el-gr";
|
|
12215
|
+
/** Query language value for Romanian (Romania). */
|
|
12216
|
+
KnownQueryLanguage["RoRo"] = "ro-ro";
|
|
12217
|
+
/** Query language value for Icelandic (Iceland). */
|
|
12218
|
+
KnownQueryLanguage["IsIs"] = "is-is";
|
|
12219
|
+
/** Query language value for Indonesian (Indonesia). */
|
|
12220
|
+
KnownQueryLanguage["IdId"] = "id-id";
|
|
12221
|
+
/** Query language value for Thai (Thailand). */
|
|
12222
|
+
KnownQueryLanguage["ThTh"] = "th-th";
|
|
12223
|
+
/** Query language value for Lithuanian (Lithuania). */
|
|
12224
|
+
KnownQueryLanguage["LtLt"] = "lt-lt";
|
|
12225
|
+
/** Query language value for Ukrainian (Ukraine). */
|
|
12226
|
+
KnownQueryLanguage["UkUa"] = "uk-ua";
|
|
12227
|
+
/** Query language value for Latvian (Latvia). */
|
|
12228
|
+
KnownQueryLanguage["LvLv"] = "lv-lv";
|
|
12229
|
+
/** Query language value for Estonian (Estonia). */
|
|
12230
|
+
KnownQueryLanguage["EtEe"] = "et-ee";
|
|
12231
|
+
/** Query language value for Catalan (Spain). */
|
|
12232
|
+
KnownQueryLanguage["CaEs"] = "ca-es";
|
|
12233
|
+
/** Query language value for Finnish (Finland). */
|
|
12234
|
+
KnownQueryLanguage["FiFi"] = "fi-fi";
|
|
12235
|
+
/** Query language value for Serbian (Bosnia and Herzegovina). */
|
|
12236
|
+
KnownQueryLanguage["SrBa"] = "sr-ba";
|
|
12237
|
+
/** Query language value for Serbian (Montenegro). */
|
|
12238
|
+
KnownQueryLanguage["SrMe"] = "sr-me";
|
|
12239
|
+
/** Query language value for Serbian (Serbia). */
|
|
12240
|
+
KnownQueryLanguage["SrRs"] = "sr-rs";
|
|
12241
|
+
/** Query language value for Slovak (Slovakia). */
|
|
12242
|
+
KnownQueryLanguage["SkSk"] = "sk-sk";
|
|
12243
|
+
/** Query language value for Norwegian (Norway). */
|
|
12244
|
+
KnownQueryLanguage["NbNo"] = "nb-no";
|
|
12245
|
+
/** Query language value for Armenian (Armenia). */
|
|
12246
|
+
KnownQueryLanguage["HyAm"] = "hy-am";
|
|
12247
|
+
/** Query language value for Bengali (India). */
|
|
12248
|
+
KnownQueryLanguage["BnIn"] = "bn-in";
|
|
12249
|
+
/** Query language value for Basque (Spain). */
|
|
12250
|
+
KnownQueryLanguage["EuEs"] = "eu-es";
|
|
12251
|
+
/** Query language value for Galician (Spain). */
|
|
12252
|
+
KnownQueryLanguage["GlEs"] = "gl-es";
|
|
12253
|
+
/** Query language value for Gujarati (India). */
|
|
12254
|
+
KnownQueryLanguage["GuIn"] = "gu-in";
|
|
12255
|
+
/** Query language value for Hebrew (Israel). */
|
|
12256
|
+
KnownQueryLanguage["HeIl"] = "he-il";
|
|
12257
|
+
/** Query language value for Irish (Ireland). */
|
|
12258
|
+
KnownQueryLanguage["GaIe"] = "ga-ie";
|
|
12259
|
+
/** Query language value for Kannada (India). */
|
|
12260
|
+
KnownQueryLanguage["KnIn"] = "kn-in";
|
|
12261
|
+
/** Query language value for Malayalam (India). */
|
|
12262
|
+
KnownQueryLanguage["MlIn"] = "ml-in";
|
|
12263
|
+
/** Query language value for Marathi (India). */
|
|
12264
|
+
KnownQueryLanguage["MrIn"] = "mr-in";
|
|
12265
|
+
/** Query language value for Persian (U.A.E.). */
|
|
12266
|
+
KnownQueryLanguage["FaAe"] = "fa-ae";
|
|
12267
|
+
/** Query language value for Punjabi (India). */
|
|
12268
|
+
KnownQueryLanguage["PaIn"] = "pa-in";
|
|
12269
|
+
/** Query language value for Telugu (India). */
|
|
12270
|
+
KnownQueryLanguage["TeIn"] = "te-in";
|
|
12271
|
+
/** Query language value for Urdu (Pakistan). */
|
|
12272
|
+
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
11487
12273
|
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
12274
|
+
/** Known values of {@link Speller} that the service accepts. */
|
|
12275
|
+
exports.KnownSpeller = void 0;
|
|
11488
12276
|
(function (KnownSpeller) {
|
|
11489
12277
|
/** Speller not enabled. */
|
|
11490
12278
|
KnownSpeller["None"] = "none";
|
|
11491
12279
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11492
12280
|
KnownSpeller["Lexicon"] = "lexicon";
|
|
11493
12281
|
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
12282
|
+
/** Known values of {@link Answers} that the service accepts. */
|
|
12283
|
+
exports.KnownAnswers = void 0;
|
|
11494
12284
|
(function (KnownAnswers) {
|
|
11495
12285
|
/** Do not return answers for the query. */
|
|
11496
12286
|
KnownAnswers["None"] = "none";
|
|
@@ -11505,18 +12295,24 @@ var KnownCaptions;
|
|
|
11505
12295
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11506
12296
|
KnownCaptions["Extractive"] = "extractive";
|
|
11507
12297
|
})(KnownCaptions || (KnownCaptions = {}));
|
|
12298
|
+
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
12299
|
+
exports.KnownQuerySpellerType = void 0;
|
|
11508
12300
|
(function (KnownQuerySpellerType) {
|
|
11509
12301
|
/** Speller not enabled. */
|
|
11510
12302
|
KnownQuerySpellerType["None"] = "none";
|
|
11511
12303
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11512
12304
|
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
11513
12305
|
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
12306
|
+
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
12307
|
+
exports.KnownQueryAnswerType = void 0;
|
|
11514
12308
|
(function (KnownQueryAnswerType) {
|
|
11515
12309
|
/** Do not return answers for the query. */
|
|
11516
12310
|
KnownQueryAnswerType["None"] = "none";
|
|
11517
12311
|
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11518
12312
|
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
11519
12313
|
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
12314
|
+
/** Known values of {@link QueryCaptionType} that the service accepts. */
|
|
12315
|
+
exports.KnownQueryCaptionType = void 0;
|
|
11520
12316
|
(function (KnownQueryCaptionType) {
|
|
11521
12317
|
/** Do not return captions for the query. */
|
|
11522
12318
|
KnownQueryCaptionType["None"] = "none";
|
|
@@ -11532,11 +12328,13 @@ var KnownCaptions;
|
|
|
11532
12328
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11533
12329
|
*/
|
|
11534
12330
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11535
|
-
var KnownApiVersion20210430Preview
|
|
12331
|
+
var KnownApiVersion20210430Preview;
|
|
11536
12332
|
(function (KnownApiVersion20210430Preview) {
|
|
11537
12333
|
/** Api Version '2021-04-30-Preview' */
|
|
11538
12334
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11539
|
-
})(KnownApiVersion20210430Preview
|
|
12335
|
+
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
12336
|
+
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
12337
|
+
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
11540
12338
|
(function (KnownSearchIndexerDataSourceType) {
|
|
11541
12339
|
/** Indicates an Azure SQL datasource. */
|
|
11542
12340
|
KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
|
|
@@ -11551,6 +12349,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11551
12349
|
/** Indicates an ADLS Gen2 datasource. */
|
|
11552
12350
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
11553
12351
|
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
12352
|
+
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
12353
|
+
exports.KnownBlobIndexerParsingMode = void 0;
|
|
11554
12354
|
(function (KnownBlobIndexerParsingMode) {
|
|
11555
12355
|
/** Set to default for normal file processing. */
|
|
11556
12356
|
KnownBlobIndexerParsingMode["Default"] = "default";
|
|
@@ -11565,6 +12365,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11565
12365
|
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
|
|
11566
12366
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
11567
12367
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
12368
|
+
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
12369
|
+
exports.KnownBlobIndexerDataToExtract = void 0;
|
|
11568
12370
|
(function (KnownBlobIndexerDataToExtract) {
|
|
11569
12371
|
/** Indexes just the standard blob properties and user-specified metadata. */
|
|
11570
12372
|
KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
|
|
@@ -11573,6 +12375,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11573
12375
|
/** Extracts all metadata and textual content from each blob. */
|
|
11574
12376
|
KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
|
|
11575
12377
|
})(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
|
|
12378
|
+
/** Known values of {@link BlobIndexerImageAction} that the service accepts. */
|
|
12379
|
+
exports.KnownBlobIndexerImageAction = void 0;
|
|
11576
12380
|
(function (KnownBlobIndexerImageAction) {
|
|
11577
12381
|
/** Ignores embedded images or image files in the data set. This is the default. */
|
|
11578
12382
|
KnownBlobIndexerImageAction["None"] = "none";
|
|
@@ -11581,6 +12385,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11581
12385
|
/** 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. */
|
|
11582
12386
|
KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
|
|
11583
12387
|
})(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
|
|
12388
|
+
/** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */
|
|
12389
|
+
exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
|
|
11584
12390
|
(function (KnownBlobIndexerPDFTextRotationAlgorithm) {
|
|
11585
12391
|
/** Leverages normal text extraction. This is the default. */
|
|
11586
12392
|
KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
|
|
@@ -11595,10 +12401,14 @@ var KnownIndexerExecutionEnvironment;
|
|
|
11595
12401
|
/** 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. */
|
|
11596
12402
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
11597
12403
|
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
12404
|
+
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
12405
|
+
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
11598
12406
|
(function (KnownIndexerExecutionStatusDetail) {
|
|
11599
12407
|
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
11600
12408
|
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
11601
12409
|
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
12410
|
+
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
12411
|
+
exports.KnownIndexingMode = void 0;
|
|
11602
12412
|
(function (KnownIndexingMode) {
|
|
11603
12413
|
/** The indexer is indexing all documents in the datasource. */
|
|
11604
12414
|
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
@@ -11633,6 +12443,8 @@ var KnownSearchFieldDataType;
|
|
|
11633
12443
|
KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
|
|
11634
12444
|
KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
|
|
11635
12445
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
12446
|
+
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
12447
|
+
exports.KnownLexicalAnalyzerName = void 0;
|
|
11636
12448
|
(function (KnownLexicalAnalyzerName) {
|
|
11637
12449
|
/** Microsoft analyzer for Arabic. */
|
|
11638
12450
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -11821,6 +12633,8 @@ var KnownSearchFieldDataType;
|
|
|
11821
12633
|
/** 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 */
|
|
11822
12634
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
11823
12635
|
})(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
|
|
12636
|
+
/** Known values of {@link LexicalNormalizerName} that the service accepts. */
|
|
12637
|
+
exports.KnownLexicalNormalizerName = void 0;
|
|
11824
12638
|
(function (KnownLexicalNormalizerName) {
|
|
11825
12639
|
/** 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 */
|
|
11826
12640
|
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
@@ -11833,6 +12647,8 @@ var KnownSearchFieldDataType;
|
|
|
11833
12647
|
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
11834
12648
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
11835
12649
|
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
12650
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
12651
|
+
exports.KnownTokenFilterName = void 0;
|
|
11836
12652
|
(function (KnownTokenFilterName) {
|
|
11837
12653
|
/** 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 */
|
|
11838
12654
|
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
@@ -11903,10 +12719,14 @@ var KnownSearchFieldDataType;
|
|
|
11903
12719
|
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
11904
12720
|
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
11905
12721
|
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
12722
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
12723
|
+
exports.KnownCharFilterName = void 0;
|
|
11906
12724
|
(function (KnownCharFilterName) {
|
|
11907
12725
|
/** 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 */
|
|
11908
12726
|
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
11909
12727
|
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
12728
|
+
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
12729
|
+
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
11910
12730
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
11911
12731
|
/** Danish */
|
|
11912
12732
|
KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
|
|
@@ -11941,6 +12761,8 @@ var KnownSearchFieldDataType;
|
|
|
11941
12761
|
/** Swedish */
|
|
11942
12762
|
KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
|
|
11943
12763
|
})(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
|
|
12764
|
+
/** Known values of {@link OcrSkillLanguage} that the service accepts. */
|
|
12765
|
+
exports.KnownOcrSkillLanguage = void 0;
|
|
11944
12766
|
(function (KnownOcrSkillLanguage) {
|
|
11945
12767
|
/** Chinese-Simplified */
|
|
11946
12768
|
KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
|
|
@@ -11994,7 +12816,11 @@ var KnownSearchFieldDataType;
|
|
|
11994
12816
|
KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
|
|
11995
12817
|
/** Slovak */
|
|
11996
12818
|
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12819
|
+
/** Unknown. If the language is explicitly set to "unk", the language will be auto-detected. */
|
|
12820
|
+
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
11997
12821
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12822
|
+
/** Known values of {@link LineEnding} that the service accepts. */
|
|
12823
|
+
exports.KnownLineEnding = void 0;
|
|
11998
12824
|
(function (KnownLineEnding) {
|
|
11999
12825
|
/** Lines are separated by a single space character. */
|
|
12000
12826
|
KnownLineEnding["Space"] = "space";
|
|
@@ -12005,6 +12831,8 @@ var KnownSearchFieldDataType;
|
|
|
12005
12831
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
12006
12832
|
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
12007
12833
|
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
12834
|
+
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
12835
|
+
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
12008
12836
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
12009
12837
|
/** English */
|
|
12010
12838
|
KnownImageAnalysisSkillLanguage["En"] = "en";
|
|
@@ -12017,6 +12845,8 @@ var KnownSearchFieldDataType;
|
|
|
12017
12845
|
/** Chinese */
|
|
12018
12846
|
KnownImageAnalysisSkillLanguage["Zh"] = "zh";
|
|
12019
12847
|
})(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
|
|
12848
|
+
/** Known values of {@link VisualFeature} that the service accepts. */
|
|
12849
|
+
exports.KnownVisualFeature = void 0;
|
|
12020
12850
|
(function (KnownVisualFeature) {
|
|
12021
12851
|
/** Visual features recognized as adult persons. */
|
|
12022
12852
|
KnownVisualFeature["Adult"] = "adult";
|
|
@@ -12033,12 +12863,16 @@ var KnownSearchFieldDataType;
|
|
|
12033
12863
|
/** Tags. */
|
|
12034
12864
|
KnownVisualFeature["Tags"] = "tags";
|
|
12035
12865
|
})(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
|
|
12866
|
+
/** Known values of {@link ImageDetail} that the service accepts. */
|
|
12867
|
+
exports.KnownImageDetail = void 0;
|
|
12036
12868
|
(function (KnownImageDetail) {
|
|
12037
12869
|
/** Details recognized as celebrities. */
|
|
12038
12870
|
KnownImageDetail["Celebrities"] = "celebrities";
|
|
12039
12871
|
/** Details recognized as landmarks. */
|
|
12040
12872
|
KnownImageDetail["Landmarks"] = "landmarks";
|
|
12041
12873
|
})(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
|
|
12874
|
+
/** Known values of {@link EntityCategory} that the service accepts. */
|
|
12875
|
+
exports.KnownEntityCategory = void 0;
|
|
12042
12876
|
(function (KnownEntityCategory) {
|
|
12043
12877
|
/** Entities describing a physical location. */
|
|
12044
12878
|
KnownEntityCategory["Location"] = "location";
|
|
@@ -12055,6 +12889,8 @@ var KnownSearchFieldDataType;
|
|
|
12055
12889
|
/** Entities describing an email address. */
|
|
12056
12890
|
KnownEntityCategory["Email"] = "email";
|
|
12057
12891
|
})(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
|
|
12892
|
+
/** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */
|
|
12893
|
+
exports.KnownEntityRecognitionSkillLanguage = void 0;
|
|
12058
12894
|
(function (KnownEntityRecognitionSkillLanguage) {
|
|
12059
12895
|
/** Arabic */
|
|
12060
12896
|
KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
|
|
@@ -12103,6 +12939,8 @@ var KnownSearchFieldDataType;
|
|
|
12103
12939
|
/** Turkish */
|
|
12104
12940
|
KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
|
|
12105
12941
|
})(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
|
|
12942
|
+
/** Known values of {@link SentimentSkillLanguage} that the service accepts. */
|
|
12943
|
+
exports.KnownSentimentSkillLanguage = void 0;
|
|
12106
12944
|
(function (KnownSentimentSkillLanguage) {
|
|
12107
12945
|
/** Danish */
|
|
12108
12946
|
KnownSentimentSkillLanguage["Da"] = "da";
|
|
@@ -12135,12 +12973,16 @@ var KnownSearchFieldDataType;
|
|
|
12135
12973
|
/** Turkish */
|
|
12136
12974
|
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
12137
12975
|
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
12976
|
+
/** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
|
|
12977
|
+
exports.KnownPIIDetectionSkillMaskingMode = void 0;
|
|
12138
12978
|
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
12139
12979
|
/** No masking occurs and the maskedText output will not be returned. */
|
|
12140
12980
|
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
12141
12981
|
/** 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. */
|
|
12142
12982
|
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
12143
12983
|
})(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
|
|
12984
|
+
/** Known values of {@link SplitSkillLanguage} that the service accepts. */
|
|
12985
|
+
exports.KnownSplitSkillLanguage = void 0;
|
|
12144
12986
|
(function (KnownSplitSkillLanguage) {
|
|
12145
12987
|
/** Danish */
|
|
12146
12988
|
KnownSplitSkillLanguage["Da"] = "da";
|
|
@@ -12161,12 +13003,16 @@ var KnownSearchFieldDataType;
|
|
|
12161
13003
|
/** Portuguese */
|
|
12162
13004
|
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12163
13005
|
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
13006
|
+
/** Known values of {@link TextSplitMode} that the service accepts. */
|
|
13007
|
+
exports.KnownTextSplitMode = void 0;
|
|
12164
13008
|
(function (KnownTextSplitMode) {
|
|
12165
13009
|
/** Split the text into individual pages. */
|
|
12166
13010
|
KnownTextSplitMode["Pages"] = "pages";
|
|
12167
13011
|
/** Split the text into individual sentences. */
|
|
12168
13012
|
KnownTextSplitMode["Sentences"] = "sentences";
|
|
12169
13013
|
})(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
|
|
13014
|
+
/** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
|
|
13015
|
+
exports.KnownCustomEntityLookupSkillLanguage = void 0;
|
|
12170
13016
|
(function (KnownCustomEntityLookupSkillLanguage) {
|
|
12171
13017
|
/** Danish */
|
|
12172
13018
|
KnownCustomEntityLookupSkillLanguage["Da"] = "da";
|
|
@@ -12187,6 +13033,8 @@ var KnownSearchFieldDataType;
|
|
|
12187
13033
|
/** Portuguese */
|
|
12188
13034
|
KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
|
|
12189
13035
|
})(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
|
|
13036
|
+
/** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */
|
|
13037
|
+
exports.KnownTextTranslationSkillLanguage = void 0;
|
|
12190
13038
|
(function (KnownTextTranslationSkillLanguage) {
|
|
12191
13039
|
/** Afrikaans */
|
|
12192
13040
|
KnownTextTranslationSkillLanguage["Af"] = "af";
|
|
@@ -12363,6 +13211,8 @@ var KnownLexicalTokenizerName;
|
|
|
12363
13211
|
/** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
|
|
12364
13212
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
12365
13213
|
})(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
|
|
13214
|
+
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
13215
|
+
exports.KnownRegexFlags = void 0;
|
|
12366
13216
|
(function (KnownRegexFlags) {
|
|
12367
13217
|
/** Enables canonical equivalence. */
|
|
12368
13218
|
KnownRegexFlags["CanonEq"] = "CANON_EQ";
|
|
@@ -12383,7 +13233,7 @@ var KnownLexicalTokenizerName;
|
|
|
12383
13233
|
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
12384
13234
|
|
|
12385
13235
|
// Copyright (c) Microsoft Corporation.
|
|
12386
|
-
const readFileAsync = util.promisify(
|
|
13236
|
+
const readFileAsync = util.promisify(fs__namespace.readFile);
|
|
12387
13237
|
/**
|
|
12388
13238
|
* Helper method to create a SynonymMap object. This is a NodeJS only method.
|
|
12389
13239
|
*
|
|
@@ -12399,22 +13249,20 @@ async function createSynonymMapFromFile(name, filePath) {
|
|
|
12399
13249
|
.filter(Boolean);
|
|
12400
13250
|
return {
|
|
12401
13251
|
name,
|
|
12402
|
-
synonyms
|
|
13252
|
+
synonyms,
|
|
12403
13253
|
};
|
|
12404
13254
|
}
|
|
12405
13255
|
|
|
12406
13256
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
|
12407
13257
|
enumerable: true,
|
|
12408
|
-
get: function () {
|
|
12409
|
-
return coreAuth.AzureKeyCredential;
|
|
12410
|
-
}
|
|
13258
|
+
get: function () { return coreAuth.AzureKeyCredential; }
|
|
12411
13259
|
});
|
|
12412
13260
|
exports.DEFAULT_BATCH_SIZE = DEFAULT_BATCH_SIZE;
|
|
12413
13261
|
exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
12414
13262
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
12415
13263
|
exports.GeographyPoint = GeographyPoint;
|
|
12416
13264
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
12417
|
-
exports.SearchClient = SearchClient
|
|
13265
|
+
exports.SearchClient = SearchClient;
|
|
12418
13266
|
exports.SearchIndexClient = SearchIndexClient;
|
|
12419
13267
|
exports.SearchIndexerClient = SearchIndexerClient;
|
|
12420
13268
|
exports.SearchIndexingBufferedSender = SearchIndexingBufferedSender;
|