@azure/search-documents 11.3.0-beta.5 → 11.3.0-beta.6
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 +11 -0
- package/dist/index.js +660 -464
- 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 +2 -2
- package/dist-esm/src/generated/data/models/index.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 +47 -0
- package/dist-esm/src/generated/service/models/mappers.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 +38 -26
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +44 -32
- 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 +5 -5
- package/dist-esm/src/serialization.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +23 -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 +13 -25
- package/types/search-documents.d.ts +60 -9
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",
|
|
@@ -781,9 +803,9 @@ const AutocompleteRequest = {
|
|
|
781
803
|
}
|
|
782
804
|
};
|
|
783
805
|
|
|
784
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
806
|
+
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
785
807
|
__proto__: null,
|
|
786
|
-
SearchError: SearchError,
|
|
808
|
+
SearchError: SearchError$1,
|
|
787
809
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
788
810
|
FacetResult: FacetResult,
|
|
789
811
|
AnswerResult: AnswerResult,
|
|
@@ -809,7 +831,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
809
831
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
810
832
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
811
833
|
*/
|
|
812
|
-
const accept = {
|
|
834
|
+
const accept$1 = {
|
|
813
835
|
parameterPath: "accept",
|
|
814
836
|
mapper: {
|
|
815
837
|
defaultValue: "application/json",
|
|
@@ -820,7 +842,7 @@ const accept = {
|
|
|
820
842
|
}
|
|
821
843
|
}
|
|
822
844
|
};
|
|
823
|
-
const endpoint = {
|
|
845
|
+
const endpoint$1 = {
|
|
824
846
|
parameterPath: "endpoint",
|
|
825
847
|
mapper: {
|
|
826
848
|
serializedName: "endpoint",
|
|
@@ -831,7 +853,7 @@ const endpoint = {
|
|
|
831
853
|
},
|
|
832
854
|
skipEncoding: true
|
|
833
855
|
};
|
|
834
|
-
const indexName = {
|
|
856
|
+
const indexName$1 = {
|
|
835
857
|
parameterPath: "indexName",
|
|
836
858
|
mapper: {
|
|
837
859
|
serializedName: "indexName",
|
|
@@ -841,7 +863,7 @@ const indexName = {
|
|
|
841
863
|
}
|
|
842
864
|
}
|
|
843
865
|
};
|
|
844
|
-
const xMsClientRequestId = {
|
|
866
|
+
const xMsClientRequestId$1 = {
|
|
845
867
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
846
868
|
mapper: {
|
|
847
869
|
serializedName: "x-ms-client-request-id",
|
|
@@ -850,7 +872,7 @@ const xMsClientRequestId = {
|
|
|
850
872
|
}
|
|
851
873
|
}
|
|
852
874
|
};
|
|
853
|
-
const apiVersion = {
|
|
875
|
+
const apiVersion$1 = {
|
|
854
876
|
parameterPath: "apiVersion",
|
|
855
877
|
mapper: {
|
|
856
878
|
serializedName: "api-version",
|
|
@@ -1073,7 +1095,7 @@ const sessionId = {
|
|
|
1073
1095
|
}
|
|
1074
1096
|
}
|
|
1075
1097
|
};
|
|
1076
|
-
const select = {
|
|
1098
|
+
const select$1 = {
|
|
1077
1099
|
parameterPath: ["options", "searchOptions", "select"],
|
|
1078
1100
|
mapper: {
|
|
1079
1101
|
serializedName: "$select",
|
|
@@ -1130,7 +1152,7 @@ const semanticFields = {
|
|
|
1130
1152
|
},
|
|
1131
1153
|
collectionFormat: "CSV"
|
|
1132
1154
|
};
|
|
1133
|
-
const contentType = {
|
|
1155
|
+
const contentType$1 = {
|
|
1134
1156
|
parameterPath: ["options", "contentType"],
|
|
1135
1157
|
mapper: {
|
|
1136
1158
|
defaultValue: "application/json",
|
|
@@ -1425,7 +1447,7 @@ class DocumentsImpl {
|
|
|
1425
1447
|
* @param options The options parameters.
|
|
1426
1448
|
*/
|
|
1427
1449
|
get(key, options) {
|
|
1428
|
-
return this.client.sendOperationRequest({ key, options }, getOperationSpec);
|
|
1450
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
|
|
1429
1451
|
}
|
|
1430
1452
|
/**
|
|
1431
1453
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -1474,7 +1496,7 @@ class DocumentsImpl {
|
|
|
1474
1496
|
}
|
|
1475
1497
|
}
|
|
1476
1498
|
// Operation Specifications
|
|
1477
|
-
const serializer =
|
|
1499
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
|
|
1478
1500
|
const countOperationSpec = {
|
|
1479
1501
|
path: "/docs/$count",
|
|
1480
1502
|
httpMethod: "GET",
|
|
@@ -1483,13 +1505,13 @@ const countOperationSpec = {
|
|
|
1483
1505
|
bodyMapper: { type: { name: "Number" } }
|
|
1484
1506
|
},
|
|
1485
1507
|
default: {
|
|
1486
|
-
bodyMapper: SearchError
|
|
1508
|
+
bodyMapper: SearchError$1
|
|
1487
1509
|
}
|
|
1488
1510
|
},
|
|
1489
|
-
queryParameters: [apiVersion],
|
|
1490
|
-
urlParameters: [endpoint, indexName],
|
|
1491
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1492
|
-
serializer
|
|
1511
|
+
queryParameters: [apiVersion$1],
|
|
1512
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1513
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1514
|
+
serializer: serializer$6
|
|
1493
1515
|
};
|
|
1494
1516
|
const searchGetOperationSpec = {
|
|
1495
1517
|
path: "/docs",
|
|
@@ -1499,11 +1521,11 @@ const searchGetOperationSpec = {
|
|
|
1499
1521
|
bodyMapper: SearchDocumentsResult
|
|
1500
1522
|
},
|
|
1501
1523
|
default: {
|
|
1502
|
-
bodyMapper: SearchError
|
|
1524
|
+
bodyMapper: SearchError$1
|
|
1503
1525
|
}
|
|
1504
1526
|
},
|
|
1505
1527
|
queryParameters: [
|
|
1506
|
-
apiVersion,
|
|
1528
|
+
apiVersion$1,
|
|
1507
1529
|
searchText,
|
|
1508
1530
|
includeTotalResultCount,
|
|
1509
1531
|
facets,
|
|
@@ -1524,15 +1546,15 @@ const searchGetOperationSpec = {
|
|
|
1524
1546
|
searchMode,
|
|
1525
1547
|
scoringStatistics,
|
|
1526
1548
|
sessionId,
|
|
1527
|
-
select,
|
|
1549
|
+
select$1,
|
|
1528
1550
|
skip,
|
|
1529
1551
|
top,
|
|
1530
1552
|
captions,
|
|
1531
1553
|
semanticFields
|
|
1532
1554
|
],
|
|
1533
|
-
urlParameters: [endpoint, indexName],
|
|
1534
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1535
|
-
serializer
|
|
1555
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1556
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1557
|
+
serializer: serializer$6
|
|
1536
1558
|
};
|
|
1537
1559
|
const searchPostOperationSpec = {
|
|
1538
1560
|
path: "/docs/search.post.search",
|
|
@@ -1542,21 +1564,21 @@ const searchPostOperationSpec = {
|
|
|
1542
1564
|
bodyMapper: SearchDocumentsResult
|
|
1543
1565
|
},
|
|
1544
1566
|
default: {
|
|
1545
|
-
bodyMapper: SearchError
|
|
1567
|
+
bodyMapper: SearchError$1
|
|
1546
1568
|
}
|
|
1547
1569
|
},
|
|
1548
1570
|
requestBody: searchRequest,
|
|
1549
|
-
queryParameters: [apiVersion],
|
|
1550
|
-
urlParameters: [endpoint, indexName],
|
|
1571
|
+
queryParameters: [apiVersion$1],
|
|
1572
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1551
1573
|
headerParameters: [
|
|
1552
|
-
accept,
|
|
1553
|
-
xMsClientRequestId,
|
|
1554
|
-
contentType
|
|
1574
|
+
accept$1,
|
|
1575
|
+
xMsClientRequestId$1,
|
|
1576
|
+
contentType$1
|
|
1555
1577
|
],
|
|
1556
1578
|
mediaType: "json",
|
|
1557
|
-
serializer
|
|
1579
|
+
serializer: serializer$6
|
|
1558
1580
|
};
|
|
1559
|
-
const getOperationSpec = {
|
|
1581
|
+
const getOperationSpec$5 = {
|
|
1560
1582
|
path: "/docs('{key}')",
|
|
1561
1583
|
httpMethod: "GET",
|
|
1562
1584
|
responses: {
|
|
@@ -1566,13 +1588,13 @@ const getOperationSpec = {
|
|
|
1566
1588
|
}
|
|
1567
1589
|
},
|
|
1568
1590
|
default: {
|
|
1569
|
-
bodyMapper: SearchError
|
|
1591
|
+
bodyMapper: SearchError$1
|
|
1570
1592
|
}
|
|
1571
1593
|
},
|
|
1572
|
-
queryParameters: [apiVersion, selectedFields],
|
|
1573
|
-
urlParameters: [endpoint, indexName, key],
|
|
1574
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1575
|
-
serializer
|
|
1594
|
+
queryParameters: [apiVersion$1, selectedFields],
|
|
1595
|
+
urlParameters: [endpoint$1, indexName$1, key],
|
|
1596
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1597
|
+
serializer: serializer$6
|
|
1576
1598
|
};
|
|
1577
1599
|
const suggestGetOperationSpec = {
|
|
1578
1600
|
path: "/docs/search.suggest",
|
|
@@ -1582,11 +1604,11 @@ const suggestGetOperationSpec = {
|
|
|
1582
1604
|
bodyMapper: SuggestDocumentsResult
|
|
1583
1605
|
},
|
|
1584
1606
|
default: {
|
|
1585
|
-
bodyMapper: SearchError
|
|
1607
|
+
bodyMapper: SearchError$1
|
|
1586
1608
|
}
|
|
1587
1609
|
},
|
|
1588
1610
|
queryParameters: [
|
|
1589
|
-
apiVersion,
|
|
1611
|
+
apiVersion$1,
|
|
1590
1612
|
searchText1,
|
|
1591
1613
|
suggesterName,
|
|
1592
1614
|
filter1,
|
|
@@ -1599,9 +1621,9 @@ const suggestGetOperationSpec = {
|
|
|
1599
1621
|
select1,
|
|
1600
1622
|
top1
|
|
1601
1623
|
],
|
|
1602
|
-
urlParameters: [endpoint, indexName],
|
|
1603
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1604
|
-
serializer
|
|
1624
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1625
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1626
|
+
serializer: serializer$6
|
|
1605
1627
|
};
|
|
1606
1628
|
const suggestPostOperationSpec = {
|
|
1607
1629
|
path: "/docs/search.post.suggest",
|
|
@@ -1611,19 +1633,19 @@ const suggestPostOperationSpec = {
|
|
|
1611
1633
|
bodyMapper: SuggestDocumentsResult
|
|
1612
1634
|
},
|
|
1613
1635
|
default: {
|
|
1614
|
-
bodyMapper: SearchError
|
|
1636
|
+
bodyMapper: SearchError$1
|
|
1615
1637
|
}
|
|
1616
1638
|
},
|
|
1617
1639
|
requestBody: suggestRequest,
|
|
1618
|
-
queryParameters: [apiVersion],
|
|
1619
|
-
urlParameters: [endpoint, indexName],
|
|
1640
|
+
queryParameters: [apiVersion$1],
|
|
1641
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1620
1642
|
headerParameters: [
|
|
1621
|
-
accept,
|
|
1622
|
-
xMsClientRequestId,
|
|
1623
|
-
contentType
|
|
1643
|
+
accept$1,
|
|
1644
|
+
xMsClientRequestId$1,
|
|
1645
|
+
contentType$1
|
|
1624
1646
|
],
|
|
1625
1647
|
mediaType: "json",
|
|
1626
|
-
serializer
|
|
1648
|
+
serializer: serializer$6
|
|
1627
1649
|
};
|
|
1628
1650
|
const indexOperationSpec = {
|
|
1629
1651
|
path: "/docs/search.index",
|
|
@@ -1636,19 +1658,19 @@ const indexOperationSpec = {
|
|
|
1636
1658
|
bodyMapper: IndexDocumentsResult
|
|
1637
1659
|
},
|
|
1638
1660
|
default: {
|
|
1639
|
-
bodyMapper: SearchError
|
|
1661
|
+
bodyMapper: SearchError$1
|
|
1640
1662
|
}
|
|
1641
1663
|
},
|
|
1642
1664
|
requestBody: batch,
|
|
1643
|
-
queryParameters: [apiVersion],
|
|
1644
|
-
urlParameters: [endpoint, indexName],
|
|
1665
|
+
queryParameters: [apiVersion$1],
|
|
1666
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1645
1667
|
headerParameters: [
|
|
1646
|
-
accept,
|
|
1647
|
-
xMsClientRequestId,
|
|
1648
|
-
contentType
|
|
1668
|
+
accept$1,
|
|
1669
|
+
xMsClientRequestId$1,
|
|
1670
|
+
contentType$1
|
|
1649
1671
|
],
|
|
1650
1672
|
mediaType: "json",
|
|
1651
|
-
serializer
|
|
1673
|
+
serializer: serializer$6
|
|
1652
1674
|
};
|
|
1653
1675
|
const autocompleteGetOperationSpec = {
|
|
1654
1676
|
path: "/docs/search.autocomplete",
|
|
@@ -1658,11 +1680,11 @@ const autocompleteGetOperationSpec = {
|
|
|
1658
1680
|
bodyMapper: AutocompleteResult
|
|
1659
1681
|
},
|
|
1660
1682
|
default: {
|
|
1661
|
-
bodyMapper: SearchError
|
|
1683
|
+
bodyMapper: SearchError$1
|
|
1662
1684
|
}
|
|
1663
1685
|
},
|
|
1664
1686
|
queryParameters: [
|
|
1665
|
-
apiVersion,
|
|
1687
|
+
apiVersion$1,
|
|
1666
1688
|
searchText1,
|
|
1667
1689
|
suggesterName,
|
|
1668
1690
|
autocompleteMode,
|
|
@@ -1674,9 +1696,9 @@ const autocompleteGetOperationSpec = {
|
|
|
1674
1696
|
searchFields2,
|
|
1675
1697
|
top2
|
|
1676
1698
|
],
|
|
1677
|
-
urlParameters: [endpoint, indexName],
|
|
1678
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1679
|
-
serializer
|
|
1699
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1700
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1701
|
+
serializer: serializer$6
|
|
1680
1702
|
};
|
|
1681
1703
|
const autocompletePostOperationSpec = {
|
|
1682
1704
|
path: "/docs/search.post.autocomplete",
|
|
@@ -1686,19 +1708,19 @@ const autocompletePostOperationSpec = {
|
|
|
1686
1708
|
bodyMapper: AutocompleteResult
|
|
1687
1709
|
},
|
|
1688
1710
|
default: {
|
|
1689
|
-
bodyMapper: SearchError
|
|
1711
|
+
bodyMapper: SearchError$1
|
|
1690
1712
|
}
|
|
1691
1713
|
},
|
|
1692
1714
|
requestBody: autocompleteRequest,
|
|
1693
|
-
queryParameters: [apiVersion],
|
|
1694
|
-
urlParameters: [endpoint, indexName],
|
|
1715
|
+
queryParameters: [apiVersion$1],
|
|
1716
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1695
1717
|
headerParameters: [
|
|
1696
|
-
accept,
|
|
1697
|
-
xMsClientRequestId,
|
|
1698
|
-
contentType
|
|
1718
|
+
accept$1,
|
|
1719
|
+
xMsClientRequestId$1,
|
|
1720
|
+
contentType$1
|
|
1699
1721
|
],
|
|
1700
1722
|
mediaType: "json",
|
|
1701
|
-
serializer
|
|
1723
|
+
serializer: serializer$6
|
|
1702
1724
|
};
|
|
1703
1725
|
|
|
1704
1726
|
/*
|
|
@@ -1709,7 +1731,7 @@ const autocompletePostOperationSpec = {
|
|
|
1709
1731
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1710
1732
|
*/
|
|
1711
1733
|
/** @internal */
|
|
1712
|
-
class SearchClientContext extends
|
|
1734
|
+
class SearchClientContext extends coreClient__namespace.ServiceClient {
|
|
1713
1735
|
/**
|
|
1714
1736
|
* Initializes a new instance of the SearchClientContext class.
|
|
1715
1737
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1734,7 +1756,7 @@ class SearchClientContext extends coreClient.ServiceClient {
|
|
|
1734
1756
|
const defaults = {
|
|
1735
1757
|
requestContentType: "application/json; charset=utf-8"
|
|
1736
1758
|
};
|
|
1737
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
1759
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
|
|
1738
1760
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1739
1761
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1740
1762
|
: `${packageDetails}`;
|
|
@@ -1757,7 +1779,7 @@ class SearchClientContext extends coreClient.ServiceClient {
|
|
|
1757
1779
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1758
1780
|
*/
|
|
1759
1781
|
/** @internal */
|
|
1760
|
-
class SearchClient extends SearchClientContext {
|
|
1782
|
+
class SearchClient$1 extends SearchClientContext {
|
|
1761
1783
|
/**
|
|
1762
1784
|
* Initializes a new instance of the SearchClient class.
|
|
1763
1785
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1787,13 +1809,13 @@ function createSearchApiKeyCredentialPolicy(credential) {
|
|
|
1787
1809
|
request.headers.set(API_KEY_HEADER_NAME, credential.key);
|
|
1788
1810
|
}
|
|
1789
1811
|
return next(request);
|
|
1790
|
-
}
|
|
1812
|
+
},
|
|
1791
1813
|
};
|
|
1792
1814
|
}
|
|
1793
1815
|
|
|
1794
1816
|
// Copyright (c) Microsoft Corporation.
|
|
1795
1817
|
// Licensed under the MIT license.
|
|
1796
|
-
const SDK_VERSION = "11.3.0-beta.
|
|
1818
|
+
const SDK_VERSION = "11.3.0-beta.6";
|
|
1797
1819
|
|
|
1798
1820
|
// Copyright (c) Microsoft Corporation.
|
|
1799
1821
|
/**
|
|
@@ -1808,12 +1830,12 @@ const logger = logger$1.createClientLogger("search");
|
|
|
1808
1830
|
*/
|
|
1809
1831
|
const createSpan = coreTracing.createSpanFunction({
|
|
1810
1832
|
packagePrefix: "Azure.Search",
|
|
1811
|
-
namespace: "Microsoft.Search"
|
|
1833
|
+
namespace: "Microsoft.Search",
|
|
1812
1834
|
});
|
|
1813
1835
|
|
|
1814
1836
|
// Copyright (c) Microsoft Corporation.
|
|
1815
1837
|
// Licensed under the MIT license.
|
|
1816
|
-
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1838
|
+
const WorldGeodeticSystem1984$1 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1817
1839
|
/**
|
|
1818
1840
|
* Represents a geographic point in global coordinates.
|
|
1819
1841
|
*/
|
|
@@ -1834,7 +1856,7 @@ class GeographyPoint {
|
|
|
1834
1856
|
return {
|
|
1835
1857
|
type: "Point",
|
|
1836
1858
|
coordinates: [this.longitude, this.latitude],
|
|
1837
|
-
crs: { type: "name", properties: { name: WorldGeodeticSystem1984 } }
|
|
1859
|
+
crs: { type: "name", properties: { name: WorldGeodeticSystem1984$1 } },
|
|
1838
1860
|
};
|
|
1839
1861
|
}
|
|
1840
1862
|
}
|
|
@@ -1842,7 +1864,7 @@ class GeographyPoint {
|
|
|
1842
1864
|
// Copyright (c) Microsoft Corporation.
|
|
1843
1865
|
const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/i;
|
|
1844
1866
|
const GeoJSONPointTypeName = "Point";
|
|
1845
|
-
const WorldGeodeticSystem1984
|
|
1867
|
+
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1846
1868
|
function serialize(obj) {
|
|
1847
1869
|
return walk(obj, (value) => {
|
|
1848
1870
|
const result = serializeSpecialNumbers(value);
|
|
@@ -1862,7 +1884,7 @@ function walk(start, mapper) {
|
|
|
1862
1884
|
const seenMarker = new WeakMap();
|
|
1863
1885
|
const result = { value: undefined };
|
|
1864
1886
|
const queue = [
|
|
1865
|
-
{ value: start, parent: result, key: "value" }
|
|
1887
|
+
{ value: start, parent: result, key: "value" },
|
|
1866
1888
|
];
|
|
1867
1889
|
while (queue.length) {
|
|
1868
1890
|
const current = queue.shift();
|
|
@@ -1883,7 +1905,7 @@ function walk(start, mapper) {
|
|
|
1883
1905
|
queue.push({
|
|
1884
1906
|
value: mapped[key],
|
|
1885
1907
|
parent: mapped,
|
|
1886
|
-
key
|
|
1908
|
+
key,
|
|
1887
1909
|
});
|
|
1888
1910
|
}
|
|
1889
1911
|
}
|
|
@@ -1947,7 +1969,7 @@ function isGeoJSONPoint(obj) {
|
|
|
1947
1969
|
default:
|
|
1948
1970
|
return false;
|
|
1949
1971
|
}
|
|
1950
|
-
}
|
|
1972
|
+
},
|
|
1951
1973
|
});
|
|
1952
1974
|
}
|
|
1953
1975
|
function isCoordinateArray(maybeCoordinates) {
|
|
@@ -1974,7 +1996,7 @@ function isCrs(maybeCrs) {
|
|
|
1974
1996
|
default:
|
|
1975
1997
|
return false;
|
|
1976
1998
|
}
|
|
1977
|
-
}
|
|
1999
|
+
},
|
|
1978
2000
|
});
|
|
1979
2001
|
}
|
|
1980
2002
|
function isCrsProperties(maybeProperties) {
|
|
@@ -1982,12 +2004,12 @@ function isCrsProperties(maybeProperties) {
|
|
|
1982
2004
|
requiredKeys: ["name"],
|
|
1983
2005
|
propertyValidator: (key) => {
|
|
1984
2006
|
if (key === "name") {
|
|
1985
|
-
return maybeProperties.name === WorldGeodeticSystem1984
|
|
2007
|
+
return maybeProperties.name === WorldGeodeticSystem1984;
|
|
1986
2008
|
}
|
|
1987
2009
|
else {
|
|
1988
2010
|
return false;
|
|
1989
2011
|
}
|
|
1990
|
-
}
|
|
2012
|
+
},
|
|
1991
2013
|
});
|
|
1992
2014
|
}
|
|
1993
2015
|
function isValidObject(obj, options = {}) {
|
|
@@ -2026,7 +2048,7 @@ function createOdataMetadataPolicy(metadataLevel) {
|
|
|
2026
2048
|
async sendRequest(request, next) {
|
|
2027
2049
|
request.headers.set(AcceptHeaderName, `application/json;odata.metadata=${metadataLevel}`);
|
|
2028
2050
|
return next(request);
|
|
2029
|
-
}
|
|
2051
|
+
},
|
|
2030
2052
|
};
|
|
2031
2053
|
}
|
|
2032
2054
|
|
|
@@ -2078,7 +2100,7 @@ class IndexDocumentsBatch {
|
|
|
2078
2100
|
const batch = keyValues.map((keyValue) => {
|
|
2079
2101
|
return {
|
|
2080
2102
|
__actionType: "delete",
|
|
2081
|
-
[keyName]: keyValue
|
|
2103
|
+
[keyName]: keyValue,
|
|
2082
2104
|
};
|
|
2083
2105
|
});
|
|
2084
2106
|
this.actions.push(...batch);
|
|
@@ -2115,6 +2137,11 @@ function decode(value) {
|
|
|
2115
2137
|
function isComplexField(field) {
|
|
2116
2138
|
return field.type === "Edm.ComplexType" || field.type === "Collection(Edm.ComplexType)";
|
|
2117
2139
|
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Defines values for TokenizerName.
|
|
2142
|
+
* @readonly
|
|
2143
|
+
*/
|
|
2144
|
+
exports.KnownTokenizerNames = void 0;
|
|
2118
2145
|
(function (KnownTokenizerNames) {
|
|
2119
2146
|
/**
|
|
2120
2147
|
* Grammar-based tokenizer that is suitable for processing most European-language documents. See
|
|
@@ -2183,6 +2210,11 @@ function isComplexField(field) {
|
|
|
2183
2210
|
*/
|
|
2184
2211
|
KnownTokenizerNames["Whitespace"] = "whitespace";
|
|
2185
2212
|
})(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
|
|
2213
|
+
/**
|
|
2214
|
+
* Defines values for TokenFilterName.
|
|
2215
|
+
* @readonly
|
|
2216
|
+
*/
|
|
2217
|
+
exports.KnownTokenFilterNames = void 0;
|
|
2186
2218
|
(function (KnownTokenFilterNames) {
|
|
2187
2219
|
/**
|
|
2188
2220
|
* A token filter that applies the Arabic normalizer to normalize the orthography. See
|
|
@@ -2361,6 +2393,11 @@ function isComplexField(field) {
|
|
|
2361
2393
|
*/
|
|
2362
2394
|
KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
|
|
2363
2395
|
})(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
|
|
2396
|
+
/**
|
|
2397
|
+
* Defines values for CharFilterName.
|
|
2398
|
+
* @readonly
|
|
2399
|
+
*/
|
|
2400
|
+
exports.KnownCharFilterNames = void 0;
|
|
2364
2401
|
(function (KnownCharFilterNames) {
|
|
2365
2402
|
/**
|
|
2366
2403
|
* A character filter that attempts to strip out HTML constructs. See
|
|
@@ -2368,6 +2405,12 @@ function isComplexField(field) {
|
|
|
2368
2405
|
*/
|
|
2369
2406
|
KnownCharFilterNames["HtmlStrip"] = "html_strip";
|
|
2370
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;
|
|
2371
2414
|
(function (KnownAnalyzerNames) {
|
|
2372
2415
|
/**
|
|
2373
2416
|
* Arabic
|
|
@@ -2806,6 +2849,9 @@ function convertSkillsToPublic(skills) {
|
|
|
2806
2849
|
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
2807
2850
|
result.push(skill);
|
|
2808
2851
|
break;
|
|
2852
|
+
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
2853
|
+
result.push(skill);
|
|
2854
|
+
break;
|
|
2809
2855
|
}
|
|
2810
2856
|
}
|
|
2811
2857
|
return result;
|
|
@@ -2893,7 +2939,7 @@ function convertFieldsToPublic(fields) {
|
|
|
2893
2939
|
return {
|
|
2894
2940
|
name: field.name,
|
|
2895
2941
|
type: field.type,
|
|
2896
|
-
fields: convertFieldsToPublic(field.fields)
|
|
2942
|
+
fields: convertFieldsToPublic(field.fields),
|
|
2897
2943
|
};
|
|
2898
2944
|
}
|
|
2899
2945
|
else {
|
|
@@ -2921,7 +2967,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
2921
2967
|
return {
|
|
2922
2968
|
name: field.name,
|
|
2923
2969
|
type: field.type,
|
|
2924
|
-
fields: convertFieldsToGenerated(field.fields)
|
|
2970
|
+
fields: convertFieldsToGenerated(field.fields),
|
|
2925
2971
|
};
|
|
2926
2972
|
}
|
|
2927
2973
|
else {
|
|
@@ -2990,7 +3036,7 @@ function convertEncryptionKeyToPublic(encryptionKey) {
|
|
|
2990
3036
|
keyName: encryptionKey.keyName,
|
|
2991
3037
|
keyVersion: encryptionKey.keyVersion,
|
|
2992
3038
|
vaultUrl: encryptionKey.vaultUri,
|
|
2993
|
-
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity)
|
|
3039
|
+
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
|
|
2994
3040
|
};
|
|
2995
3041
|
if (encryptionKey.accessCredentials) {
|
|
2996
3042
|
result.applicationId = encryptionKey.accessCredentials.applicationId;
|
|
@@ -3006,12 +3052,12 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
|
|
|
3006
3052
|
keyName: encryptionKey.keyName,
|
|
3007
3053
|
keyVersion: encryptionKey.keyVersion,
|
|
3008
3054
|
vaultUri: encryptionKey.vaultUrl,
|
|
3009
|
-
identity: encryptionKey.identity
|
|
3055
|
+
identity: encryptionKey.identity,
|
|
3010
3056
|
};
|
|
3011
3057
|
if (encryptionKey.applicationId) {
|
|
3012
3058
|
result.accessCredentials = {
|
|
3013
3059
|
applicationId: encryptionKey.applicationId,
|
|
3014
|
-
applicationSecret: encryptionKey.applicationSecret
|
|
3060
|
+
applicationSecret: encryptionKey.applicationSecret,
|
|
3015
3061
|
};
|
|
3016
3062
|
}
|
|
3017
3063
|
return result;
|
|
@@ -3032,7 +3078,7 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
3032
3078
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
3033
3079
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
3034
3080
|
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
3035
|
-
semanticSettings: generatedIndex.semanticSettings
|
|
3081
|
+
semanticSettings: generatedIndex.semanticSettings,
|
|
3036
3082
|
};
|
|
3037
3083
|
}
|
|
3038
3084
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
@@ -3044,7 +3090,7 @@ function generatedSearchResultToPublicSearchResult(results) {
|
|
|
3044
3090
|
highlights: _highlights,
|
|
3045
3091
|
rerankerScore,
|
|
3046
3092
|
captions,
|
|
3047
|
-
document: doc
|
|
3093
|
+
document: doc,
|
|
3048
3094
|
};
|
|
3049
3095
|
return obj;
|
|
3050
3096
|
});
|
|
@@ -3056,13 +3102,13 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
|
|
|
3056
3102
|
const doc = Object.assign({}, restProps);
|
|
3057
3103
|
const obj = {
|
|
3058
3104
|
text: _text,
|
|
3059
|
-
document: doc
|
|
3105
|
+
document: doc,
|
|
3060
3106
|
};
|
|
3061
3107
|
return obj;
|
|
3062
3108
|
});
|
|
3063
3109
|
const result = {
|
|
3064
3110
|
results: results,
|
|
3065
|
-
coverage: searchDocumentsResult.coverage
|
|
3111
|
+
coverage: searchDocumentsResult.coverage,
|
|
3066
3112
|
};
|
|
3067
3113
|
return result;
|
|
3068
3114
|
}
|
|
@@ -3082,7 +3128,7 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
3082
3128
|
tokenizers: convertTokenizersToGenerated(index.tokenizers),
|
|
3083
3129
|
fields: convertFieldsToGenerated(index.fields),
|
|
3084
3130
|
similarity: convertSimilarityToGenerated(index.similarity),
|
|
3085
|
-
semanticSettings: index.semanticSettings
|
|
3131
|
+
semanticSettings: index.semanticSettings,
|
|
3086
3132
|
};
|
|
3087
3133
|
}
|
|
3088
3134
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
@@ -3093,7 +3139,7 @@ function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
|
3093
3139
|
cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(generatedSkillset.cognitiveServicesAccount),
|
|
3094
3140
|
knowledgeStore: generatedSkillset.knowledgeStore,
|
|
3095
3141
|
etag: generatedSkillset.etag,
|
|
3096
|
-
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey)
|
|
3142
|
+
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey),
|
|
3097
3143
|
};
|
|
3098
3144
|
}
|
|
3099
3145
|
function publicSkillsetToGeneratedSkillset(skillset) {
|
|
@@ -3104,7 +3150,7 @@ function publicSkillsetToGeneratedSkillset(skillset) {
|
|
|
3104
3150
|
skills: skillset.skills,
|
|
3105
3151
|
cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount),
|
|
3106
3152
|
knowledgeStore: skillset.knowledgeStore,
|
|
3107
|
-
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey)
|
|
3153
|
+
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),
|
|
3108
3154
|
};
|
|
3109
3155
|
}
|
|
3110
3156
|
function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
@@ -3112,7 +3158,7 @@ function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
|
3112
3158
|
name: synonymMap.name,
|
|
3113
3159
|
encryptionKey: convertEncryptionKeyToPublic(synonymMap.encryptionKey),
|
|
3114
3160
|
etag: synonymMap.etag,
|
|
3115
|
-
synonyms: []
|
|
3161
|
+
synonyms: [],
|
|
3116
3162
|
};
|
|
3117
3163
|
if (synonymMap.synonyms) {
|
|
3118
3164
|
result.synonyms = synonymMap.synonyms.split("\n");
|
|
@@ -3125,7 +3171,7 @@ function publicSynonymMapToGeneratedSynonymMap(synonymMap) {
|
|
|
3125
3171
|
format: "solr",
|
|
3126
3172
|
encryptionKey: convertEncryptionKeyToGenerated(synonymMap.encryptionKey),
|
|
3127
3173
|
etag: synonymMap.etag,
|
|
3128
|
-
synonyms: synonymMap.synonyms.join("\n")
|
|
3174
|
+
synonyms: synonymMap.synonyms.join("\n"),
|
|
3129
3175
|
};
|
|
3130
3176
|
result.encryptionKey = convertEncryptionKeyToGenerated(synonymMap.encryptionKey);
|
|
3131
3177
|
return result;
|
|
@@ -3142,14 +3188,14 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
|
3142
3188
|
description: dataSource.description,
|
|
3143
3189
|
type: dataSource.type,
|
|
3144
3190
|
credentials: {
|
|
3145
|
-
connectionString: dataSource.connectionString
|
|
3191
|
+
connectionString: dataSource.connectionString,
|
|
3146
3192
|
},
|
|
3147
3193
|
container: dataSource.container,
|
|
3148
3194
|
identity: dataSource.identity,
|
|
3149
3195
|
etag: dataSource.etag,
|
|
3150
3196
|
dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
|
|
3151
3197
|
dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
|
|
3152
|
-
encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey)
|
|
3198
|
+
encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey),
|
|
3153
3199
|
};
|
|
3154
3200
|
}
|
|
3155
3201
|
function generatedDataSourceToPublicDataSource(dataSource) {
|
|
@@ -3163,7 +3209,7 @@ function generatedDataSourceToPublicDataSource(dataSource) {
|
|
|
3163
3209
|
etag: dataSource.etag,
|
|
3164
3210
|
dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
|
|
3165
3211
|
dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
|
|
3166
|
-
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey)
|
|
3212
|
+
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey),
|
|
3167
3213
|
};
|
|
3168
3214
|
}
|
|
3169
3215
|
function convertSearchIndexerDataIdentityToPublic(searchIndexerDataIdentity) {
|
|
@@ -3213,6 +3259,8 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3213
3259
|
function delay(timeInMs) {
|
|
3214
3260
|
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3215
3261
|
}
|
|
3262
|
+
const serviceVersions = ["2020-06-30", "2021-04-30-Preview"];
|
|
3263
|
+
const defaultServiceVersion = "2021-04-30-Preview";
|
|
3216
3264
|
|
|
3217
3265
|
// Copyright (c) Microsoft Corporation.
|
|
3218
3266
|
/**
|
|
@@ -3220,7 +3268,7 @@ function delay(timeInMs) {
|
|
|
3220
3268
|
* including querying documents in the index as well as
|
|
3221
3269
|
* adding, updating, and removing them.
|
|
3222
3270
|
*/
|
|
3223
|
-
class SearchClient
|
|
3271
|
+
class SearchClient {
|
|
3224
3272
|
/**
|
|
3225
3273
|
* Creates an instance of SearchClient.
|
|
3226
3274
|
*
|
|
@@ -3242,10 +3290,15 @@ class SearchClient$1 {
|
|
|
3242
3290
|
constructor(endpoint, indexName, credential, options = {}) {
|
|
3243
3291
|
/// Maintenance note: when updating supported API versions,
|
|
3244
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;
|
|
3245
3297
|
/**
|
|
3246
3298
|
* The API version to use when communicating with the service.
|
|
3299
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
3247
3300
|
*/
|
|
3248
|
-
this.apiVersion =
|
|
3301
|
+
this.apiVersion = defaultServiceVersion;
|
|
3249
3302
|
this.endpoint = endpoint;
|
|
3250
3303
|
this.indexName = indexName;
|
|
3251
3304
|
const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;
|
|
@@ -3267,18 +3320,25 @@ class SearchClient$1 {
|
|
|
3267
3320
|
"OData-MaxVersion",
|
|
3268
3321
|
"OData-Version",
|
|
3269
3322
|
"Prefer",
|
|
3270
|
-
"throttle-reason"
|
|
3271
|
-
]
|
|
3272
|
-
}
|
|
3323
|
+
"throttle-reason",
|
|
3324
|
+
],
|
|
3325
|
+
},
|
|
3273
3326
|
});
|
|
3274
|
-
let apiVersion = this.apiVersion;
|
|
3275
3327
|
if (options.apiVersion) {
|
|
3276
|
-
if (!
|
|
3328
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
3277
3329
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
3278
3330
|
}
|
|
3279
|
-
|
|
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;
|
|
3280
3340
|
}
|
|
3281
|
-
this.client = new SearchClient(this.endpoint, this.indexName,
|
|
3341
|
+
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3282
3342
|
if (coreAuth.isTokenCredential(credential)) {
|
|
3283
3343
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
3284
3344
|
}
|
|
@@ -3303,7 +3363,7 @@ class SearchClient$1 {
|
|
|
3303
3363
|
catch (e) {
|
|
3304
3364
|
span.setStatus({
|
|
3305
3365
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3306
|
-
message: e.message
|
|
3366
|
+
message: e.message,
|
|
3307
3367
|
});
|
|
3308
3368
|
throw e;
|
|
3309
3369
|
}
|
|
@@ -3336,7 +3396,7 @@ class SearchClient$1 {
|
|
|
3336
3396
|
catch (e) {
|
|
3337
3397
|
span.setStatus({
|
|
3338
3398
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3339
|
-
message: e.message
|
|
3399
|
+
message: e.message,
|
|
3340
3400
|
});
|
|
3341
3401
|
throw e;
|
|
3342
3402
|
}
|
|
@@ -3359,14 +3419,14 @@ class SearchClient$1 {
|
|
|
3359
3419
|
coverage,
|
|
3360
3420
|
facets,
|
|
3361
3421
|
answers,
|
|
3362
|
-
continuationToken: this.encodeContinuationToken(nextLink, result.nextPageParameters)
|
|
3422
|
+
continuationToken: this.encodeContinuationToken(nextLink, result.nextPageParameters),
|
|
3363
3423
|
};
|
|
3364
3424
|
return deserialize(converted);
|
|
3365
3425
|
}
|
|
3366
3426
|
catch (e) {
|
|
3367
3427
|
span.setStatus({
|
|
3368
3428
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3369
|
-
message: e.message
|
|
3429
|
+
message: e.message,
|
|
3370
3430
|
});
|
|
3371
3431
|
throw e;
|
|
3372
3432
|
}
|
|
@@ -3395,7 +3455,7 @@ class SearchClient$1 {
|
|
|
3395
3455
|
if (firstPage.continuationToken) {
|
|
3396
3456
|
try {
|
|
3397
3457
|
for (var _b = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
|
|
3398
|
-
continuationToken: firstPage.continuationToken
|
|
3458
|
+
continuationToken: firstPage.continuationToken,
|
|
3399
3459
|
})), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3400
3460
|
const page = _c.value;
|
|
3401
3461
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
@@ -3422,7 +3482,7 @@ class SearchClient$1 {
|
|
|
3422
3482
|
},
|
|
3423
3483
|
byPage: (settings = {}) => {
|
|
3424
3484
|
return this.listSearchResultsPage(searchText, options, settings);
|
|
3425
|
-
}
|
|
3485
|
+
},
|
|
3426
3486
|
};
|
|
3427
3487
|
}
|
|
3428
3488
|
/**
|
|
@@ -3441,13 +3501,13 @@ class SearchClient$1 {
|
|
|
3441
3501
|
coverage,
|
|
3442
3502
|
facets,
|
|
3443
3503
|
answers,
|
|
3444
|
-
results: this.listSearchResults(pageResult, searchText, updatedOptions)
|
|
3504
|
+
results: this.listSearchResults(pageResult, searchText, updatedOptions),
|
|
3445
3505
|
};
|
|
3446
3506
|
}
|
|
3447
3507
|
catch (e) {
|
|
3448
3508
|
span.setStatus({
|
|
3449
3509
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3450
|
-
message: e.message
|
|
3510
|
+
message: e.message,
|
|
3451
3511
|
});
|
|
3452
3512
|
throw e;
|
|
3453
3513
|
}
|
|
@@ -3481,7 +3541,7 @@ class SearchClient$1 {
|
|
|
3481
3541
|
catch (e) {
|
|
3482
3542
|
span.setStatus({
|
|
3483
3543
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3484
|
-
message: e.message
|
|
3544
|
+
message: e.message,
|
|
3485
3545
|
});
|
|
3486
3546
|
throw e;
|
|
3487
3547
|
}
|
|
@@ -3503,7 +3563,7 @@ class SearchClient$1 {
|
|
|
3503
3563
|
catch (e) {
|
|
3504
3564
|
span.setStatus({
|
|
3505
3565
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3506
|
-
message: e.message
|
|
3566
|
+
message: e.message,
|
|
3507
3567
|
});
|
|
3508
3568
|
throw e;
|
|
3509
3569
|
}
|
|
@@ -3538,7 +3598,7 @@ class SearchClient$1 {
|
|
|
3538
3598
|
catch (e) {
|
|
3539
3599
|
span.setStatus({
|
|
3540
3600
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3541
|
-
message: e.message
|
|
3601
|
+
message: e.message,
|
|
3542
3602
|
});
|
|
3543
3603
|
throw e;
|
|
3544
3604
|
}
|
|
@@ -3561,7 +3621,7 @@ class SearchClient$1 {
|
|
|
3561
3621
|
catch (e) {
|
|
3562
3622
|
span.setStatus({
|
|
3563
3623
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3564
|
-
message: e.message
|
|
3624
|
+
message: e.message,
|
|
3565
3625
|
});
|
|
3566
3626
|
throw e;
|
|
3567
3627
|
}
|
|
@@ -3585,7 +3645,7 @@ class SearchClient$1 {
|
|
|
3585
3645
|
catch (e) {
|
|
3586
3646
|
span.setStatus({
|
|
3587
3647
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3588
|
-
message: e.message
|
|
3648
|
+
message: e.message,
|
|
3589
3649
|
});
|
|
3590
3650
|
throw e;
|
|
3591
3651
|
}
|
|
@@ -3609,7 +3669,7 @@ class SearchClient$1 {
|
|
|
3609
3669
|
catch (e) {
|
|
3610
3670
|
span.setStatus({
|
|
3611
3671
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3612
|
-
message: e.message
|
|
3672
|
+
message: e.message,
|
|
3613
3673
|
});
|
|
3614
3674
|
throw e;
|
|
3615
3675
|
}
|
|
@@ -3632,7 +3692,7 @@ class SearchClient$1 {
|
|
|
3632
3692
|
catch (e) {
|
|
3633
3693
|
span.setStatus({
|
|
3634
3694
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3635
|
-
message: e.message
|
|
3695
|
+
message: e.message,
|
|
3636
3696
|
});
|
|
3637
3697
|
throw e;
|
|
3638
3698
|
}
|
|
@@ -3647,7 +3707,7 @@ class SearchClient$1 {
|
|
|
3647
3707
|
const payload = JSON.stringify({
|
|
3648
3708
|
apiVersion: this.apiVersion,
|
|
3649
3709
|
nextLink,
|
|
3650
|
-
nextPageParameters
|
|
3710
|
+
nextPageParameters,
|
|
3651
3711
|
});
|
|
3652
3712
|
return encode(payload);
|
|
3653
3713
|
}
|
|
@@ -3663,7 +3723,7 @@ class SearchClient$1 {
|
|
|
3663
3723
|
}
|
|
3664
3724
|
return {
|
|
3665
3725
|
nextLink: result.nextLink,
|
|
3666
|
-
nextPageParameters: result.nextPageParameters
|
|
3726
|
+
nextPageParameters: result.nextPageParameters,
|
|
3667
3727
|
};
|
|
3668
3728
|
}
|
|
3669
3729
|
catch (e) {
|
|
@@ -3677,9 +3737,9 @@ class SearchClient$1 {
|
|
|
3677
3737
|
operationOptions: {
|
|
3678
3738
|
abortSignal,
|
|
3679
3739
|
requestOptions,
|
|
3680
|
-
tracingOptions
|
|
3740
|
+
tracingOptions,
|
|
3681
3741
|
},
|
|
3682
|
-
restOptions
|
|
3742
|
+
restOptions,
|
|
3683
3743
|
};
|
|
3684
3744
|
}
|
|
3685
3745
|
convertSelect(select) {
|
|
@@ -3742,7 +3802,7 @@ class SearchIndexingBufferedSender {
|
|
|
3742
3802
|
/**
|
|
3743
3803
|
* Event emitter/publisher used in the Buffered Sender
|
|
3744
3804
|
*/
|
|
3745
|
-
this.emitter = new
|
|
3805
|
+
this.emitter = new EventEmitter__default["default"]();
|
|
3746
3806
|
this.client = client;
|
|
3747
3807
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
3748
3808
|
// General Configuration properties
|
|
@@ -3774,14 +3834,14 @@ class SearchIndexingBufferedSender {
|
|
|
3774
3834
|
this.batchObject.upload(documents);
|
|
3775
3835
|
this.emitter.emit("batchAdded", {
|
|
3776
3836
|
action: "upload",
|
|
3777
|
-
documents
|
|
3837
|
+
documents,
|
|
3778
3838
|
});
|
|
3779
3839
|
return this.internalFlush(false, updatedOptions);
|
|
3780
3840
|
}
|
|
3781
3841
|
catch (e) {
|
|
3782
3842
|
span.setStatus({
|
|
3783
3843
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3784
|
-
message: e.message
|
|
3844
|
+
message: e.message,
|
|
3785
3845
|
});
|
|
3786
3846
|
throw e;
|
|
3787
3847
|
}
|
|
@@ -3801,14 +3861,14 @@ class SearchIndexingBufferedSender {
|
|
|
3801
3861
|
this.batchObject.merge(documents);
|
|
3802
3862
|
this.emitter.emit("batchAdded", {
|
|
3803
3863
|
action: "merge",
|
|
3804
|
-
documents
|
|
3864
|
+
documents,
|
|
3805
3865
|
});
|
|
3806
3866
|
return this.internalFlush(false, updatedOptions);
|
|
3807
3867
|
}
|
|
3808
3868
|
catch (e) {
|
|
3809
3869
|
span.setStatus({
|
|
3810
3870
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3811
|
-
message: e.message
|
|
3871
|
+
message: e.message,
|
|
3812
3872
|
});
|
|
3813
3873
|
throw e;
|
|
3814
3874
|
}
|
|
@@ -3828,14 +3888,14 @@ class SearchIndexingBufferedSender {
|
|
|
3828
3888
|
this.batchObject.mergeOrUpload(documents);
|
|
3829
3889
|
this.emitter.emit("batchAdded", {
|
|
3830
3890
|
action: "mergeOrUpload",
|
|
3831
|
-
documents
|
|
3891
|
+
documents,
|
|
3832
3892
|
});
|
|
3833
3893
|
return this.internalFlush(false, updatedOptions);
|
|
3834
3894
|
}
|
|
3835
3895
|
catch (e) {
|
|
3836
3896
|
span.setStatus({
|
|
3837
3897
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3838
|
-
message: e.message
|
|
3898
|
+
message: e.message,
|
|
3839
3899
|
});
|
|
3840
3900
|
throw e;
|
|
3841
3901
|
}
|
|
@@ -3855,14 +3915,14 @@ class SearchIndexingBufferedSender {
|
|
|
3855
3915
|
this.batchObject.delete(documents);
|
|
3856
3916
|
this.emitter.emit("batchAdded", {
|
|
3857
3917
|
action: "delete",
|
|
3858
|
-
documents
|
|
3918
|
+
documents,
|
|
3859
3919
|
});
|
|
3860
3920
|
return this.internalFlush(false, updatedOptions);
|
|
3861
3921
|
}
|
|
3862
3922
|
catch (e) {
|
|
3863
3923
|
span.setStatus({
|
|
3864
3924
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3865
|
-
message: e.message
|
|
3925
|
+
message: e.message,
|
|
3866
3926
|
});
|
|
3867
3927
|
throw e;
|
|
3868
3928
|
}
|
|
@@ -3885,7 +3945,7 @@ class SearchIndexingBufferedSender {
|
|
|
3885
3945
|
catch (e) {
|
|
3886
3946
|
span.setStatus({
|
|
3887
3947
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3888
|
-
message: e.message
|
|
3948
|
+
message: e.message,
|
|
3889
3949
|
});
|
|
3890
3950
|
throw e;
|
|
3891
3951
|
}
|
|
@@ -3956,7 +4016,7 @@ class SearchIndexingBufferedSender {
|
|
|
3956
4016
|
// Cut the payload size to half
|
|
3957
4017
|
const splitActionsArray = [
|
|
3958
4018
|
actionsToSend.slice(0, actionsToSend.length / 2),
|
|
3959
|
-
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length)
|
|
4019
|
+
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length),
|
|
3960
4020
|
];
|
|
3961
4021
|
this.initialBatchActionCount = splitActionsArray[0].length; // So, we do not want 413 happening again and again
|
|
3962
4022
|
for (const actions of splitActionsArray) {
|
|
@@ -4227,7 +4287,7 @@ const AzureActiveDirectoryApplicationCredentials = {
|
|
|
4227
4287
|
}
|
|
4228
4288
|
}
|
|
4229
4289
|
};
|
|
4230
|
-
const SearchError
|
|
4290
|
+
const SearchError = {
|
|
4231
4291
|
type: {
|
|
4232
4292
|
name: "Composite",
|
|
4233
4293
|
className: "SearchError",
|
|
@@ -7286,6 +7346,52 @@ const WebApiSkill = {
|
|
|
7286
7346
|
} })
|
|
7287
7347
|
}
|
|
7288
7348
|
};
|
|
7349
|
+
const AzureMachineLearningSkill = {
|
|
7350
|
+
serializedName: "#Microsoft.Skills.Custom.AmlSkill",
|
|
7351
|
+
type: {
|
|
7352
|
+
name: "Composite",
|
|
7353
|
+
className: "AzureMachineLearningSkill",
|
|
7354
|
+
uberParent: "SearchIndexerSkill",
|
|
7355
|
+
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7356
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
|
|
7357
|
+
serializedName: "uri",
|
|
7358
|
+
nullable: true,
|
|
7359
|
+
type: {
|
|
7360
|
+
name: "String"
|
|
7361
|
+
}
|
|
7362
|
+
}, authenticationKey: {
|
|
7363
|
+
serializedName: "key",
|
|
7364
|
+
nullable: true,
|
|
7365
|
+
type: {
|
|
7366
|
+
name: "String"
|
|
7367
|
+
}
|
|
7368
|
+
}, resourceId: {
|
|
7369
|
+
serializedName: "resourceId",
|
|
7370
|
+
nullable: true,
|
|
7371
|
+
type: {
|
|
7372
|
+
name: "String"
|
|
7373
|
+
}
|
|
7374
|
+
}, timeout: {
|
|
7375
|
+
serializedName: "timeout",
|
|
7376
|
+
nullable: true,
|
|
7377
|
+
type: {
|
|
7378
|
+
name: "TimeSpan"
|
|
7379
|
+
}
|
|
7380
|
+
}, region: {
|
|
7381
|
+
serializedName: "region",
|
|
7382
|
+
nullable: true,
|
|
7383
|
+
type: {
|
|
7384
|
+
name: "String"
|
|
7385
|
+
}
|
|
7386
|
+
}, degreeOfParallelism: {
|
|
7387
|
+
serializedName: "degreeOfParallelism",
|
|
7388
|
+
nullable: true,
|
|
7389
|
+
type: {
|
|
7390
|
+
name: "Number"
|
|
7391
|
+
}
|
|
7392
|
+
} })
|
|
7393
|
+
}
|
|
7394
|
+
};
|
|
7289
7395
|
const DefaultCognitiveServicesAccount = {
|
|
7290
7396
|
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7291
7397
|
type: {
|
|
@@ -8944,6 +9050,7 @@ let discriminators = {
|
|
|
8944
9050
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
8945
9051
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
8946
9052
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
9053
|
+
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
8947
9054
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
8948
9055
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
8949
9056
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -8998,7 +9105,7 @@ let discriminators = {
|
|
|
8998
9105
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
|
|
8999
9106
|
};
|
|
9000
9107
|
|
|
9001
|
-
var Mappers
|
|
9108
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
9002
9109
|
__proto__: null,
|
|
9003
9110
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9004
9111
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -9008,7 +9115,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9008
9115
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9009
9116
|
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
9010
9117
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9011
|
-
SearchError: SearchError
|
|
9118
|
+
SearchError: SearchError,
|
|
9012
9119
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
9013
9120
|
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
9014
9121
|
SearchIndexer: SearchIndexer,
|
|
@@ -9092,6 +9199,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9092
9199
|
TextTranslationSkill: TextTranslationSkill,
|
|
9093
9200
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
9094
9201
|
WebApiSkill: WebApiSkill,
|
|
9202
|
+
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
9095
9203
|
DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
|
|
9096
9204
|
CognitiveServicesAccountKey: CognitiveServicesAccountKey,
|
|
9097
9205
|
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
@@ -9158,7 +9266,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9158
9266
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9159
9267
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9160
9268
|
*/
|
|
9161
|
-
const contentType
|
|
9269
|
+
const contentType = {
|
|
9162
9270
|
parameterPath: ["options", "contentType"],
|
|
9163
9271
|
mapper: {
|
|
9164
9272
|
defaultValue: "application/json",
|
|
@@ -9173,7 +9281,7 @@ const dataSource = {
|
|
|
9173
9281
|
parameterPath: "dataSource",
|
|
9174
9282
|
mapper: SearchIndexerDataSource
|
|
9175
9283
|
};
|
|
9176
|
-
const accept
|
|
9284
|
+
const accept = {
|
|
9177
9285
|
parameterPath: "accept",
|
|
9178
9286
|
mapper: {
|
|
9179
9287
|
defaultValue: "application/json",
|
|
@@ -9184,7 +9292,7 @@ const accept$1 = {
|
|
|
9184
9292
|
}
|
|
9185
9293
|
}
|
|
9186
9294
|
};
|
|
9187
|
-
const endpoint
|
|
9295
|
+
const endpoint = {
|
|
9188
9296
|
parameterPath: "endpoint",
|
|
9189
9297
|
mapper: {
|
|
9190
9298
|
serializedName: "endpoint",
|
|
@@ -9205,7 +9313,7 @@ const dataSourceName = {
|
|
|
9205
9313
|
}
|
|
9206
9314
|
}
|
|
9207
9315
|
};
|
|
9208
|
-
const xMsClientRequestId
|
|
9316
|
+
const xMsClientRequestId = {
|
|
9209
9317
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
9210
9318
|
mapper: {
|
|
9211
9319
|
serializedName: "x-ms-client-request-id",
|
|
@@ -9243,7 +9351,7 @@ const prefer = {
|
|
|
9243
9351
|
}
|
|
9244
9352
|
}
|
|
9245
9353
|
};
|
|
9246
|
-
const apiVersion
|
|
9354
|
+
const apiVersion = {
|
|
9247
9355
|
parameterPath: "apiVersion",
|
|
9248
9356
|
mapper: {
|
|
9249
9357
|
serializedName: "api-version",
|
|
@@ -9262,7 +9370,7 @@ const skipIndexerResetRequirementForCache = {
|
|
|
9262
9370
|
}
|
|
9263
9371
|
}
|
|
9264
9372
|
};
|
|
9265
|
-
const select
|
|
9373
|
+
const select = {
|
|
9266
9374
|
parameterPath: ["options", "select"],
|
|
9267
9375
|
mapper: {
|
|
9268
9376
|
serializedName: "$select",
|
|
@@ -9344,7 +9452,7 @@ const index = {
|
|
|
9344
9452
|
parameterPath: "index",
|
|
9345
9453
|
mapper: SearchIndex
|
|
9346
9454
|
};
|
|
9347
|
-
const indexName
|
|
9455
|
+
const indexName = {
|
|
9348
9456
|
parameterPath: "indexName",
|
|
9349
9457
|
mapper: {
|
|
9350
9458
|
serializedName: "indexName",
|
|
@@ -9391,7 +9499,7 @@ class DataSourcesImpl {
|
|
|
9391
9499
|
* @param options The options parameters.
|
|
9392
9500
|
*/
|
|
9393
9501
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
9394
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
|
|
9502
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
9395
9503
|
}
|
|
9396
9504
|
/**
|
|
9397
9505
|
* Deletes a datasource.
|
|
@@ -9399,7 +9507,7 @@ class DataSourcesImpl {
|
|
|
9399
9507
|
* @param options The options parameters.
|
|
9400
9508
|
*/
|
|
9401
9509
|
delete(dataSourceName, options) {
|
|
9402
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
|
|
9510
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
9403
9511
|
}
|
|
9404
9512
|
/**
|
|
9405
9513
|
* Retrieves a datasource definition.
|
|
@@ -9407,14 +9515,14 @@ class DataSourcesImpl {
|
|
|
9407
9515
|
* @param options The options parameters.
|
|
9408
9516
|
*/
|
|
9409
9517
|
get(dataSourceName, options) {
|
|
9410
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
9518
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
9411
9519
|
}
|
|
9412
9520
|
/**
|
|
9413
9521
|
* Lists all datasources available for a search service.
|
|
9414
9522
|
* @param options The options parameters.
|
|
9415
9523
|
*/
|
|
9416
9524
|
list(options) {
|
|
9417
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
9525
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
9418
9526
|
}
|
|
9419
9527
|
/**
|
|
9420
9528
|
* Creates a new datasource.
|
|
@@ -9422,12 +9530,12 @@ class DataSourcesImpl {
|
|
|
9422
9530
|
* @param options The options parameters.
|
|
9423
9531
|
*/
|
|
9424
9532
|
create(dataSource, options) {
|
|
9425
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
|
|
9533
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
9426
9534
|
}
|
|
9427
9535
|
}
|
|
9428
9536
|
// Operation Specifications
|
|
9429
|
-
const serializer$
|
|
9430
|
-
const createOrUpdateOperationSpec = {
|
|
9537
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9538
|
+
const createOrUpdateOperationSpec$4 = {
|
|
9431
9539
|
path: "/datasources('{dataSourceName}')",
|
|
9432
9540
|
httpMethod: "PUT",
|
|
9433
9541
|
responses: {
|
|
@@ -9438,47 +9546,47 @@ const createOrUpdateOperationSpec = {
|
|
|
9438
9546
|
bodyMapper: SearchIndexerDataSource
|
|
9439
9547
|
},
|
|
9440
9548
|
default: {
|
|
9441
|
-
bodyMapper: SearchError
|
|
9549
|
+
bodyMapper: SearchError
|
|
9442
9550
|
}
|
|
9443
9551
|
},
|
|
9444
9552
|
requestBody: dataSource,
|
|
9445
9553
|
queryParameters: [
|
|
9446
|
-
apiVersion
|
|
9554
|
+
apiVersion,
|
|
9447
9555
|
skipIndexerResetRequirementForCache
|
|
9448
9556
|
],
|
|
9449
|
-
urlParameters: [endpoint
|
|
9557
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9450
9558
|
headerParameters: [
|
|
9451
|
-
contentType
|
|
9452
|
-
accept
|
|
9453
|
-
xMsClientRequestId
|
|
9559
|
+
contentType,
|
|
9560
|
+
accept,
|
|
9561
|
+
xMsClientRequestId,
|
|
9454
9562
|
ifMatch,
|
|
9455
9563
|
ifNoneMatch,
|
|
9456
9564
|
prefer
|
|
9457
9565
|
],
|
|
9458
9566
|
mediaType: "json",
|
|
9459
|
-
serializer: serializer$
|
|
9567
|
+
serializer: serializer$5
|
|
9460
9568
|
};
|
|
9461
|
-
const deleteOperationSpec = {
|
|
9569
|
+
const deleteOperationSpec$4 = {
|
|
9462
9570
|
path: "/datasources('{dataSourceName}')",
|
|
9463
9571
|
httpMethod: "DELETE",
|
|
9464
9572
|
responses: {
|
|
9465
9573
|
204: {},
|
|
9466
9574
|
404: {},
|
|
9467
9575
|
default: {
|
|
9468
|
-
bodyMapper: SearchError
|
|
9576
|
+
bodyMapper: SearchError
|
|
9469
9577
|
}
|
|
9470
9578
|
},
|
|
9471
|
-
queryParameters: [apiVersion
|
|
9472
|
-
urlParameters: [endpoint
|
|
9579
|
+
queryParameters: [apiVersion],
|
|
9580
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9473
9581
|
headerParameters: [
|
|
9474
|
-
accept
|
|
9475
|
-
xMsClientRequestId
|
|
9582
|
+
accept,
|
|
9583
|
+
xMsClientRequestId,
|
|
9476
9584
|
ifMatch,
|
|
9477
9585
|
ifNoneMatch
|
|
9478
9586
|
],
|
|
9479
|
-
serializer: serializer$
|
|
9587
|
+
serializer: serializer$5
|
|
9480
9588
|
};
|
|
9481
|
-
const getOperationSpec$
|
|
9589
|
+
const getOperationSpec$4 = {
|
|
9482
9590
|
path: "/datasources('{dataSourceName}')",
|
|
9483
9591
|
httpMethod: "GET",
|
|
9484
9592
|
responses: {
|
|
@@ -9486,15 +9594,15 @@ const getOperationSpec$1 = {
|
|
|
9486
9594
|
bodyMapper: SearchIndexerDataSource
|
|
9487
9595
|
},
|
|
9488
9596
|
default: {
|
|
9489
|
-
bodyMapper: SearchError
|
|
9597
|
+
bodyMapper: SearchError
|
|
9490
9598
|
}
|
|
9491
9599
|
},
|
|
9492
|
-
queryParameters: [apiVersion
|
|
9493
|
-
urlParameters: [endpoint
|
|
9494
|
-
headerParameters: [accept
|
|
9495
|
-
serializer: serializer$
|
|
9600
|
+
queryParameters: [apiVersion],
|
|
9601
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9602
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9603
|
+
serializer: serializer$5
|
|
9496
9604
|
};
|
|
9497
|
-
const listOperationSpec = {
|
|
9605
|
+
const listOperationSpec$4 = {
|
|
9498
9606
|
path: "/datasources",
|
|
9499
9607
|
httpMethod: "GET",
|
|
9500
9608
|
responses: {
|
|
@@ -9502,15 +9610,15 @@ const listOperationSpec = {
|
|
|
9502
9610
|
bodyMapper: ListDataSourcesResult
|
|
9503
9611
|
},
|
|
9504
9612
|
default: {
|
|
9505
|
-
bodyMapper: SearchError
|
|
9613
|
+
bodyMapper: SearchError
|
|
9506
9614
|
}
|
|
9507
9615
|
},
|
|
9508
|
-
queryParameters: [apiVersion
|
|
9509
|
-
urlParameters: [endpoint
|
|
9510
|
-
headerParameters: [accept
|
|
9511
|
-
serializer: serializer$
|
|
9616
|
+
queryParameters: [apiVersion, select],
|
|
9617
|
+
urlParameters: [endpoint],
|
|
9618
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9619
|
+
serializer: serializer$5
|
|
9512
9620
|
};
|
|
9513
|
-
const createOperationSpec = {
|
|
9621
|
+
const createOperationSpec$4 = {
|
|
9514
9622
|
path: "/datasources",
|
|
9515
9623
|
httpMethod: "POST",
|
|
9516
9624
|
responses: {
|
|
@@ -9518,19 +9626,19 @@ const createOperationSpec = {
|
|
|
9518
9626
|
bodyMapper: SearchIndexerDataSource
|
|
9519
9627
|
},
|
|
9520
9628
|
default: {
|
|
9521
|
-
bodyMapper: SearchError
|
|
9629
|
+
bodyMapper: SearchError
|
|
9522
9630
|
}
|
|
9523
9631
|
},
|
|
9524
9632
|
requestBody: dataSource,
|
|
9525
|
-
queryParameters: [apiVersion
|
|
9526
|
-
urlParameters: [endpoint
|
|
9633
|
+
queryParameters: [apiVersion],
|
|
9634
|
+
urlParameters: [endpoint],
|
|
9527
9635
|
headerParameters: [
|
|
9528
|
-
contentType
|
|
9529
|
-
accept
|
|
9530
|
-
xMsClientRequestId
|
|
9636
|
+
contentType,
|
|
9637
|
+
accept,
|
|
9638
|
+
xMsClientRequestId
|
|
9531
9639
|
],
|
|
9532
9640
|
mediaType: "json",
|
|
9533
|
-
serializer: serializer$
|
|
9641
|
+
serializer: serializer$5
|
|
9534
9642
|
};
|
|
9535
9643
|
|
|
9536
9644
|
/*
|
|
@@ -9580,7 +9688,7 @@ class IndexersImpl {
|
|
|
9580
9688
|
* @param options The options parameters.
|
|
9581
9689
|
*/
|
|
9582
9690
|
createOrUpdate(indexerName, indexer, options) {
|
|
9583
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
9691
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
9584
9692
|
}
|
|
9585
9693
|
/**
|
|
9586
9694
|
* Deletes an indexer.
|
|
@@ -9588,7 +9696,7 @@ class IndexersImpl {
|
|
|
9588
9696
|
* @param options The options parameters.
|
|
9589
9697
|
*/
|
|
9590
9698
|
delete(indexerName, options) {
|
|
9591
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
9699
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
9592
9700
|
}
|
|
9593
9701
|
/**
|
|
9594
9702
|
* Retrieves an indexer definition.
|
|
@@ -9596,14 +9704,14 @@ class IndexersImpl {
|
|
|
9596
9704
|
* @param options The options parameters.
|
|
9597
9705
|
*/
|
|
9598
9706
|
get(indexerName, options) {
|
|
9599
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
9707
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
9600
9708
|
}
|
|
9601
9709
|
/**
|
|
9602
9710
|
* Lists all indexers available for a search service.
|
|
9603
9711
|
* @param options The options parameters.
|
|
9604
9712
|
*/
|
|
9605
9713
|
list(options) {
|
|
9606
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9714
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
9607
9715
|
}
|
|
9608
9716
|
/**
|
|
9609
9717
|
* Creates a new indexer.
|
|
@@ -9611,7 +9719,7 @@ class IndexersImpl {
|
|
|
9611
9719
|
* @param options The options parameters.
|
|
9612
9720
|
*/
|
|
9613
9721
|
create(indexer, options) {
|
|
9614
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
9722
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
9615
9723
|
}
|
|
9616
9724
|
/**
|
|
9617
9725
|
* Returns the current status and execution history of an indexer.
|
|
@@ -9623,20 +9731,20 @@ class IndexersImpl {
|
|
|
9623
9731
|
}
|
|
9624
9732
|
}
|
|
9625
9733
|
// Operation Specifications
|
|
9626
|
-
const serializer$
|
|
9734
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9627
9735
|
const resetOperationSpec = {
|
|
9628
9736
|
path: "/indexers('{indexerName}')/search.reset",
|
|
9629
9737
|
httpMethod: "POST",
|
|
9630
9738
|
responses: {
|
|
9631
9739
|
204: {},
|
|
9632
9740
|
default: {
|
|
9633
|
-
bodyMapper: SearchError
|
|
9741
|
+
bodyMapper: SearchError
|
|
9634
9742
|
}
|
|
9635
9743
|
},
|
|
9636
|
-
queryParameters: [apiVersion
|
|
9637
|
-
urlParameters: [endpoint
|
|
9638
|
-
headerParameters: [accept
|
|
9639
|
-
serializer: serializer$
|
|
9744
|
+
queryParameters: [apiVersion],
|
|
9745
|
+
urlParameters: [endpoint, indexerName],
|
|
9746
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9747
|
+
serializer: serializer$4
|
|
9640
9748
|
};
|
|
9641
9749
|
const resetDocsOperationSpec = {
|
|
9642
9750
|
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
@@ -9644,19 +9752,19 @@ const resetDocsOperationSpec = {
|
|
|
9644
9752
|
responses: {
|
|
9645
9753
|
204: {},
|
|
9646
9754
|
default: {
|
|
9647
|
-
bodyMapper: SearchError
|
|
9755
|
+
bodyMapper: SearchError
|
|
9648
9756
|
}
|
|
9649
9757
|
},
|
|
9650
9758
|
requestBody: keysOrIds,
|
|
9651
|
-
queryParameters: [apiVersion
|
|
9652
|
-
urlParameters: [endpoint
|
|
9759
|
+
queryParameters: [apiVersion, overwrite],
|
|
9760
|
+
urlParameters: [endpoint, indexerName],
|
|
9653
9761
|
headerParameters: [
|
|
9654
|
-
contentType
|
|
9655
|
-
accept
|
|
9656
|
-
xMsClientRequestId
|
|
9762
|
+
contentType,
|
|
9763
|
+
accept,
|
|
9764
|
+
xMsClientRequestId
|
|
9657
9765
|
],
|
|
9658
9766
|
mediaType: "json",
|
|
9659
|
-
serializer: serializer$
|
|
9767
|
+
serializer: serializer$4
|
|
9660
9768
|
};
|
|
9661
9769
|
const runOperationSpec = {
|
|
9662
9770
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -9664,15 +9772,15 @@ const runOperationSpec = {
|
|
|
9664
9772
|
responses: {
|
|
9665
9773
|
202: {},
|
|
9666
9774
|
default: {
|
|
9667
|
-
bodyMapper: SearchError
|
|
9775
|
+
bodyMapper: SearchError
|
|
9668
9776
|
}
|
|
9669
9777
|
},
|
|
9670
|
-
queryParameters: [apiVersion
|
|
9671
|
-
urlParameters: [endpoint
|
|
9672
|
-
headerParameters: [accept
|
|
9673
|
-
serializer: serializer$
|
|
9778
|
+
queryParameters: [apiVersion],
|
|
9779
|
+
urlParameters: [endpoint, indexerName],
|
|
9780
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9781
|
+
serializer: serializer$4
|
|
9674
9782
|
};
|
|
9675
|
-
const createOrUpdateOperationSpec$
|
|
9783
|
+
const createOrUpdateOperationSpec$3 = {
|
|
9676
9784
|
path: "/indexers('{indexerName}')",
|
|
9677
9785
|
httpMethod: "PUT",
|
|
9678
9786
|
responses: {
|
|
@@ -9683,48 +9791,48 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
9683
9791
|
bodyMapper: SearchIndexer
|
|
9684
9792
|
},
|
|
9685
9793
|
default: {
|
|
9686
|
-
bodyMapper: SearchError
|
|
9794
|
+
bodyMapper: SearchError
|
|
9687
9795
|
}
|
|
9688
9796
|
},
|
|
9689
9797
|
requestBody: indexer,
|
|
9690
9798
|
queryParameters: [
|
|
9691
|
-
apiVersion
|
|
9799
|
+
apiVersion,
|
|
9692
9800
|
skipIndexerResetRequirementForCache,
|
|
9693
9801
|
disableCacheReprocessingChangeDetection
|
|
9694
9802
|
],
|
|
9695
|
-
urlParameters: [endpoint
|
|
9803
|
+
urlParameters: [endpoint, indexerName],
|
|
9696
9804
|
headerParameters: [
|
|
9697
|
-
contentType
|
|
9698
|
-
accept
|
|
9699
|
-
xMsClientRequestId
|
|
9805
|
+
contentType,
|
|
9806
|
+
accept,
|
|
9807
|
+
xMsClientRequestId,
|
|
9700
9808
|
ifMatch,
|
|
9701
9809
|
ifNoneMatch,
|
|
9702
9810
|
prefer
|
|
9703
9811
|
],
|
|
9704
9812
|
mediaType: "json",
|
|
9705
|
-
serializer: serializer$
|
|
9813
|
+
serializer: serializer$4
|
|
9706
9814
|
};
|
|
9707
|
-
const deleteOperationSpec$
|
|
9815
|
+
const deleteOperationSpec$3 = {
|
|
9708
9816
|
path: "/indexers('{indexerName}')",
|
|
9709
9817
|
httpMethod: "DELETE",
|
|
9710
9818
|
responses: {
|
|
9711
9819
|
204: {},
|
|
9712
9820
|
404: {},
|
|
9713
9821
|
default: {
|
|
9714
|
-
bodyMapper: SearchError
|
|
9822
|
+
bodyMapper: SearchError
|
|
9715
9823
|
}
|
|
9716
9824
|
},
|
|
9717
|
-
queryParameters: [apiVersion
|
|
9718
|
-
urlParameters: [endpoint
|
|
9825
|
+
queryParameters: [apiVersion],
|
|
9826
|
+
urlParameters: [endpoint, indexerName],
|
|
9719
9827
|
headerParameters: [
|
|
9720
|
-
accept
|
|
9721
|
-
xMsClientRequestId
|
|
9828
|
+
accept,
|
|
9829
|
+
xMsClientRequestId,
|
|
9722
9830
|
ifMatch,
|
|
9723
9831
|
ifNoneMatch
|
|
9724
9832
|
],
|
|
9725
|
-
serializer: serializer$
|
|
9833
|
+
serializer: serializer$4
|
|
9726
9834
|
};
|
|
9727
|
-
const getOperationSpec$
|
|
9835
|
+
const getOperationSpec$3 = {
|
|
9728
9836
|
path: "/indexers('{indexerName}')",
|
|
9729
9837
|
httpMethod: "GET",
|
|
9730
9838
|
responses: {
|
|
@@ -9732,15 +9840,15 @@ const getOperationSpec$2 = {
|
|
|
9732
9840
|
bodyMapper: SearchIndexer
|
|
9733
9841
|
},
|
|
9734
9842
|
default: {
|
|
9735
|
-
bodyMapper: SearchError
|
|
9843
|
+
bodyMapper: SearchError
|
|
9736
9844
|
}
|
|
9737
9845
|
},
|
|
9738
|
-
queryParameters: [apiVersion
|
|
9739
|
-
urlParameters: [endpoint
|
|
9740
|
-
headerParameters: [accept
|
|
9741
|
-
serializer: serializer$
|
|
9846
|
+
queryParameters: [apiVersion],
|
|
9847
|
+
urlParameters: [endpoint, indexerName],
|
|
9848
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9849
|
+
serializer: serializer$4
|
|
9742
9850
|
};
|
|
9743
|
-
const listOperationSpec$
|
|
9851
|
+
const listOperationSpec$3 = {
|
|
9744
9852
|
path: "/indexers",
|
|
9745
9853
|
httpMethod: "GET",
|
|
9746
9854
|
responses: {
|
|
@@ -9748,15 +9856,15 @@ const listOperationSpec$1 = {
|
|
|
9748
9856
|
bodyMapper: ListIndexersResult
|
|
9749
9857
|
},
|
|
9750
9858
|
default: {
|
|
9751
|
-
bodyMapper: SearchError
|
|
9859
|
+
bodyMapper: SearchError
|
|
9752
9860
|
}
|
|
9753
9861
|
},
|
|
9754
|
-
queryParameters: [apiVersion
|
|
9755
|
-
urlParameters: [endpoint
|
|
9756
|
-
headerParameters: [accept
|
|
9757
|
-
serializer: serializer$
|
|
9862
|
+
queryParameters: [apiVersion, select],
|
|
9863
|
+
urlParameters: [endpoint],
|
|
9864
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9865
|
+
serializer: serializer$4
|
|
9758
9866
|
};
|
|
9759
|
-
const createOperationSpec$
|
|
9867
|
+
const createOperationSpec$3 = {
|
|
9760
9868
|
path: "/indexers",
|
|
9761
9869
|
httpMethod: "POST",
|
|
9762
9870
|
responses: {
|
|
@@ -9764,19 +9872,19 @@ const createOperationSpec$1 = {
|
|
|
9764
9872
|
bodyMapper: SearchIndexer
|
|
9765
9873
|
},
|
|
9766
9874
|
default: {
|
|
9767
|
-
bodyMapper: SearchError
|
|
9875
|
+
bodyMapper: SearchError
|
|
9768
9876
|
}
|
|
9769
9877
|
},
|
|
9770
9878
|
requestBody: indexer,
|
|
9771
|
-
queryParameters: [apiVersion
|
|
9772
|
-
urlParameters: [endpoint
|
|
9879
|
+
queryParameters: [apiVersion],
|
|
9880
|
+
urlParameters: [endpoint],
|
|
9773
9881
|
headerParameters: [
|
|
9774
|
-
contentType
|
|
9775
|
-
accept
|
|
9776
|
-
xMsClientRequestId
|
|
9882
|
+
contentType,
|
|
9883
|
+
accept,
|
|
9884
|
+
xMsClientRequestId
|
|
9777
9885
|
],
|
|
9778
9886
|
mediaType: "json",
|
|
9779
|
-
serializer: serializer$
|
|
9887
|
+
serializer: serializer$4
|
|
9780
9888
|
};
|
|
9781
9889
|
const getStatusOperationSpec = {
|
|
9782
9890
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -9786,13 +9894,13 @@ const getStatusOperationSpec = {
|
|
|
9786
9894
|
bodyMapper: SearchIndexerStatus
|
|
9787
9895
|
},
|
|
9788
9896
|
default: {
|
|
9789
|
-
bodyMapper: SearchError
|
|
9897
|
+
bodyMapper: SearchError
|
|
9790
9898
|
}
|
|
9791
9899
|
},
|
|
9792
|
-
queryParameters: [apiVersion
|
|
9793
|
-
urlParameters: [endpoint
|
|
9794
|
-
headerParameters: [accept
|
|
9795
|
-
serializer: serializer$
|
|
9900
|
+
queryParameters: [apiVersion],
|
|
9901
|
+
urlParameters: [endpoint, indexerName],
|
|
9902
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9903
|
+
serializer: serializer$4
|
|
9796
9904
|
};
|
|
9797
9905
|
|
|
9798
9906
|
/*
|
|
@@ -9834,7 +9942,7 @@ class SkillsetsImpl {
|
|
|
9834
9942
|
* @param options The options parameters.
|
|
9835
9943
|
*/
|
|
9836
9944
|
get(skillsetName, options) {
|
|
9837
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
9945
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
9838
9946
|
}
|
|
9839
9947
|
/**
|
|
9840
9948
|
* List all skillsets in a search service.
|
|
@@ -9862,7 +9970,7 @@ class SkillsetsImpl {
|
|
|
9862
9970
|
}
|
|
9863
9971
|
}
|
|
9864
9972
|
// Operation Specifications
|
|
9865
|
-
const serializer$3 =
|
|
9973
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9866
9974
|
const createOrUpdateOperationSpec$2 = {
|
|
9867
9975
|
path: "/skillsets('{skillsetName}')",
|
|
9868
9976
|
httpMethod: "PUT",
|
|
@@ -9874,20 +9982,20 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
9874
9982
|
bodyMapper: SearchIndexerSkillset
|
|
9875
9983
|
},
|
|
9876
9984
|
default: {
|
|
9877
|
-
bodyMapper: SearchError
|
|
9985
|
+
bodyMapper: SearchError
|
|
9878
9986
|
}
|
|
9879
9987
|
},
|
|
9880
9988
|
requestBody: skillset,
|
|
9881
9989
|
queryParameters: [
|
|
9882
|
-
apiVersion
|
|
9990
|
+
apiVersion,
|
|
9883
9991
|
skipIndexerResetRequirementForCache,
|
|
9884
9992
|
disableCacheReprocessingChangeDetection
|
|
9885
9993
|
],
|
|
9886
|
-
urlParameters: [endpoint
|
|
9994
|
+
urlParameters: [endpoint, skillsetName],
|
|
9887
9995
|
headerParameters: [
|
|
9888
|
-
contentType
|
|
9889
|
-
accept
|
|
9890
|
-
xMsClientRequestId
|
|
9996
|
+
contentType,
|
|
9997
|
+
accept,
|
|
9998
|
+
xMsClientRequestId,
|
|
9891
9999
|
ifMatch,
|
|
9892
10000
|
ifNoneMatch,
|
|
9893
10001
|
prefer
|
|
@@ -9902,20 +10010,20 @@ const deleteOperationSpec$2 = {
|
|
|
9902
10010
|
204: {},
|
|
9903
10011
|
404: {},
|
|
9904
10012
|
default: {
|
|
9905
|
-
bodyMapper: SearchError
|
|
10013
|
+
bodyMapper: SearchError
|
|
9906
10014
|
}
|
|
9907
10015
|
},
|
|
9908
|
-
queryParameters: [apiVersion
|
|
9909
|
-
urlParameters: [endpoint
|
|
10016
|
+
queryParameters: [apiVersion],
|
|
10017
|
+
urlParameters: [endpoint, skillsetName],
|
|
9910
10018
|
headerParameters: [
|
|
9911
|
-
accept
|
|
9912
|
-
xMsClientRequestId
|
|
10019
|
+
accept,
|
|
10020
|
+
xMsClientRequestId,
|
|
9913
10021
|
ifMatch,
|
|
9914
10022
|
ifNoneMatch
|
|
9915
10023
|
],
|
|
9916
10024
|
serializer: serializer$3
|
|
9917
10025
|
};
|
|
9918
|
-
const getOperationSpec$
|
|
10026
|
+
const getOperationSpec$2 = {
|
|
9919
10027
|
path: "/skillsets('{skillsetName}')",
|
|
9920
10028
|
httpMethod: "GET",
|
|
9921
10029
|
responses: {
|
|
@@ -9923,12 +10031,12 @@ const getOperationSpec$3 = {
|
|
|
9923
10031
|
bodyMapper: SearchIndexerSkillset
|
|
9924
10032
|
},
|
|
9925
10033
|
default: {
|
|
9926
|
-
bodyMapper: SearchError
|
|
10034
|
+
bodyMapper: SearchError
|
|
9927
10035
|
}
|
|
9928
10036
|
},
|
|
9929
|
-
queryParameters: [apiVersion
|
|
9930
|
-
urlParameters: [endpoint
|
|
9931
|
-
headerParameters: [accept
|
|
10037
|
+
queryParameters: [apiVersion],
|
|
10038
|
+
urlParameters: [endpoint, skillsetName],
|
|
10039
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9932
10040
|
serializer: serializer$3
|
|
9933
10041
|
};
|
|
9934
10042
|
const listOperationSpec$2 = {
|
|
@@ -9939,12 +10047,12 @@ const listOperationSpec$2 = {
|
|
|
9939
10047
|
bodyMapper: ListSkillsetsResult
|
|
9940
10048
|
},
|
|
9941
10049
|
default: {
|
|
9942
|
-
bodyMapper: SearchError
|
|
10050
|
+
bodyMapper: SearchError
|
|
9943
10051
|
}
|
|
9944
10052
|
},
|
|
9945
|
-
queryParameters: [apiVersion
|
|
9946
|
-
urlParameters: [endpoint
|
|
9947
|
-
headerParameters: [accept
|
|
10053
|
+
queryParameters: [apiVersion, select],
|
|
10054
|
+
urlParameters: [endpoint],
|
|
10055
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9948
10056
|
serializer: serializer$3
|
|
9949
10057
|
};
|
|
9950
10058
|
const createOperationSpec$2 = {
|
|
@@ -9955,16 +10063,16 @@ const createOperationSpec$2 = {
|
|
|
9955
10063
|
bodyMapper: SearchIndexerSkillset
|
|
9956
10064
|
},
|
|
9957
10065
|
default: {
|
|
9958
|
-
bodyMapper: SearchError
|
|
10066
|
+
bodyMapper: SearchError
|
|
9959
10067
|
}
|
|
9960
10068
|
},
|
|
9961
10069
|
requestBody: skillset,
|
|
9962
|
-
queryParameters: [apiVersion
|
|
9963
|
-
urlParameters: [endpoint
|
|
10070
|
+
queryParameters: [apiVersion],
|
|
10071
|
+
urlParameters: [endpoint],
|
|
9964
10072
|
headerParameters: [
|
|
9965
|
-
contentType
|
|
9966
|
-
accept
|
|
9967
|
-
xMsClientRequestId
|
|
10073
|
+
contentType,
|
|
10074
|
+
accept,
|
|
10075
|
+
xMsClientRequestId
|
|
9968
10076
|
],
|
|
9969
10077
|
mediaType: "json",
|
|
9970
10078
|
serializer: serializer$3
|
|
@@ -9975,16 +10083,16 @@ const resetSkillsOperationSpec = {
|
|
|
9975
10083
|
responses: {
|
|
9976
10084
|
204: {},
|
|
9977
10085
|
default: {
|
|
9978
|
-
bodyMapper: SearchError
|
|
10086
|
+
bodyMapper: SearchError
|
|
9979
10087
|
}
|
|
9980
10088
|
},
|
|
9981
10089
|
requestBody: skillNames,
|
|
9982
|
-
queryParameters: [apiVersion
|
|
9983
|
-
urlParameters: [endpoint
|
|
10090
|
+
queryParameters: [apiVersion],
|
|
10091
|
+
urlParameters: [endpoint, skillsetName],
|
|
9984
10092
|
headerParameters: [
|
|
9985
|
-
contentType
|
|
9986
|
-
accept
|
|
9987
|
-
xMsClientRequestId
|
|
10093
|
+
contentType,
|
|
10094
|
+
accept,
|
|
10095
|
+
xMsClientRequestId
|
|
9988
10096
|
],
|
|
9989
10097
|
mediaType: "json",
|
|
9990
10098
|
serializer: serializer$3
|
|
@@ -10013,7 +10121,7 @@ class SynonymMapsImpl {
|
|
|
10013
10121
|
* @param options The options parameters.
|
|
10014
10122
|
*/
|
|
10015
10123
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
10016
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
10124
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
10017
10125
|
}
|
|
10018
10126
|
/**
|
|
10019
10127
|
* Deletes a synonym map.
|
|
@@ -10021,7 +10129,7 @@ class SynonymMapsImpl {
|
|
|
10021
10129
|
* @param options The options parameters.
|
|
10022
10130
|
*/
|
|
10023
10131
|
delete(synonymMapName, options) {
|
|
10024
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
10132
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
10025
10133
|
}
|
|
10026
10134
|
/**
|
|
10027
10135
|
* Retrieves a synonym map definition.
|
|
@@ -10029,14 +10137,14 @@ class SynonymMapsImpl {
|
|
|
10029
10137
|
* @param options The options parameters.
|
|
10030
10138
|
*/
|
|
10031
10139
|
get(synonymMapName, options) {
|
|
10032
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
10140
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
10033
10141
|
}
|
|
10034
10142
|
/**
|
|
10035
10143
|
* Lists all synonym maps available for a search service.
|
|
10036
10144
|
* @param options The options parameters.
|
|
10037
10145
|
*/
|
|
10038
10146
|
list(options) {
|
|
10039
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10147
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
10040
10148
|
}
|
|
10041
10149
|
/**
|
|
10042
10150
|
* Creates a new synonym map.
|
|
@@ -10044,12 +10152,12 @@ class SynonymMapsImpl {
|
|
|
10044
10152
|
* @param options The options parameters.
|
|
10045
10153
|
*/
|
|
10046
10154
|
create(synonymMap, options) {
|
|
10047
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
10155
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
10048
10156
|
}
|
|
10049
10157
|
}
|
|
10050
10158
|
// Operation Specifications
|
|
10051
|
-
const serializer$
|
|
10052
|
-
const createOrUpdateOperationSpec$
|
|
10159
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10160
|
+
const createOrUpdateOperationSpec$1 = {
|
|
10053
10161
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10054
10162
|
httpMethod: "PUT",
|
|
10055
10163
|
responses: {
|
|
@@ -10060,44 +10168,44 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
10060
10168
|
bodyMapper: SynonymMap
|
|
10061
10169
|
},
|
|
10062
10170
|
default: {
|
|
10063
|
-
bodyMapper: SearchError
|
|
10171
|
+
bodyMapper: SearchError
|
|
10064
10172
|
}
|
|
10065
10173
|
},
|
|
10066
10174
|
requestBody: synonymMap,
|
|
10067
|
-
queryParameters: [apiVersion
|
|
10068
|
-
urlParameters: [endpoint
|
|
10175
|
+
queryParameters: [apiVersion],
|
|
10176
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10069
10177
|
headerParameters: [
|
|
10070
|
-
contentType
|
|
10071
|
-
accept
|
|
10072
|
-
xMsClientRequestId
|
|
10178
|
+
contentType,
|
|
10179
|
+
accept,
|
|
10180
|
+
xMsClientRequestId,
|
|
10073
10181
|
ifMatch,
|
|
10074
10182
|
ifNoneMatch,
|
|
10075
10183
|
prefer
|
|
10076
10184
|
],
|
|
10077
10185
|
mediaType: "json",
|
|
10078
|
-
serializer: serializer$
|
|
10186
|
+
serializer: serializer$2
|
|
10079
10187
|
};
|
|
10080
|
-
const deleteOperationSpec$
|
|
10188
|
+
const deleteOperationSpec$1 = {
|
|
10081
10189
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10082
10190
|
httpMethod: "DELETE",
|
|
10083
10191
|
responses: {
|
|
10084
10192
|
204: {},
|
|
10085
10193
|
404: {},
|
|
10086
10194
|
default: {
|
|
10087
|
-
bodyMapper: SearchError
|
|
10195
|
+
bodyMapper: SearchError
|
|
10088
10196
|
}
|
|
10089
10197
|
},
|
|
10090
|
-
queryParameters: [apiVersion
|
|
10091
|
-
urlParameters: [endpoint
|
|
10198
|
+
queryParameters: [apiVersion],
|
|
10199
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10092
10200
|
headerParameters: [
|
|
10093
|
-
accept
|
|
10094
|
-
xMsClientRequestId
|
|
10201
|
+
accept,
|
|
10202
|
+
xMsClientRequestId,
|
|
10095
10203
|
ifMatch,
|
|
10096
10204
|
ifNoneMatch
|
|
10097
10205
|
],
|
|
10098
|
-
serializer: serializer$
|
|
10206
|
+
serializer: serializer$2
|
|
10099
10207
|
};
|
|
10100
|
-
const getOperationSpec$
|
|
10208
|
+
const getOperationSpec$1 = {
|
|
10101
10209
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10102
10210
|
httpMethod: "GET",
|
|
10103
10211
|
responses: {
|
|
@@ -10105,15 +10213,15 @@ const getOperationSpec$4 = {
|
|
|
10105
10213
|
bodyMapper: SynonymMap
|
|
10106
10214
|
},
|
|
10107
10215
|
default: {
|
|
10108
|
-
bodyMapper: SearchError
|
|
10216
|
+
bodyMapper: SearchError
|
|
10109
10217
|
}
|
|
10110
10218
|
},
|
|
10111
|
-
queryParameters: [apiVersion
|
|
10112
|
-
urlParameters: [endpoint
|
|
10113
|
-
headerParameters: [accept
|
|
10114
|
-
serializer: serializer$
|
|
10219
|
+
queryParameters: [apiVersion],
|
|
10220
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10221
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10222
|
+
serializer: serializer$2
|
|
10115
10223
|
};
|
|
10116
|
-
const listOperationSpec$
|
|
10224
|
+
const listOperationSpec$1 = {
|
|
10117
10225
|
path: "/synonymmaps",
|
|
10118
10226
|
httpMethod: "GET",
|
|
10119
10227
|
responses: {
|
|
@@ -10121,15 +10229,15 @@ const listOperationSpec$3 = {
|
|
|
10121
10229
|
bodyMapper: ListSynonymMapsResult
|
|
10122
10230
|
},
|
|
10123
10231
|
default: {
|
|
10124
|
-
bodyMapper: SearchError
|
|
10232
|
+
bodyMapper: SearchError
|
|
10125
10233
|
}
|
|
10126
10234
|
},
|
|
10127
|
-
queryParameters: [apiVersion
|
|
10128
|
-
urlParameters: [endpoint
|
|
10129
|
-
headerParameters: [accept
|
|
10130
|
-
serializer: serializer$
|
|
10235
|
+
queryParameters: [apiVersion, select],
|
|
10236
|
+
urlParameters: [endpoint],
|
|
10237
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10238
|
+
serializer: serializer$2
|
|
10131
10239
|
};
|
|
10132
|
-
const createOperationSpec$
|
|
10240
|
+
const createOperationSpec$1 = {
|
|
10133
10241
|
path: "/synonymmaps",
|
|
10134
10242
|
httpMethod: "POST",
|
|
10135
10243
|
responses: {
|
|
@@ -10137,19 +10245,19 @@ const createOperationSpec$3 = {
|
|
|
10137
10245
|
bodyMapper: SynonymMap
|
|
10138
10246
|
},
|
|
10139
10247
|
default: {
|
|
10140
|
-
bodyMapper: SearchError
|
|
10248
|
+
bodyMapper: SearchError
|
|
10141
10249
|
}
|
|
10142
10250
|
},
|
|
10143
10251
|
requestBody: synonymMap,
|
|
10144
|
-
queryParameters: [apiVersion
|
|
10145
|
-
urlParameters: [endpoint
|
|
10252
|
+
queryParameters: [apiVersion],
|
|
10253
|
+
urlParameters: [endpoint],
|
|
10146
10254
|
headerParameters: [
|
|
10147
|
-
contentType
|
|
10148
|
-
accept
|
|
10149
|
-
xMsClientRequestId
|
|
10255
|
+
contentType,
|
|
10256
|
+
accept,
|
|
10257
|
+
xMsClientRequestId
|
|
10150
10258
|
],
|
|
10151
10259
|
mediaType: "json",
|
|
10152
|
-
serializer: serializer$
|
|
10260
|
+
serializer: serializer$2
|
|
10153
10261
|
};
|
|
10154
10262
|
|
|
10155
10263
|
/*
|
|
@@ -10174,14 +10282,14 @@ class IndexesImpl {
|
|
|
10174
10282
|
* @param options The options parameters.
|
|
10175
10283
|
*/
|
|
10176
10284
|
create(index, options) {
|
|
10177
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec
|
|
10285
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
10178
10286
|
}
|
|
10179
10287
|
/**
|
|
10180
10288
|
* Lists all indexes available for a search service.
|
|
10181
10289
|
* @param options The options parameters.
|
|
10182
10290
|
*/
|
|
10183
10291
|
list(options) {
|
|
10184
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
10292
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
10185
10293
|
}
|
|
10186
10294
|
/**
|
|
10187
10295
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -10190,7 +10298,7 @@ class IndexesImpl {
|
|
|
10190
10298
|
* @param options The options parameters.
|
|
10191
10299
|
*/
|
|
10192
10300
|
createOrUpdate(indexName, index, options) {
|
|
10193
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec
|
|
10301
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
10194
10302
|
}
|
|
10195
10303
|
/**
|
|
10196
10304
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -10200,7 +10308,7 @@ class IndexesImpl {
|
|
|
10200
10308
|
* @param options The options parameters.
|
|
10201
10309
|
*/
|
|
10202
10310
|
delete(indexName, options) {
|
|
10203
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec
|
|
10311
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
10204
10312
|
}
|
|
10205
10313
|
/**
|
|
10206
10314
|
* Retrieves an index definition.
|
|
@@ -10208,7 +10316,7 @@ class IndexesImpl {
|
|
|
10208
10316
|
* @param options The options parameters.
|
|
10209
10317
|
*/
|
|
10210
10318
|
get(indexName, options) {
|
|
10211
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec
|
|
10319
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
10212
10320
|
}
|
|
10213
10321
|
/**
|
|
10214
10322
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10229,8 +10337,8 @@ class IndexesImpl {
|
|
|
10229
10337
|
}
|
|
10230
10338
|
}
|
|
10231
10339
|
// Operation Specifications
|
|
10232
|
-
const serializer$
|
|
10233
|
-
const createOperationSpec
|
|
10340
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10341
|
+
const createOperationSpec = {
|
|
10234
10342
|
path: "/indexes",
|
|
10235
10343
|
httpMethod: "POST",
|
|
10236
10344
|
responses: {
|
|
@@ -10238,21 +10346,21 @@ const createOperationSpec$4 = {
|
|
|
10238
10346
|
bodyMapper: SearchIndex
|
|
10239
10347
|
},
|
|
10240
10348
|
default: {
|
|
10241
|
-
bodyMapper: SearchError
|
|
10349
|
+
bodyMapper: SearchError
|
|
10242
10350
|
}
|
|
10243
10351
|
},
|
|
10244
10352
|
requestBody: index,
|
|
10245
|
-
queryParameters: [apiVersion
|
|
10246
|
-
urlParameters: [endpoint
|
|
10353
|
+
queryParameters: [apiVersion],
|
|
10354
|
+
urlParameters: [endpoint],
|
|
10247
10355
|
headerParameters: [
|
|
10248
|
-
contentType
|
|
10249
|
-
accept
|
|
10250
|
-
xMsClientRequestId
|
|
10356
|
+
contentType,
|
|
10357
|
+
accept,
|
|
10358
|
+
xMsClientRequestId
|
|
10251
10359
|
],
|
|
10252
10360
|
mediaType: "json",
|
|
10253
|
-
serializer: serializer$
|
|
10361
|
+
serializer: serializer$1
|
|
10254
10362
|
};
|
|
10255
|
-
const listOperationSpec
|
|
10363
|
+
const listOperationSpec = {
|
|
10256
10364
|
path: "/indexes",
|
|
10257
10365
|
httpMethod: "GET",
|
|
10258
10366
|
responses: {
|
|
@@ -10260,15 +10368,15 @@ const listOperationSpec$4 = {
|
|
|
10260
10368
|
bodyMapper: ListIndexesResult
|
|
10261
10369
|
},
|
|
10262
10370
|
default: {
|
|
10263
|
-
bodyMapper: SearchError
|
|
10371
|
+
bodyMapper: SearchError
|
|
10264
10372
|
}
|
|
10265
10373
|
},
|
|
10266
|
-
queryParameters: [apiVersion
|
|
10267
|
-
urlParameters: [endpoint
|
|
10268
|
-
headerParameters: [accept
|
|
10269
|
-
serializer: serializer$
|
|
10374
|
+
queryParameters: [apiVersion, select],
|
|
10375
|
+
urlParameters: [endpoint],
|
|
10376
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10377
|
+
serializer: serializer$1
|
|
10270
10378
|
};
|
|
10271
|
-
const createOrUpdateOperationSpec
|
|
10379
|
+
const createOrUpdateOperationSpec = {
|
|
10272
10380
|
path: "/indexes('{indexName}')",
|
|
10273
10381
|
httpMethod: "PUT",
|
|
10274
10382
|
responses: {
|
|
@@ -10279,44 +10387,44 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10279
10387
|
bodyMapper: SearchIndex
|
|
10280
10388
|
},
|
|
10281
10389
|
default: {
|
|
10282
|
-
bodyMapper: SearchError
|
|
10390
|
+
bodyMapper: SearchError
|
|
10283
10391
|
}
|
|
10284
10392
|
},
|
|
10285
10393
|
requestBody: index,
|
|
10286
|
-
queryParameters: [apiVersion
|
|
10287
|
-
urlParameters: [endpoint
|
|
10394
|
+
queryParameters: [apiVersion, allowIndexDowntime],
|
|
10395
|
+
urlParameters: [endpoint, indexName],
|
|
10288
10396
|
headerParameters: [
|
|
10289
|
-
contentType
|
|
10290
|
-
accept
|
|
10291
|
-
xMsClientRequestId
|
|
10397
|
+
contentType,
|
|
10398
|
+
accept,
|
|
10399
|
+
xMsClientRequestId,
|
|
10292
10400
|
ifMatch,
|
|
10293
10401
|
ifNoneMatch,
|
|
10294
10402
|
prefer
|
|
10295
10403
|
],
|
|
10296
10404
|
mediaType: "json",
|
|
10297
|
-
serializer: serializer$
|
|
10405
|
+
serializer: serializer$1
|
|
10298
10406
|
};
|
|
10299
|
-
const deleteOperationSpec
|
|
10407
|
+
const deleteOperationSpec = {
|
|
10300
10408
|
path: "/indexes('{indexName}')",
|
|
10301
10409
|
httpMethod: "DELETE",
|
|
10302
10410
|
responses: {
|
|
10303
10411
|
204: {},
|
|
10304
10412
|
404: {},
|
|
10305
10413
|
default: {
|
|
10306
|
-
bodyMapper: SearchError
|
|
10414
|
+
bodyMapper: SearchError
|
|
10307
10415
|
}
|
|
10308
10416
|
},
|
|
10309
|
-
queryParameters: [apiVersion
|
|
10310
|
-
urlParameters: [endpoint
|
|
10417
|
+
queryParameters: [apiVersion],
|
|
10418
|
+
urlParameters: [endpoint, indexName],
|
|
10311
10419
|
headerParameters: [
|
|
10312
|
-
accept
|
|
10313
|
-
xMsClientRequestId
|
|
10420
|
+
accept,
|
|
10421
|
+
xMsClientRequestId,
|
|
10314
10422
|
ifMatch,
|
|
10315
10423
|
ifNoneMatch
|
|
10316
10424
|
],
|
|
10317
|
-
serializer: serializer$
|
|
10425
|
+
serializer: serializer$1
|
|
10318
10426
|
};
|
|
10319
|
-
const getOperationSpec
|
|
10427
|
+
const getOperationSpec = {
|
|
10320
10428
|
path: "/indexes('{indexName}')",
|
|
10321
10429
|
httpMethod: "GET",
|
|
10322
10430
|
responses: {
|
|
@@ -10324,13 +10432,13 @@ const getOperationSpec$5 = {
|
|
|
10324
10432
|
bodyMapper: SearchIndex
|
|
10325
10433
|
},
|
|
10326
10434
|
default: {
|
|
10327
|
-
bodyMapper: SearchError
|
|
10435
|
+
bodyMapper: SearchError
|
|
10328
10436
|
}
|
|
10329
10437
|
},
|
|
10330
|
-
queryParameters: [apiVersion
|
|
10331
|
-
urlParameters: [endpoint
|
|
10332
|
-
headerParameters: [accept
|
|
10333
|
-
serializer: serializer$
|
|
10438
|
+
queryParameters: [apiVersion],
|
|
10439
|
+
urlParameters: [endpoint, indexName],
|
|
10440
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10441
|
+
serializer: serializer$1
|
|
10334
10442
|
};
|
|
10335
10443
|
const getStatisticsOperationSpec = {
|
|
10336
10444
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -10340,13 +10448,13 @@ const getStatisticsOperationSpec = {
|
|
|
10340
10448
|
bodyMapper: GetIndexStatisticsResult
|
|
10341
10449
|
},
|
|
10342
10450
|
default: {
|
|
10343
|
-
bodyMapper: SearchError
|
|
10451
|
+
bodyMapper: SearchError
|
|
10344
10452
|
}
|
|
10345
10453
|
},
|
|
10346
|
-
queryParameters: [apiVersion
|
|
10347
|
-
urlParameters: [endpoint
|
|
10348
|
-
headerParameters: [accept
|
|
10349
|
-
serializer: serializer$
|
|
10454
|
+
queryParameters: [apiVersion],
|
|
10455
|
+
urlParameters: [endpoint, indexName],
|
|
10456
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10457
|
+
serializer: serializer$1
|
|
10350
10458
|
};
|
|
10351
10459
|
const analyzeOperationSpec = {
|
|
10352
10460
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -10356,19 +10464,19 @@ const analyzeOperationSpec = {
|
|
|
10356
10464
|
bodyMapper: AnalyzeResult
|
|
10357
10465
|
},
|
|
10358
10466
|
default: {
|
|
10359
|
-
bodyMapper: SearchError
|
|
10467
|
+
bodyMapper: SearchError
|
|
10360
10468
|
}
|
|
10361
10469
|
},
|
|
10362
10470
|
requestBody: request,
|
|
10363
|
-
queryParameters: [apiVersion
|
|
10364
|
-
urlParameters: [endpoint
|
|
10471
|
+
queryParameters: [apiVersion],
|
|
10472
|
+
urlParameters: [endpoint, indexName],
|
|
10365
10473
|
headerParameters: [
|
|
10366
|
-
contentType
|
|
10367
|
-
accept
|
|
10368
|
-
xMsClientRequestId
|
|
10474
|
+
contentType,
|
|
10475
|
+
accept,
|
|
10476
|
+
xMsClientRequestId
|
|
10369
10477
|
],
|
|
10370
10478
|
mediaType: "json",
|
|
10371
|
-
serializer: serializer$
|
|
10479
|
+
serializer: serializer$1
|
|
10372
10480
|
};
|
|
10373
10481
|
|
|
10374
10482
|
/*
|
|
@@ -10379,7 +10487,7 @@ const analyzeOperationSpec = {
|
|
|
10379
10487
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10380
10488
|
*/
|
|
10381
10489
|
/** @internal */
|
|
10382
|
-
class SearchServiceClientContext extends
|
|
10490
|
+
class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
|
|
10383
10491
|
/**
|
|
10384
10492
|
* Initializes a new instance of the SearchServiceClientContext class.
|
|
10385
10493
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -10400,7 +10508,7 @@ class SearchServiceClientContext extends coreClient.ServiceClient {
|
|
|
10400
10508
|
const defaults = {
|
|
10401
10509
|
requestContentType: "application/json; charset=utf-8"
|
|
10402
10510
|
};
|
|
10403
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
10511
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
|
|
10404
10512
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10405
10513
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10406
10514
|
: `${packageDetails}`;
|
|
@@ -10446,7 +10554,7 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10446
10554
|
}
|
|
10447
10555
|
}
|
|
10448
10556
|
// Operation Specifications
|
|
10449
|
-
const serializer
|
|
10557
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10450
10558
|
const getServiceStatisticsOperationSpec = {
|
|
10451
10559
|
path: "/servicestats",
|
|
10452
10560
|
httpMethod: "GET",
|
|
@@ -10455,13 +10563,13 @@ const getServiceStatisticsOperationSpec = {
|
|
|
10455
10563
|
bodyMapper: ServiceStatistics
|
|
10456
10564
|
},
|
|
10457
10565
|
default: {
|
|
10458
|
-
bodyMapper: SearchError
|
|
10566
|
+
bodyMapper: SearchError
|
|
10459
10567
|
}
|
|
10460
10568
|
},
|
|
10461
|
-
queryParameters: [apiVersion
|
|
10462
|
-
urlParameters: [endpoint
|
|
10463
|
-
headerParameters: [accept
|
|
10464
|
-
serializer
|
|
10569
|
+
queryParameters: [apiVersion],
|
|
10570
|
+
urlParameters: [endpoint],
|
|
10571
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10572
|
+
serializer
|
|
10465
10573
|
};
|
|
10466
10574
|
|
|
10467
10575
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -10491,7 +10599,12 @@ class SearchIndexClient {
|
|
|
10491
10599
|
/**
|
|
10492
10600
|
* The API version to use when communicating with the service.
|
|
10493
10601
|
*/
|
|
10494
|
-
this.
|
|
10602
|
+
this.serviceVersion = defaultServiceVersion;
|
|
10603
|
+
/**
|
|
10604
|
+
* The API version to use when communicating with the service.
|
|
10605
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
10606
|
+
*/
|
|
10607
|
+
this.apiVersion = defaultServiceVersion;
|
|
10495
10608
|
this.endpoint = endpoint;
|
|
10496
10609
|
this.credential = credential;
|
|
10497
10610
|
this.options = options;
|
|
@@ -10514,18 +10627,25 @@ class SearchIndexClient {
|
|
|
10514
10627
|
"OData-MaxVersion",
|
|
10515
10628
|
"OData-Version",
|
|
10516
10629
|
"Prefer",
|
|
10517
|
-
"throttle-reason"
|
|
10518
|
-
]
|
|
10519
|
-
}
|
|
10630
|
+
"throttle-reason",
|
|
10631
|
+
],
|
|
10632
|
+
},
|
|
10520
10633
|
});
|
|
10521
|
-
let apiVersion = this.apiVersion;
|
|
10522
10634
|
if (options.apiVersion) {
|
|
10523
|
-
if (!
|
|
10635
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
10524
10636
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
10525
10637
|
}
|
|
10526
|
-
|
|
10638
|
+
this.serviceVersion = options.apiVersion;
|
|
10639
|
+
this.apiVersion = options.apiVersion;
|
|
10527
10640
|
}
|
|
10528
|
-
|
|
10641
|
+
if (options.serviceVersion) {
|
|
10642
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
10643
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
10644
|
+
}
|
|
10645
|
+
this.serviceVersion = options.serviceVersion;
|
|
10646
|
+
this.apiVersion = options.serviceVersion;
|
|
10647
|
+
}
|
|
10648
|
+
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
10529
10649
|
if (coreAuth.isTokenCredential(credential)) {
|
|
10530
10650
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
10531
10651
|
}
|
|
@@ -10545,7 +10665,7 @@ class SearchIndexClient {
|
|
|
10545
10665
|
catch (e) {
|
|
10546
10666
|
span.setStatus({
|
|
10547
10667
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10548
|
-
message: e.message
|
|
10668
|
+
message: e.message,
|
|
10549
10669
|
});
|
|
10550
10670
|
throw e;
|
|
10551
10671
|
}
|
|
@@ -10587,7 +10707,7 @@ class SearchIndexClient {
|
|
|
10587
10707
|
},
|
|
10588
10708
|
byPage: () => {
|
|
10589
10709
|
return this.listIndexesPage(options);
|
|
10590
|
-
}
|
|
10710
|
+
},
|
|
10591
10711
|
};
|
|
10592
10712
|
}
|
|
10593
10713
|
listIndexesNamesPage(options = {}) {
|
|
@@ -10601,7 +10721,7 @@ class SearchIndexClient {
|
|
|
10601
10721
|
catch (e) {
|
|
10602
10722
|
span.setStatus({
|
|
10603
10723
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10604
|
-
message: e.message
|
|
10724
|
+
message: e.message,
|
|
10605
10725
|
});
|
|
10606
10726
|
throw e;
|
|
10607
10727
|
}
|
|
@@ -10643,7 +10763,7 @@ class SearchIndexClient {
|
|
|
10643
10763
|
},
|
|
10644
10764
|
byPage: () => {
|
|
10645
10765
|
return this.listIndexesNamesPage(options);
|
|
10646
|
-
}
|
|
10766
|
+
},
|
|
10647
10767
|
};
|
|
10648
10768
|
}
|
|
10649
10769
|
/**
|
|
@@ -10659,7 +10779,7 @@ class SearchIndexClient {
|
|
|
10659
10779
|
catch (e) {
|
|
10660
10780
|
span.setStatus({
|
|
10661
10781
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10662
|
-
message: e.message
|
|
10782
|
+
message: e.message,
|
|
10663
10783
|
});
|
|
10664
10784
|
throw e;
|
|
10665
10785
|
}
|
|
@@ -10680,7 +10800,7 @@ class SearchIndexClient {
|
|
|
10680
10800
|
catch (e) {
|
|
10681
10801
|
span.setStatus({
|
|
10682
10802
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10683
|
-
message: e.message
|
|
10803
|
+
message: e.message,
|
|
10684
10804
|
});
|
|
10685
10805
|
throw e;
|
|
10686
10806
|
}
|
|
@@ -10702,7 +10822,7 @@ class SearchIndexClient {
|
|
|
10702
10822
|
catch (e) {
|
|
10703
10823
|
span.setStatus({
|
|
10704
10824
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10705
|
-
message: e.message
|
|
10825
|
+
message: e.message,
|
|
10706
10826
|
});
|
|
10707
10827
|
throw e;
|
|
10708
10828
|
}
|
|
@@ -10724,7 +10844,7 @@ class SearchIndexClient {
|
|
|
10724
10844
|
catch (e) {
|
|
10725
10845
|
span.setStatus({
|
|
10726
10846
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10727
|
-
message: e.message
|
|
10847
|
+
message: e.message,
|
|
10728
10848
|
});
|
|
10729
10849
|
throw e;
|
|
10730
10850
|
}
|
|
@@ -10746,7 +10866,7 @@ class SearchIndexClient {
|
|
|
10746
10866
|
catch (e) {
|
|
10747
10867
|
span.setStatus({
|
|
10748
10868
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10749
|
-
message: e.message
|
|
10869
|
+
message: e.message,
|
|
10750
10870
|
});
|
|
10751
10871
|
throw e;
|
|
10752
10872
|
}
|
|
@@ -10768,7 +10888,7 @@ class SearchIndexClient {
|
|
|
10768
10888
|
catch (e) {
|
|
10769
10889
|
span.setStatus({
|
|
10770
10890
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10771
|
-
message: e.message
|
|
10891
|
+
message: e.message,
|
|
10772
10892
|
});
|
|
10773
10893
|
throw e;
|
|
10774
10894
|
}
|
|
@@ -10791,7 +10911,7 @@ class SearchIndexClient {
|
|
|
10791
10911
|
catch (e) {
|
|
10792
10912
|
span.setStatus({
|
|
10793
10913
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10794
|
-
message: e.message
|
|
10914
|
+
message: e.message,
|
|
10795
10915
|
});
|
|
10796
10916
|
throw e;
|
|
10797
10917
|
}
|
|
@@ -10814,7 +10934,7 @@ class SearchIndexClient {
|
|
|
10814
10934
|
catch (e) {
|
|
10815
10935
|
span.setStatus({
|
|
10816
10936
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10817
|
-
message: e.message
|
|
10937
|
+
message: e.message,
|
|
10818
10938
|
});
|
|
10819
10939
|
throw e;
|
|
10820
10940
|
}
|
|
@@ -10837,7 +10957,7 @@ class SearchIndexClient {
|
|
|
10837
10957
|
catch (e) {
|
|
10838
10958
|
span.setStatus({
|
|
10839
10959
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10840
|
-
message: e.message
|
|
10960
|
+
message: e.message,
|
|
10841
10961
|
});
|
|
10842
10962
|
throw e;
|
|
10843
10963
|
}
|
|
@@ -10864,7 +10984,7 @@ class SearchIndexClient {
|
|
|
10864
10984
|
catch (e) {
|
|
10865
10985
|
span.setStatus({
|
|
10866
10986
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10867
|
-
message: e.message
|
|
10987
|
+
message: e.message,
|
|
10868
10988
|
});
|
|
10869
10989
|
throw e;
|
|
10870
10990
|
}
|
|
@@ -10887,7 +11007,7 @@ class SearchIndexClient {
|
|
|
10887
11007
|
catch (e) {
|
|
10888
11008
|
span.setStatus({
|
|
10889
11009
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10890
|
-
message: e.message
|
|
11010
|
+
message: e.message,
|
|
10891
11011
|
});
|
|
10892
11012
|
throw e;
|
|
10893
11013
|
}
|
|
@@ -10906,7 +11026,7 @@ class SearchIndexClient {
|
|
|
10906
11026
|
const operationOptions = {
|
|
10907
11027
|
abortSignal,
|
|
10908
11028
|
requestOptions,
|
|
10909
|
-
tracingOptions
|
|
11029
|
+
tracingOptions,
|
|
10910
11030
|
};
|
|
10911
11031
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
10912
11032
|
try {
|
|
@@ -10916,7 +11036,7 @@ class SearchIndexClient {
|
|
|
10916
11036
|
catch (e) {
|
|
10917
11037
|
span.setStatus({
|
|
10918
11038
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10919
|
-
message: e.message
|
|
11039
|
+
message: e.message,
|
|
10920
11040
|
});
|
|
10921
11041
|
throw e;
|
|
10922
11042
|
}
|
|
@@ -10937,7 +11057,7 @@ class SearchIndexClient {
|
|
|
10937
11057
|
catch (e) {
|
|
10938
11058
|
span.setStatus({
|
|
10939
11059
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10940
|
-
message: e.message
|
|
11060
|
+
message: e.message,
|
|
10941
11061
|
});
|
|
10942
11062
|
throw e;
|
|
10943
11063
|
}
|
|
@@ -10951,7 +11071,7 @@ class SearchIndexClient {
|
|
|
10951
11071
|
* @param options - SearchClient Options
|
|
10952
11072
|
*/
|
|
10953
11073
|
getSearchClient(indexName, options) {
|
|
10954
|
-
return new SearchClient
|
|
11074
|
+
return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
|
|
10955
11075
|
}
|
|
10956
11076
|
}
|
|
10957
11077
|
|
|
@@ -10982,7 +11102,12 @@ class SearchIndexerClient {
|
|
|
10982
11102
|
/**
|
|
10983
11103
|
* The API version to use when communicating with the service.
|
|
10984
11104
|
*/
|
|
10985
|
-
this.
|
|
11105
|
+
this.serviceVersion = defaultServiceVersion;
|
|
11106
|
+
/**
|
|
11107
|
+
* The API version to use when communicating with the service.
|
|
11108
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
11109
|
+
*/
|
|
11110
|
+
this.apiVersion = defaultServiceVersion;
|
|
10986
11111
|
this.endpoint = endpoint;
|
|
10987
11112
|
const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;
|
|
10988
11113
|
if (!options.userAgentOptions) {
|
|
@@ -11003,18 +11128,25 @@ class SearchIndexerClient {
|
|
|
11003
11128
|
"OData-MaxVersion",
|
|
11004
11129
|
"OData-Version",
|
|
11005
11130
|
"Prefer",
|
|
11006
|
-
"throttle-reason"
|
|
11007
|
-
]
|
|
11008
|
-
}
|
|
11131
|
+
"throttle-reason",
|
|
11132
|
+
],
|
|
11133
|
+
},
|
|
11009
11134
|
});
|
|
11010
|
-
let apiVersion = this.apiVersion;
|
|
11011
11135
|
if (options.apiVersion) {
|
|
11012
|
-
if (!
|
|
11136
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
11013
11137
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
11014
11138
|
}
|
|
11015
|
-
|
|
11139
|
+
this.serviceVersion = options.apiVersion;
|
|
11140
|
+
this.apiVersion = options.apiVersion;
|
|
11016
11141
|
}
|
|
11017
|
-
|
|
11142
|
+
if (options.serviceVersion) {
|
|
11143
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
11144
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
11145
|
+
}
|
|
11146
|
+
this.serviceVersion = options.serviceVersion;
|
|
11147
|
+
this.apiVersion = options.serviceVersion;
|
|
11148
|
+
}
|
|
11149
|
+
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
11018
11150
|
if (coreAuth.isTokenCredential(credential)) {
|
|
11019
11151
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
11020
11152
|
}
|
|
@@ -11036,7 +11168,7 @@ class SearchIndexerClient {
|
|
|
11036
11168
|
catch (e) {
|
|
11037
11169
|
span.setStatus({
|
|
11038
11170
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11039
|
-
message: e.message
|
|
11171
|
+
message: e.message,
|
|
11040
11172
|
});
|
|
11041
11173
|
throw e;
|
|
11042
11174
|
}
|
|
@@ -11057,7 +11189,7 @@ class SearchIndexerClient {
|
|
|
11057
11189
|
catch (e) {
|
|
11058
11190
|
span.setStatus({
|
|
11059
11191
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11060
|
-
message: e.message
|
|
11192
|
+
message: e.message,
|
|
11061
11193
|
});
|
|
11062
11194
|
throw e;
|
|
11063
11195
|
}
|
|
@@ -11078,7 +11210,7 @@ class SearchIndexerClient {
|
|
|
11078
11210
|
catch (e) {
|
|
11079
11211
|
span.setStatus({
|
|
11080
11212
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11081
|
-
message: e.message
|
|
11213
|
+
message: e.message,
|
|
11082
11214
|
});
|
|
11083
11215
|
throw e;
|
|
11084
11216
|
}
|
|
@@ -11099,7 +11231,7 @@ class SearchIndexerClient {
|
|
|
11099
11231
|
catch (e) {
|
|
11100
11232
|
span.setStatus({
|
|
11101
11233
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11102
|
-
message: e.message
|
|
11234
|
+
message: e.message,
|
|
11103
11235
|
});
|
|
11104
11236
|
throw e;
|
|
11105
11237
|
}
|
|
@@ -11120,7 +11252,7 @@ class SearchIndexerClient {
|
|
|
11120
11252
|
catch (e) {
|
|
11121
11253
|
span.setStatus({
|
|
11122
11254
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11123
|
-
message: e.message
|
|
11255
|
+
message: e.message,
|
|
11124
11256
|
});
|
|
11125
11257
|
throw e;
|
|
11126
11258
|
}
|
|
@@ -11141,7 +11273,7 @@ class SearchIndexerClient {
|
|
|
11141
11273
|
catch (e) {
|
|
11142
11274
|
span.setStatus({
|
|
11143
11275
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11144
|
-
message: e.message
|
|
11276
|
+
message: e.message,
|
|
11145
11277
|
});
|
|
11146
11278
|
throw e;
|
|
11147
11279
|
}
|
|
@@ -11163,7 +11295,7 @@ class SearchIndexerClient {
|
|
|
11163
11295
|
catch (e) {
|
|
11164
11296
|
span.setStatus({
|
|
11165
11297
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11166
|
-
message: e.message
|
|
11298
|
+
message: e.message,
|
|
11167
11299
|
});
|
|
11168
11300
|
throw e;
|
|
11169
11301
|
}
|
|
@@ -11185,7 +11317,7 @@ class SearchIndexerClient {
|
|
|
11185
11317
|
catch (e) {
|
|
11186
11318
|
span.setStatus({
|
|
11187
11319
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11188
|
-
message: e.message
|
|
11320
|
+
message: e.message,
|
|
11189
11321
|
});
|
|
11190
11322
|
throw e;
|
|
11191
11323
|
}
|
|
@@ -11207,7 +11339,7 @@ class SearchIndexerClient {
|
|
|
11207
11339
|
catch (e) {
|
|
11208
11340
|
span.setStatus({
|
|
11209
11341
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11210
|
-
message: e.message
|
|
11342
|
+
message: e.message,
|
|
11211
11343
|
});
|
|
11212
11344
|
throw e;
|
|
11213
11345
|
}
|
|
@@ -11229,7 +11361,7 @@ class SearchIndexerClient {
|
|
|
11229
11361
|
catch (e) {
|
|
11230
11362
|
span.setStatus({
|
|
11231
11363
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11232
|
-
message: e.message
|
|
11364
|
+
message: e.message,
|
|
11233
11365
|
});
|
|
11234
11366
|
throw e;
|
|
11235
11367
|
}
|
|
@@ -11251,7 +11383,7 @@ class SearchIndexerClient {
|
|
|
11251
11383
|
catch (e) {
|
|
11252
11384
|
span.setStatus({
|
|
11253
11385
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11254
|
-
message: e.message
|
|
11386
|
+
message: e.message,
|
|
11255
11387
|
});
|
|
11256
11388
|
throw e;
|
|
11257
11389
|
}
|
|
@@ -11273,7 +11405,7 @@ class SearchIndexerClient {
|
|
|
11273
11405
|
catch (e) {
|
|
11274
11406
|
span.setStatus({
|
|
11275
11407
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11276
|
-
message: e.message
|
|
11408
|
+
message: e.message,
|
|
11277
11409
|
});
|
|
11278
11410
|
throw e;
|
|
11279
11411
|
}
|
|
@@ -11296,7 +11428,7 @@ class SearchIndexerClient {
|
|
|
11296
11428
|
catch (e) {
|
|
11297
11429
|
span.setStatus({
|
|
11298
11430
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11299
|
-
message: e.message
|
|
11431
|
+
message: e.message,
|
|
11300
11432
|
});
|
|
11301
11433
|
throw e;
|
|
11302
11434
|
}
|
|
@@ -11319,7 +11451,7 @@ class SearchIndexerClient {
|
|
|
11319
11451
|
catch (e) {
|
|
11320
11452
|
span.setStatus({
|
|
11321
11453
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11322
|
-
message: e.message
|
|
11454
|
+
message: e.message,
|
|
11323
11455
|
});
|
|
11324
11456
|
throw e;
|
|
11325
11457
|
}
|
|
@@ -11342,7 +11474,7 @@ class SearchIndexerClient {
|
|
|
11342
11474
|
catch (e) {
|
|
11343
11475
|
span.setStatus({
|
|
11344
11476
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11345
|
-
message: e.message
|
|
11477
|
+
message: e.message,
|
|
11346
11478
|
});
|
|
11347
11479
|
throw e;
|
|
11348
11480
|
}
|
|
@@ -11369,7 +11501,7 @@ class SearchIndexerClient {
|
|
|
11369
11501
|
catch (e) {
|
|
11370
11502
|
span.setStatus({
|
|
11371
11503
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11372
|
-
message: e.message
|
|
11504
|
+
message: e.message,
|
|
11373
11505
|
});
|
|
11374
11506
|
throw e;
|
|
11375
11507
|
}
|
|
@@ -11396,7 +11528,7 @@ class SearchIndexerClient {
|
|
|
11396
11528
|
catch (e) {
|
|
11397
11529
|
span.setStatus({
|
|
11398
11530
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11399
|
-
message: e.message
|
|
11531
|
+
message: e.message,
|
|
11400
11532
|
});
|
|
11401
11533
|
throw e;
|
|
11402
11534
|
}
|
|
@@ -11423,7 +11555,7 @@ class SearchIndexerClient {
|
|
|
11423
11555
|
catch (e) {
|
|
11424
11556
|
span.setStatus({
|
|
11425
11557
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11426
|
-
message: e.message
|
|
11558
|
+
message: e.message,
|
|
11427
11559
|
});
|
|
11428
11560
|
throw e;
|
|
11429
11561
|
}
|
|
@@ -11445,7 +11577,7 @@ class SearchIndexerClient {
|
|
|
11445
11577
|
catch (e) {
|
|
11446
11578
|
span.setStatus({
|
|
11447
11579
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11448
|
-
message: e.message
|
|
11580
|
+
message: e.message,
|
|
11449
11581
|
});
|
|
11450
11582
|
throw e;
|
|
11451
11583
|
}
|
|
@@ -11466,7 +11598,7 @@ class SearchIndexerClient {
|
|
|
11466
11598
|
catch (e) {
|
|
11467
11599
|
span.setStatus({
|
|
11468
11600
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11469
|
-
message: e.message
|
|
11601
|
+
message: e.message,
|
|
11470
11602
|
});
|
|
11471
11603
|
throw e;
|
|
11472
11604
|
}
|
|
@@ -11487,7 +11619,7 @@ class SearchIndexerClient {
|
|
|
11487
11619
|
catch (e) {
|
|
11488
11620
|
span.setStatus({
|
|
11489
11621
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11490
|
-
message: e.message
|
|
11622
|
+
message: e.message,
|
|
11491
11623
|
});
|
|
11492
11624
|
throw e;
|
|
11493
11625
|
}
|
|
@@ -11505,13 +11637,13 @@ class SearchIndexerClient {
|
|
|
11505
11637
|
try {
|
|
11506
11638
|
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
11507
11639
|
documentKeys: updatedOptions.documentKeys,
|
|
11508
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds
|
|
11640
|
+
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
11509
11641
|
} }));
|
|
11510
11642
|
}
|
|
11511
11643
|
catch (e) {
|
|
11512
11644
|
span.setStatus({
|
|
11513
11645
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11514
|
-
message: e.message
|
|
11646
|
+
message: e.message,
|
|
11515
11647
|
});
|
|
11516
11648
|
throw e;
|
|
11517
11649
|
}
|
|
@@ -11533,7 +11665,7 @@ class SearchIndexerClient {
|
|
|
11533
11665
|
catch (e) {
|
|
11534
11666
|
span.setStatus({
|
|
11535
11667
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11536
|
-
message: e.message
|
|
11668
|
+
message: e.message,
|
|
11537
11669
|
});
|
|
11538
11670
|
throw e;
|
|
11539
11671
|
}
|
|
@@ -11598,11 +11730,13 @@ function odata(strings, ...values) {
|
|
|
11598
11730
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11599
11731
|
*/
|
|
11600
11732
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11601
|
-
var KnownApiVersion20210430Preview;
|
|
11733
|
+
var KnownApiVersion20210430Preview$1;
|
|
11602
11734
|
(function (KnownApiVersion20210430Preview) {
|
|
11603
11735
|
/** Api Version '2021-04-30-Preview' */
|
|
11604
11736
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11605
|
-
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11737
|
+
})(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
|
|
11738
|
+
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
11739
|
+
exports.KnownQueryLanguage = void 0;
|
|
11606
11740
|
(function (KnownQueryLanguage) {
|
|
11607
11741
|
/** Query language not specified. */
|
|
11608
11742
|
KnownQueryLanguage["None"] = "none";
|
|
@@ -11670,9 +11804,9 @@ var KnownApiVersion20210430Preview;
|
|
|
11670
11804
|
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
11671
11805
|
/** Query language value for Danish (Denmark). */
|
|
11672
11806
|
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
11673
|
-
/** Query language value for Norwegian (
|
|
11807
|
+
/** Query language value for Norwegian (Norway). */
|
|
11674
11808
|
KnownQueryLanguage["NoNo"] = "no-no";
|
|
11675
|
-
/** Query language value for Bulgarian (
|
|
11809
|
+
/** Query language value for Bulgarian (Bulgaria). */
|
|
11676
11810
|
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
11677
11811
|
/** Query language value for Croatian (Croatia). */
|
|
11678
11812
|
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
@@ -11749,12 +11883,16 @@ var KnownApiVersion20210430Preview;
|
|
|
11749
11883
|
/** Query language value for Urdu (Pakistan). */
|
|
11750
11884
|
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
11751
11885
|
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
11886
|
+
/** Known values of {@link Speller} that the service accepts. */
|
|
11887
|
+
exports.KnownSpeller = void 0;
|
|
11752
11888
|
(function (KnownSpeller) {
|
|
11753
11889
|
/** Speller not enabled. */
|
|
11754
11890
|
KnownSpeller["None"] = "none";
|
|
11755
11891
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11756
11892
|
KnownSpeller["Lexicon"] = "lexicon";
|
|
11757
11893
|
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
11894
|
+
/** Known values of {@link Answers} that the service accepts. */
|
|
11895
|
+
exports.KnownAnswers = void 0;
|
|
11758
11896
|
(function (KnownAnswers) {
|
|
11759
11897
|
/** Do not return answers for the query. */
|
|
11760
11898
|
KnownAnswers["None"] = "none";
|
|
@@ -11769,18 +11907,24 @@ var KnownCaptions;
|
|
|
11769
11907
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11770
11908
|
KnownCaptions["Extractive"] = "extractive";
|
|
11771
11909
|
})(KnownCaptions || (KnownCaptions = {}));
|
|
11910
|
+
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
11911
|
+
exports.KnownQuerySpellerType = void 0;
|
|
11772
11912
|
(function (KnownQuerySpellerType) {
|
|
11773
11913
|
/** Speller not enabled. */
|
|
11774
11914
|
KnownQuerySpellerType["None"] = "none";
|
|
11775
11915
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11776
11916
|
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
11777
11917
|
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
11918
|
+
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
11919
|
+
exports.KnownQueryAnswerType = void 0;
|
|
11778
11920
|
(function (KnownQueryAnswerType) {
|
|
11779
11921
|
/** Do not return answers for the query. */
|
|
11780
11922
|
KnownQueryAnswerType["None"] = "none";
|
|
11781
11923
|
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11782
11924
|
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
11783
11925
|
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
11926
|
+
/** Known values of {@link QueryCaptionType} that the service accepts. */
|
|
11927
|
+
exports.KnownQueryCaptionType = void 0;
|
|
11784
11928
|
(function (KnownQueryCaptionType) {
|
|
11785
11929
|
/** Do not return captions for the query. */
|
|
11786
11930
|
KnownQueryCaptionType["None"] = "none";
|
|
@@ -11796,11 +11940,13 @@ var KnownCaptions;
|
|
|
11796
11940
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11797
11941
|
*/
|
|
11798
11942
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11799
|
-
var KnownApiVersion20210430Preview
|
|
11943
|
+
var KnownApiVersion20210430Preview;
|
|
11800
11944
|
(function (KnownApiVersion20210430Preview) {
|
|
11801
11945
|
/** Api Version '2021-04-30-Preview' */
|
|
11802
11946
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11803
|
-
})(KnownApiVersion20210430Preview
|
|
11947
|
+
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11948
|
+
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
11949
|
+
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
11804
11950
|
(function (KnownSearchIndexerDataSourceType) {
|
|
11805
11951
|
/** Indicates an Azure SQL datasource. */
|
|
11806
11952
|
KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
|
|
@@ -11815,6 +11961,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11815
11961
|
/** Indicates an ADLS Gen2 datasource. */
|
|
11816
11962
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
11817
11963
|
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
11964
|
+
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
11965
|
+
exports.KnownBlobIndexerParsingMode = void 0;
|
|
11818
11966
|
(function (KnownBlobIndexerParsingMode) {
|
|
11819
11967
|
/** Set to default for normal file processing. */
|
|
11820
11968
|
KnownBlobIndexerParsingMode["Default"] = "default";
|
|
@@ -11829,6 +11977,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11829
11977
|
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
|
|
11830
11978
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
11831
11979
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
11980
|
+
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
11981
|
+
exports.KnownBlobIndexerDataToExtract = void 0;
|
|
11832
11982
|
(function (KnownBlobIndexerDataToExtract) {
|
|
11833
11983
|
/** Indexes just the standard blob properties and user-specified metadata. */
|
|
11834
11984
|
KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
|
|
@@ -11837,6 +11987,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11837
11987
|
/** Extracts all metadata and textual content from each blob. */
|
|
11838
11988
|
KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
|
|
11839
11989
|
})(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
|
|
11990
|
+
/** Known values of {@link BlobIndexerImageAction} that the service accepts. */
|
|
11991
|
+
exports.KnownBlobIndexerImageAction = void 0;
|
|
11840
11992
|
(function (KnownBlobIndexerImageAction) {
|
|
11841
11993
|
/** Ignores embedded images or image files in the data set. This is the default. */
|
|
11842
11994
|
KnownBlobIndexerImageAction["None"] = "none";
|
|
@@ -11845,6 +11997,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11845
11997
|
/** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images. Non-PDF file types will be treated the same as if "generateNormalizedImages" was set. */
|
|
11846
11998
|
KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
|
|
11847
11999
|
})(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
|
|
12000
|
+
/** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */
|
|
12001
|
+
exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
|
|
11848
12002
|
(function (KnownBlobIndexerPDFTextRotationAlgorithm) {
|
|
11849
12003
|
/** Leverages normal text extraction. This is the default. */
|
|
11850
12004
|
KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
|
|
@@ -11859,10 +12013,14 @@ var KnownIndexerExecutionEnvironment;
|
|
|
11859
12013
|
/** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
|
|
11860
12014
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
11861
12015
|
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
12016
|
+
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
12017
|
+
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
11862
12018
|
(function (KnownIndexerExecutionStatusDetail) {
|
|
11863
12019
|
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
11864
12020
|
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
11865
12021
|
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
12022
|
+
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
12023
|
+
exports.KnownIndexingMode = void 0;
|
|
11866
12024
|
(function (KnownIndexingMode) {
|
|
11867
12025
|
/** The indexer is indexing all documents in the datasource. */
|
|
11868
12026
|
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
@@ -11897,6 +12055,8 @@ var KnownSearchFieldDataType;
|
|
|
11897
12055
|
KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
|
|
11898
12056
|
KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
|
|
11899
12057
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
12058
|
+
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
12059
|
+
exports.KnownLexicalAnalyzerName = void 0;
|
|
11900
12060
|
(function (KnownLexicalAnalyzerName) {
|
|
11901
12061
|
/** Microsoft analyzer for Arabic. */
|
|
11902
12062
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -12085,6 +12245,8 @@ var KnownSearchFieldDataType;
|
|
|
12085
12245
|
/** An analyzer that uses the whitespace tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceAnalyzer.html */
|
|
12086
12246
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
12087
12247
|
})(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
|
|
12248
|
+
/** Known values of {@link LexicalNormalizerName} that the service accepts. */
|
|
12249
|
+
exports.KnownLexicalNormalizerName = void 0;
|
|
12088
12250
|
(function (KnownLexicalNormalizerName) {
|
|
12089
12251
|
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
|
|
12090
12252
|
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
@@ -12097,6 +12259,8 @@ var KnownSearchFieldDataType;
|
|
|
12097
12259
|
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
12098
12260
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
12099
12261
|
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
12262
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
12263
|
+
exports.KnownTokenFilterName = void 0;
|
|
12100
12264
|
(function (KnownTokenFilterName) {
|
|
12101
12265
|
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */
|
|
12102
12266
|
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
@@ -12167,10 +12331,14 @@ var KnownSearchFieldDataType;
|
|
|
12167
12331
|
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
12168
12332
|
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
12169
12333
|
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
12334
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
12335
|
+
exports.KnownCharFilterName = void 0;
|
|
12170
12336
|
(function (KnownCharFilterName) {
|
|
12171
12337
|
/** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */
|
|
12172
12338
|
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
12173
12339
|
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
12340
|
+
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
12341
|
+
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
12174
12342
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
12175
12343
|
/** Danish */
|
|
12176
12344
|
KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
|
|
@@ -12205,6 +12373,8 @@ var KnownSearchFieldDataType;
|
|
|
12205
12373
|
/** Swedish */
|
|
12206
12374
|
KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
|
|
12207
12375
|
})(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
|
|
12376
|
+
/** Known values of {@link OcrSkillLanguage} that the service accepts. */
|
|
12377
|
+
exports.KnownOcrSkillLanguage = void 0;
|
|
12208
12378
|
(function (KnownOcrSkillLanguage) {
|
|
12209
12379
|
/** Chinese-Simplified */
|
|
12210
12380
|
KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
|
|
@@ -12258,7 +12428,11 @@ var KnownSearchFieldDataType;
|
|
|
12258
12428
|
KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
|
|
12259
12429
|
/** Slovak */
|
|
12260
12430
|
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12431
|
+
/** Unknown. If the language is explicitly set to "unk", the language will be auto-detected. */
|
|
12432
|
+
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
12261
12433
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12434
|
+
/** Known values of {@link LineEnding} that the service accepts. */
|
|
12435
|
+
exports.KnownLineEnding = void 0;
|
|
12262
12436
|
(function (KnownLineEnding) {
|
|
12263
12437
|
/** Lines are separated by a single space character. */
|
|
12264
12438
|
KnownLineEnding["Space"] = "space";
|
|
@@ -12269,6 +12443,8 @@ var KnownSearchFieldDataType;
|
|
|
12269
12443
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
12270
12444
|
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
12271
12445
|
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
12446
|
+
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
12447
|
+
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
12272
12448
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
12273
12449
|
/** English */
|
|
12274
12450
|
KnownImageAnalysisSkillLanguage["En"] = "en";
|
|
@@ -12281,6 +12457,8 @@ var KnownSearchFieldDataType;
|
|
|
12281
12457
|
/** Chinese */
|
|
12282
12458
|
KnownImageAnalysisSkillLanguage["Zh"] = "zh";
|
|
12283
12459
|
})(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
|
|
12460
|
+
/** Known values of {@link VisualFeature} that the service accepts. */
|
|
12461
|
+
exports.KnownVisualFeature = void 0;
|
|
12284
12462
|
(function (KnownVisualFeature) {
|
|
12285
12463
|
/** Visual features recognized as adult persons. */
|
|
12286
12464
|
KnownVisualFeature["Adult"] = "adult";
|
|
@@ -12297,12 +12475,16 @@ var KnownSearchFieldDataType;
|
|
|
12297
12475
|
/** Tags. */
|
|
12298
12476
|
KnownVisualFeature["Tags"] = "tags";
|
|
12299
12477
|
})(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
|
|
12478
|
+
/** Known values of {@link ImageDetail} that the service accepts. */
|
|
12479
|
+
exports.KnownImageDetail = void 0;
|
|
12300
12480
|
(function (KnownImageDetail) {
|
|
12301
12481
|
/** Details recognized as celebrities. */
|
|
12302
12482
|
KnownImageDetail["Celebrities"] = "celebrities";
|
|
12303
12483
|
/** Details recognized as landmarks. */
|
|
12304
12484
|
KnownImageDetail["Landmarks"] = "landmarks";
|
|
12305
12485
|
})(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
|
|
12486
|
+
/** Known values of {@link EntityCategory} that the service accepts. */
|
|
12487
|
+
exports.KnownEntityCategory = void 0;
|
|
12306
12488
|
(function (KnownEntityCategory) {
|
|
12307
12489
|
/** Entities describing a physical location. */
|
|
12308
12490
|
KnownEntityCategory["Location"] = "location";
|
|
@@ -12319,6 +12501,8 @@ var KnownSearchFieldDataType;
|
|
|
12319
12501
|
/** Entities describing an email address. */
|
|
12320
12502
|
KnownEntityCategory["Email"] = "email";
|
|
12321
12503
|
})(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
|
|
12504
|
+
/** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */
|
|
12505
|
+
exports.KnownEntityRecognitionSkillLanguage = void 0;
|
|
12322
12506
|
(function (KnownEntityRecognitionSkillLanguage) {
|
|
12323
12507
|
/** Arabic */
|
|
12324
12508
|
KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
|
|
@@ -12367,6 +12551,8 @@ var KnownSearchFieldDataType;
|
|
|
12367
12551
|
/** Turkish */
|
|
12368
12552
|
KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
|
|
12369
12553
|
})(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
|
|
12554
|
+
/** Known values of {@link SentimentSkillLanguage} that the service accepts. */
|
|
12555
|
+
exports.KnownSentimentSkillLanguage = void 0;
|
|
12370
12556
|
(function (KnownSentimentSkillLanguage) {
|
|
12371
12557
|
/** Danish */
|
|
12372
12558
|
KnownSentimentSkillLanguage["Da"] = "da";
|
|
@@ -12399,12 +12585,16 @@ var KnownSearchFieldDataType;
|
|
|
12399
12585
|
/** Turkish */
|
|
12400
12586
|
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
12401
12587
|
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
12588
|
+
/** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
|
|
12589
|
+
exports.KnownPIIDetectionSkillMaskingMode = void 0;
|
|
12402
12590
|
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
12403
12591
|
/** No masking occurs and the maskedText output will not be returned. */
|
|
12404
12592
|
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
12405
12593
|
/** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */
|
|
12406
12594
|
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
12407
12595
|
})(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
|
|
12596
|
+
/** Known values of {@link SplitSkillLanguage} that the service accepts. */
|
|
12597
|
+
exports.KnownSplitSkillLanguage = void 0;
|
|
12408
12598
|
(function (KnownSplitSkillLanguage) {
|
|
12409
12599
|
/** Danish */
|
|
12410
12600
|
KnownSplitSkillLanguage["Da"] = "da";
|
|
@@ -12425,12 +12615,16 @@ var KnownSearchFieldDataType;
|
|
|
12425
12615
|
/** Portuguese */
|
|
12426
12616
|
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12427
12617
|
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
12618
|
+
/** Known values of {@link TextSplitMode} that the service accepts. */
|
|
12619
|
+
exports.KnownTextSplitMode = void 0;
|
|
12428
12620
|
(function (KnownTextSplitMode) {
|
|
12429
12621
|
/** Split the text into individual pages. */
|
|
12430
12622
|
KnownTextSplitMode["Pages"] = "pages";
|
|
12431
12623
|
/** Split the text into individual sentences. */
|
|
12432
12624
|
KnownTextSplitMode["Sentences"] = "sentences";
|
|
12433
12625
|
})(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
|
|
12626
|
+
/** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
|
|
12627
|
+
exports.KnownCustomEntityLookupSkillLanguage = void 0;
|
|
12434
12628
|
(function (KnownCustomEntityLookupSkillLanguage) {
|
|
12435
12629
|
/** Danish */
|
|
12436
12630
|
KnownCustomEntityLookupSkillLanguage["Da"] = "da";
|
|
@@ -12451,6 +12645,8 @@ var KnownSearchFieldDataType;
|
|
|
12451
12645
|
/** Portuguese */
|
|
12452
12646
|
KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
|
|
12453
12647
|
})(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
|
|
12648
|
+
/** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */
|
|
12649
|
+
exports.KnownTextTranslationSkillLanguage = void 0;
|
|
12454
12650
|
(function (KnownTextTranslationSkillLanguage) {
|
|
12455
12651
|
/** Afrikaans */
|
|
12456
12652
|
KnownTextTranslationSkillLanguage["Af"] = "af";
|
|
@@ -12627,6 +12823,8 @@ var KnownLexicalTokenizerName;
|
|
|
12627
12823
|
/** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
|
|
12628
12824
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
12629
12825
|
})(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
|
|
12826
|
+
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
12827
|
+
exports.KnownRegexFlags = void 0;
|
|
12630
12828
|
(function (KnownRegexFlags) {
|
|
12631
12829
|
/** Enables canonical equivalence. */
|
|
12632
12830
|
KnownRegexFlags["CanonEq"] = "CANON_EQ";
|
|
@@ -12647,7 +12845,7 @@ var KnownLexicalTokenizerName;
|
|
|
12647
12845
|
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
12648
12846
|
|
|
12649
12847
|
// Copyright (c) Microsoft Corporation.
|
|
12650
|
-
const readFileAsync = util.promisify(
|
|
12848
|
+
const readFileAsync = util.promisify(fs__namespace.readFile);
|
|
12651
12849
|
/**
|
|
12652
12850
|
* Helper method to create a SynonymMap object. This is a NodeJS only method.
|
|
12653
12851
|
*
|
|
@@ -12663,22 +12861,20 @@ async function createSynonymMapFromFile(name, filePath) {
|
|
|
12663
12861
|
.filter(Boolean);
|
|
12664
12862
|
return {
|
|
12665
12863
|
name,
|
|
12666
|
-
synonyms
|
|
12864
|
+
synonyms,
|
|
12667
12865
|
};
|
|
12668
12866
|
}
|
|
12669
12867
|
|
|
12670
12868
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
|
12671
12869
|
enumerable: true,
|
|
12672
|
-
get: function () {
|
|
12673
|
-
return coreAuth.AzureKeyCredential;
|
|
12674
|
-
}
|
|
12870
|
+
get: function () { return coreAuth.AzureKeyCredential; }
|
|
12675
12871
|
});
|
|
12676
12872
|
exports.DEFAULT_BATCH_SIZE = DEFAULT_BATCH_SIZE;
|
|
12677
12873
|
exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
12678
12874
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
12679
12875
|
exports.GeographyPoint = GeographyPoint;
|
|
12680
12876
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
12681
|
-
exports.SearchClient = SearchClient
|
|
12877
|
+
exports.SearchClient = SearchClient;
|
|
12682
12878
|
exports.SearchIndexClient = SearchIndexClient;
|
|
12683
12879
|
exports.SearchIndexerClient = SearchIndexerClient;
|
|
12684
12880
|
exports.SearchIndexingBufferedSender = SearchIndexingBufferedSender;
|