@azure/search-documents 11.3.0-alpha.20211214.2 → 11.3.0-alpha.20220128.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +596 -465
- package/dist/index.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 +32 -32
- 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 +20 -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 +12 -12
- package/types/search-documents.d.ts +21 -1
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.
|
|
@@ -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,7 +1809,7 @@ 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
|
|
|
@@ -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
|
|
@@ -2893,7 +2936,7 @@ function convertFieldsToPublic(fields) {
|
|
|
2893
2936
|
return {
|
|
2894
2937
|
name: field.name,
|
|
2895
2938
|
type: field.type,
|
|
2896
|
-
fields: convertFieldsToPublic(field.fields)
|
|
2939
|
+
fields: convertFieldsToPublic(field.fields),
|
|
2897
2940
|
};
|
|
2898
2941
|
}
|
|
2899
2942
|
else {
|
|
@@ -2921,7 +2964,7 @@ function convertFieldsToGenerated(fields) {
|
|
|
2921
2964
|
return {
|
|
2922
2965
|
name: field.name,
|
|
2923
2966
|
type: field.type,
|
|
2924
|
-
fields: convertFieldsToGenerated(field.fields)
|
|
2967
|
+
fields: convertFieldsToGenerated(field.fields),
|
|
2925
2968
|
};
|
|
2926
2969
|
}
|
|
2927
2970
|
else {
|
|
@@ -2990,7 +3033,7 @@ function convertEncryptionKeyToPublic(encryptionKey) {
|
|
|
2990
3033
|
keyName: encryptionKey.keyName,
|
|
2991
3034
|
keyVersion: encryptionKey.keyVersion,
|
|
2992
3035
|
vaultUrl: encryptionKey.vaultUri,
|
|
2993
|
-
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity)
|
|
3036
|
+
identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
|
|
2994
3037
|
};
|
|
2995
3038
|
if (encryptionKey.accessCredentials) {
|
|
2996
3039
|
result.applicationId = encryptionKey.accessCredentials.applicationId;
|
|
@@ -3006,12 +3049,12 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
|
|
|
3006
3049
|
keyName: encryptionKey.keyName,
|
|
3007
3050
|
keyVersion: encryptionKey.keyVersion,
|
|
3008
3051
|
vaultUri: encryptionKey.vaultUrl,
|
|
3009
|
-
identity: encryptionKey.identity
|
|
3052
|
+
identity: encryptionKey.identity,
|
|
3010
3053
|
};
|
|
3011
3054
|
if (encryptionKey.applicationId) {
|
|
3012
3055
|
result.accessCredentials = {
|
|
3013
3056
|
applicationId: encryptionKey.applicationId,
|
|
3014
|
-
applicationSecret: encryptionKey.applicationSecret
|
|
3057
|
+
applicationSecret: encryptionKey.applicationSecret,
|
|
3015
3058
|
};
|
|
3016
3059
|
}
|
|
3017
3060
|
return result;
|
|
@@ -3032,7 +3075,7 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
3032
3075
|
scoringProfiles: generatedIndex.scoringProfiles,
|
|
3033
3076
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
3034
3077
|
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
3035
|
-
semanticSettings: generatedIndex.semanticSettings
|
|
3078
|
+
semanticSettings: generatedIndex.semanticSettings,
|
|
3036
3079
|
};
|
|
3037
3080
|
}
|
|
3038
3081
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
@@ -3044,7 +3087,7 @@ function generatedSearchResultToPublicSearchResult(results) {
|
|
|
3044
3087
|
highlights: _highlights,
|
|
3045
3088
|
rerankerScore,
|
|
3046
3089
|
captions,
|
|
3047
|
-
document: doc
|
|
3090
|
+
document: doc,
|
|
3048
3091
|
};
|
|
3049
3092
|
return obj;
|
|
3050
3093
|
});
|
|
@@ -3056,13 +3099,13 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
|
|
|
3056
3099
|
const doc = Object.assign({}, restProps);
|
|
3057
3100
|
const obj = {
|
|
3058
3101
|
text: _text,
|
|
3059
|
-
document: doc
|
|
3102
|
+
document: doc,
|
|
3060
3103
|
};
|
|
3061
3104
|
return obj;
|
|
3062
3105
|
});
|
|
3063
3106
|
const result = {
|
|
3064
3107
|
results: results,
|
|
3065
|
-
coverage: searchDocumentsResult.coverage
|
|
3108
|
+
coverage: searchDocumentsResult.coverage,
|
|
3066
3109
|
};
|
|
3067
3110
|
return result;
|
|
3068
3111
|
}
|
|
@@ -3082,7 +3125,7 @@ function publicIndexToGeneratedIndex(index) {
|
|
|
3082
3125
|
tokenizers: convertTokenizersToGenerated(index.tokenizers),
|
|
3083
3126
|
fields: convertFieldsToGenerated(index.fields),
|
|
3084
3127
|
similarity: convertSimilarityToGenerated(index.similarity),
|
|
3085
|
-
semanticSettings: index.semanticSettings
|
|
3128
|
+
semanticSettings: index.semanticSettings,
|
|
3086
3129
|
};
|
|
3087
3130
|
}
|
|
3088
3131
|
function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
@@ -3093,7 +3136,7 @@ function generatedSkillsetToPublicSkillset(generatedSkillset) {
|
|
|
3093
3136
|
cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(generatedSkillset.cognitiveServicesAccount),
|
|
3094
3137
|
knowledgeStore: generatedSkillset.knowledgeStore,
|
|
3095
3138
|
etag: generatedSkillset.etag,
|
|
3096
|
-
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey)
|
|
3139
|
+
encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey),
|
|
3097
3140
|
};
|
|
3098
3141
|
}
|
|
3099
3142
|
function publicSkillsetToGeneratedSkillset(skillset) {
|
|
@@ -3104,7 +3147,7 @@ function publicSkillsetToGeneratedSkillset(skillset) {
|
|
|
3104
3147
|
skills: skillset.skills,
|
|
3105
3148
|
cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount),
|
|
3106
3149
|
knowledgeStore: skillset.knowledgeStore,
|
|
3107
|
-
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey)
|
|
3150
|
+
encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),
|
|
3108
3151
|
};
|
|
3109
3152
|
}
|
|
3110
3153
|
function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
@@ -3112,7 +3155,7 @@ function generatedSynonymMapToPublicSynonymMap(synonymMap) {
|
|
|
3112
3155
|
name: synonymMap.name,
|
|
3113
3156
|
encryptionKey: convertEncryptionKeyToPublic(synonymMap.encryptionKey),
|
|
3114
3157
|
etag: synonymMap.etag,
|
|
3115
|
-
synonyms: []
|
|
3158
|
+
synonyms: [],
|
|
3116
3159
|
};
|
|
3117
3160
|
if (synonymMap.synonyms) {
|
|
3118
3161
|
result.synonyms = synonymMap.synonyms.split("\n");
|
|
@@ -3125,7 +3168,7 @@ function publicSynonymMapToGeneratedSynonymMap(synonymMap) {
|
|
|
3125
3168
|
format: "solr",
|
|
3126
3169
|
encryptionKey: convertEncryptionKeyToGenerated(synonymMap.encryptionKey),
|
|
3127
3170
|
etag: synonymMap.etag,
|
|
3128
|
-
synonyms: synonymMap.synonyms.join("\n")
|
|
3171
|
+
synonyms: synonymMap.synonyms.join("\n"),
|
|
3129
3172
|
};
|
|
3130
3173
|
result.encryptionKey = convertEncryptionKeyToGenerated(synonymMap.encryptionKey);
|
|
3131
3174
|
return result;
|
|
@@ -3142,14 +3185,14 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
|
3142
3185
|
description: dataSource.description,
|
|
3143
3186
|
type: dataSource.type,
|
|
3144
3187
|
credentials: {
|
|
3145
|
-
connectionString: dataSource.connectionString
|
|
3188
|
+
connectionString: dataSource.connectionString,
|
|
3146
3189
|
},
|
|
3147
3190
|
container: dataSource.container,
|
|
3148
3191
|
identity: dataSource.identity,
|
|
3149
3192
|
etag: dataSource.etag,
|
|
3150
3193
|
dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
|
|
3151
3194
|
dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
|
|
3152
|
-
encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey)
|
|
3195
|
+
encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey),
|
|
3153
3196
|
};
|
|
3154
3197
|
}
|
|
3155
3198
|
function generatedDataSourceToPublicDataSource(dataSource) {
|
|
@@ -3163,7 +3206,7 @@ function generatedDataSourceToPublicDataSource(dataSource) {
|
|
|
3163
3206
|
etag: dataSource.etag,
|
|
3164
3207
|
dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
|
|
3165
3208
|
dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
|
|
3166
|
-
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey)
|
|
3209
|
+
encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey),
|
|
3167
3210
|
};
|
|
3168
3211
|
}
|
|
3169
3212
|
function convertSearchIndexerDataIdentityToPublic(searchIndexerDataIdentity) {
|
|
@@ -3213,6 +3256,8 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3213
3256
|
function delay(timeInMs) {
|
|
3214
3257
|
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3215
3258
|
}
|
|
3259
|
+
const serviceVersions = ["2020-06-30", "2021-04-30-Preview"];
|
|
3260
|
+
const defaultServiceVersion = "2021-04-30-Preview";
|
|
3216
3261
|
|
|
3217
3262
|
// Copyright (c) Microsoft Corporation.
|
|
3218
3263
|
/**
|
|
@@ -3220,7 +3265,7 @@ function delay(timeInMs) {
|
|
|
3220
3265
|
* including querying documents in the index as well as
|
|
3221
3266
|
* adding, updating, and removing them.
|
|
3222
3267
|
*/
|
|
3223
|
-
class SearchClient
|
|
3268
|
+
class SearchClient {
|
|
3224
3269
|
/**
|
|
3225
3270
|
* Creates an instance of SearchClient.
|
|
3226
3271
|
*
|
|
@@ -3245,7 +3290,12 @@ class SearchClient$1 {
|
|
|
3245
3290
|
/**
|
|
3246
3291
|
* The service version to use when communicating with the service.
|
|
3247
3292
|
*/
|
|
3248
|
-
this.serviceVersion =
|
|
3293
|
+
this.serviceVersion = defaultServiceVersion;
|
|
3294
|
+
/**
|
|
3295
|
+
* The API version to use when communicating with the service.
|
|
3296
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
3297
|
+
*/
|
|
3298
|
+
this.apiVersion = defaultServiceVersion;
|
|
3249
3299
|
this.endpoint = endpoint;
|
|
3250
3300
|
this.indexName = indexName;
|
|
3251
3301
|
const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;
|
|
@@ -3267,23 +3317,25 @@ class SearchClient$1 {
|
|
|
3267
3317
|
"OData-MaxVersion",
|
|
3268
3318
|
"OData-Version",
|
|
3269
3319
|
"Prefer",
|
|
3270
|
-
"throttle-reason"
|
|
3271
|
-
]
|
|
3272
|
-
}
|
|
3320
|
+
"throttle-reason",
|
|
3321
|
+
],
|
|
3322
|
+
},
|
|
3273
3323
|
});
|
|
3274
3324
|
if (options.apiVersion) {
|
|
3275
|
-
if (!
|
|
3325
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
3276
3326
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
3277
3327
|
}
|
|
3278
3328
|
this.serviceVersion = options.apiVersion;
|
|
3329
|
+
this.apiVersion = options.apiVersion;
|
|
3279
3330
|
}
|
|
3280
3331
|
if (options.serviceVersion) {
|
|
3281
|
-
if (!
|
|
3332
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
3282
3333
|
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
3283
3334
|
}
|
|
3284
3335
|
this.serviceVersion = options.serviceVersion;
|
|
3336
|
+
this.apiVersion = options.serviceVersion;
|
|
3285
3337
|
}
|
|
3286
|
-
this.client = new SearchClient(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3338
|
+
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3287
3339
|
if (coreAuth.isTokenCredential(credential)) {
|
|
3288
3340
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
3289
3341
|
}
|
|
@@ -3292,13 +3344,6 @@ class SearchClient$1 {
|
|
|
3292
3344
|
}
|
|
3293
3345
|
this.client.pipeline.addPolicy(createOdataMetadataPolicy("none"));
|
|
3294
3346
|
}
|
|
3295
|
-
/**
|
|
3296
|
-
* The API version to use when communicating with the service.
|
|
3297
|
-
* @deprecated use {@Link serviceVersion} instead
|
|
3298
|
-
*/
|
|
3299
|
-
get apiVersion() {
|
|
3300
|
-
return this.serviceVersion;
|
|
3301
|
-
}
|
|
3302
3347
|
/**
|
|
3303
3348
|
* Retrieves the number of documents in the index.
|
|
3304
3349
|
* @param options - Options to the count operation.
|
|
@@ -3315,7 +3360,7 @@ class SearchClient$1 {
|
|
|
3315
3360
|
catch (e) {
|
|
3316
3361
|
span.setStatus({
|
|
3317
3362
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3318
|
-
message: e.message
|
|
3363
|
+
message: e.message,
|
|
3319
3364
|
});
|
|
3320
3365
|
throw e;
|
|
3321
3366
|
}
|
|
@@ -3348,7 +3393,7 @@ class SearchClient$1 {
|
|
|
3348
3393
|
catch (e) {
|
|
3349
3394
|
span.setStatus({
|
|
3350
3395
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3351
|
-
message: e.message
|
|
3396
|
+
message: e.message,
|
|
3352
3397
|
});
|
|
3353
3398
|
throw e;
|
|
3354
3399
|
}
|
|
@@ -3371,14 +3416,14 @@ class SearchClient$1 {
|
|
|
3371
3416
|
coverage,
|
|
3372
3417
|
facets,
|
|
3373
3418
|
answers,
|
|
3374
|
-
continuationToken: this.encodeContinuationToken(nextLink, result.nextPageParameters)
|
|
3419
|
+
continuationToken: this.encodeContinuationToken(nextLink, result.nextPageParameters),
|
|
3375
3420
|
};
|
|
3376
3421
|
return deserialize(converted);
|
|
3377
3422
|
}
|
|
3378
3423
|
catch (e) {
|
|
3379
3424
|
span.setStatus({
|
|
3380
3425
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3381
|
-
message: e.message
|
|
3426
|
+
message: e.message,
|
|
3382
3427
|
});
|
|
3383
3428
|
throw e;
|
|
3384
3429
|
}
|
|
@@ -3407,7 +3452,7 @@ class SearchClient$1 {
|
|
|
3407
3452
|
if (firstPage.continuationToken) {
|
|
3408
3453
|
try {
|
|
3409
3454
|
for (var _b = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
|
|
3410
|
-
continuationToken: firstPage.continuationToken
|
|
3455
|
+
continuationToken: firstPage.continuationToken,
|
|
3411
3456
|
})), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3412
3457
|
const page = _c.value;
|
|
3413
3458
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
@@ -3434,7 +3479,7 @@ class SearchClient$1 {
|
|
|
3434
3479
|
},
|
|
3435
3480
|
byPage: (settings = {}) => {
|
|
3436
3481
|
return this.listSearchResultsPage(searchText, options, settings);
|
|
3437
|
-
}
|
|
3482
|
+
},
|
|
3438
3483
|
};
|
|
3439
3484
|
}
|
|
3440
3485
|
/**
|
|
@@ -3453,13 +3498,13 @@ class SearchClient$1 {
|
|
|
3453
3498
|
coverage,
|
|
3454
3499
|
facets,
|
|
3455
3500
|
answers,
|
|
3456
|
-
results: this.listSearchResults(pageResult, searchText, updatedOptions)
|
|
3501
|
+
results: this.listSearchResults(pageResult, searchText, updatedOptions),
|
|
3457
3502
|
};
|
|
3458
3503
|
}
|
|
3459
3504
|
catch (e) {
|
|
3460
3505
|
span.setStatus({
|
|
3461
3506
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3462
|
-
message: e.message
|
|
3507
|
+
message: e.message,
|
|
3463
3508
|
});
|
|
3464
3509
|
throw e;
|
|
3465
3510
|
}
|
|
@@ -3493,7 +3538,7 @@ class SearchClient$1 {
|
|
|
3493
3538
|
catch (e) {
|
|
3494
3539
|
span.setStatus({
|
|
3495
3540
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3496
|
-
message: e.message
|
|
3541
|
+
message: e.message,
|
|
3497
3542
|
});
|
|
3498
3543
|
throw e;
|
|
3499
3544
|
}
|
|
@@ -3515,7 +3560,7 @@ class SearchClient$1 {
|
|
|
3515
3560
|
catch (e) {
|
|
3516
3561
|
span.setStatus({
|
|
3517
3562
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3518
|
-
message: e.message
|
|
3563
|
+
message: e.message,
|
|
3519
3564
|
});
|
|
3520
3565
|
throw e;
|
|
3521
3566
|
}
|
|
@@ -3550,7 +3595,7 @@ class SearchClient$1 {
|
|
|
3550
3595
|
catch (e) {
|
|
3551
3596
|
span.setStatus({
|
|
3552
3597
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3553
|
-
message: e.message
|
|
3598
|
+
message: e.message,
|
|
3554
3599
|
});
|
|
3555
3600
|
throw e;
|
|
3556
3601
|
}
|
|
@@ -3573,7 +3618,7 @@ class SearchClient$1 {
|
|
|
3573
3618
|
catch (e) {
|
|
3574
3619
|
span.setStatus({
|
|
3575
3620
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3576
|
-
message: e.message
|
|
3621
|
+
message: e.message,
|
|
3577
3622
|
});
|
|
3578
3623
|
throw e;
|
|
3579
3624
|
}
|
|
@@ -3597,7 +3642,7 @@ class SearchClient$1 {
|
|
|
3597
3642
|
catch (e) {
|
|
3598
3643
|
span.setStatus({
|
|
3599
3644
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3600
|
-
message: e.message
|
|
3645
|
+
message: e.message,
|
|
3601
3646
|
});
|
|
3602
3647
|
throw e;
|
|
3603
3648
|
}
|
|
@@ -3621,7 +3666,7 @@ class SearchClient$1 {
|
|
|
3621
3666
|
catch (e) {
|
|
3622
3667
|
span.setStatus({
|
|
3623
3668
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3624
|
-
message: e.message
|
|
3669
|
+
message: e.message,
|
|
3625
3670
|
});
|
|
3626
3671
|
throw e;
|
|
3627
3672
|
}
|
|
@@ -3644,7 +3689,7 @@ class SearchClient$1 {
|
|
|
3644
3689
|
catch (e) {
|
|
3645
3690
|
span.setStatus({
|
|
3646
3691
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3647
|
-
message: e.message
|
|
3692
|
+
message: e.message,
|
|
3648
3693
|
});
|
|
3649
3694
|
throw e;
|
|
3650
3695
|
}
|
|
@@ -3659,7 +3704,7 @@ class SearchClient$1 {
|
|
|
3659
3704
|
const payload = JSON.stringify({
|
|
3660
3705
|
apiVersion: this.apiVersion,
|
|
3661
3706
|
nextLink,
|
|
3662
|
-
nextPageParameters
|
|
3707
|
+
nextPageParameters,
|
|
3663
3708
|
});
|
|
3664
3709
|
return encode(payload);
|
|
3665
3710
|
}
|
|
@@ -3675,7 +3720,7 @@ class SearchClient$1 {
|
|
|
3675
3720
|
}
|
|
3676
3721
|
return {
|
|
3677
3722
|
nextLink: result.nextLink,
|
|
3678
|
-
nextPageParameters: result.nextPageParameters
|
|
3723
|
+
nextPageParameters: result.nextPageParameters,
|
|
3679
3724
|
};
|
|
3680
3725
|
}
|
|
3681
3726
|
catch (e) {
|
|
@@ -3689,9 +3734,9 @@ class SearchClient$1 {
|
|
|
3689
3734
|
operationOptions: {
|
|
3690
3735
|
abortSignal,
|
|
3691
3736
|
requestOptions,
|
|
3692
|
-
tracingOptions
|
|
3737
|
+
tracingOptions,
|
|
3693
3738
|
},
|
|
3694
|
-
restOptions
|
|
3739
|
+
restOptions,
|
|
3695
3740
|
};
|
|
3696
3741
|
}
|
|
3697
3742
|
convertSelect(select) {
|
|
@@ -3754,7 +3799,7 @@ class SearchIndexingBufferedSender {
|
|
|
3754
3799
|
/**
|
|
3755
3800
|
* Event emitter/publisher used in the Buffered Sender
|
|
3756
3801
|
*/
|
|
3757
|
-
this.emitter = new
|
|
3802
|
+
this.emitter = new EventEmitter__default["default"]();
|
|
3758
3803
|
this.client = client;
|
|
3759
3804
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
3760
3805
|
// General Configuration properties
|
|
@@ -3786,14 +3831,14 @@ class SearchIndexingBufferedSender {
|
|
|
3786
3831
|
this.batchObject.upload(documents);
|
|
3787
3832
|
this.emitter.emit("batchAdded", {
|
|
3788
3833
|
action: "upload",
|
|
3789
|
-
documents
|
|
3834
|
+
documents,
|
|
3790
3835
|
});
|
|
3791
3836
|
return this.internalFlush(false, updatedOptions);
|
|
3792
3837
|
}
|
|
3793
3838
|
catch (e) {
|
|
3794
3839
|
span.setStatus({
|
|
3795
3840
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3796
|
-
message: e.message
|
|
3841
|
+
message: e.message,
|
|
3797
3842
|
});
|
|
3798
3843
|
throw e;
|
|
3799
3844
|
}
|
|
@@ -3813,14 +3858,14 @@ class SearchIndexingBufferedSender {
|
|
|
3813
3858
|
this.batchObject.merge(documents);
|
|
3814
3859
|
this.emitter.emit("batchAdded", {
|
|
3815
3860
|
action: "merge",
|
|
3816
|
-
documents
|
|
3861
|
+
documents,
|
|
3817
3862
|
});
|
|
3818
3863
|
return this.internalFlush(false, updatedOptions);
|
|
3819
3864
|
}
|
|
3820
3865
|
catch (e) {
|
|
3821
3866
|
span.setStatus({
|
|
3822
3867
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3823
|
-
message: e.message
|
|
3868
|
+
message: e.message,
|
|
3824
3869
|
});
|
|
3825
3870
|
throw e;
|
|
3826
3871
|
}
|
|
@@ -3840,14 +3885,14 @@ class SearchIndexingBufferedSender {
|
|
|
3840
3885
|
this.batchObject.mergeOrUpload(documents);
|
|
3841
3886
|
this.emitter.emit("batchAdded", {
|
|
3842
3887
|
action: "mergeOrUpload",
|
|
3843
|
-
documents
|
|
3888
|
+
documents,
|
|
3844
3889
|
});
|
|
3845
3890
|
return this.internalFlush(false, updatedOptions);
|
|
3846
3891
|
}
|
|
3847
3892
|
catch (e) {
|
|
3848
3893
|
span.setStatus({
|
|
3849
3894
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3850
|
-
message: e.message
|
|
3895
|
+
message: e.message,
|
|
3851
3896
|
});
|
|
3852
3897
|
throw e;
|
|
3853
3898
|
}
|
|
@@ -3867,14 +3912,14 @@ class SearchIndexingBufferedSender {
|
|
|
3867
3912
|
this.batchObject.delete(documents);
|
|
3868
3913
|
this.emitter.emit("batchAdded", {
|
|
3869
3914
|
action: "delete",
|
|
3870
|
-
documents
|
|
3915
|
+
documents,
|
|
3871
3916
|
});
|
|
3872
3917
|
return this.internalFlush(false, updatedOptions);
|
|
3873
3918
|
}
|
|
3874
3919
|
catch (e) {
|
|
3875
3920
|
span.setStatus({
|
|
3876
3921
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3877
|
-
message: e.message
|
|
3922
|
+
message: e.message,
|
|
3878
3923
|
});
|
|
3879
3924
|
throw e;
|
|
3880
3925
|
}
|
|
@@ -3897,7 +3942,7 @@ class SearchIndexingBufferedSender {
|
|
|
3897
3942
|
catch (e) {
|
|
3898
3943
|
span.setStatus({
|
|
3899
3944
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3900
|
-
message: e.message
|
|
3945
|
+
message: e.message,
|
|
3901
3946
|
});
|
|
3902
3947
|
throw e;
|
|
3903
3948
|
}
|
|
@@ -3968,7 +4013,7 @@ class SearchIndexingBufferedSender {
|
|
|
3968
4013
|
// Cut the payload size to half
|
|
3969
4014
|
const splitActionsArray = [
|
|
3970
4015
|
actionsToSend.slice(0, actionsToSend.length / 2),
|
|
3971
|
-
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length)
|
|
4016
|
+
actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length),
|
|
3972
4017
|
];
|
|
3973
4018
|
this.initialBatchActionCount = splitActionsArray[0].length; // So, we do not want 413 happening again and again
|
|
3974
4019
|
for (const actions of splitActionsArray) {
|
|
@@ -4239,7 +4284,7 @@ const AzureActiveDirectoryApplicationCredentials = {
|
|
|
4239
4284
|
}
|
|
4240
4285
|
}
|
|
4241
4286
|
};
|
|
4242
|
-
const SearchError
|
|
4287
|
+
const SearchError = {
|
|
4243
4288
|
type: {
|
|
4244
4289
|
name: "Composite",
|
|
4245
4290
|
className: "SearchError",
|
|
@@ -9010,7 +9055,7 @@ let discriminators = {
|
|
|
9010
9055
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
|
|
9011
9056
|
};
|
|
9012
9057
|
|
|
9013
|
-
var Mappers
|
|
9058
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
9014
9059
|
__proto__: null,
|
|
9015
9060
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9016
9061
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -9020,7 +9065,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9020
9065
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9021
9066
|
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
9022
9067
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9023
|
-
SearchError: SearchError
|
|
9068
|
+
SearchError: SearchError,
|
|
9024
9069
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
9025
9070
|
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
9026
9071
|
SearchIndexer: SearchIndexer,
|
|
@@ -9170,7 +9215,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9170
9215
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9171
9216
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9172
9217
|
*/
|
|
9173
|
-
const contentType
|
|
9218
|
+
const contentType = {
|
|
9174
9219
|
parameterPath: ["options", "contentType"],
|
|
9175
9220
|
mapper: {
|
|
9176
9221
|
defaultValue: "application/json",
|
|
@@ -9185,7 +9230,7 @@ const dataSource = {
|
|
|
9185
9230
|
parameterPath: "dataSource",
|
|
9186
9231
|
mapper: SearchIndexerDataSource
|
|
9187
9232
|
};
|
|
9188
|
-
const accept
|
|
9233
|
+
const accept = {
|
|
9189
9234
|
parameterPath: "accept",
|
|
9190
9235
|
mapper: {
|
|
9191
9236
|
defaultValue: "application/json",
|
|
@@ -9196,7 +9241,7 @@ const accept$1 = {
|
|
|
9196
9241
|
}
|
|
9197
9242
|
}
|
|
9198
9243
|
};
|
|
9199
|
-
const endpoint
|
|
9244
|
+
const endpoint = {
|
|
9200
9245
|
parameterPath: "endpoint",
|
|
9201
9246
|
mapper: {
|
|
9202
9247
|
serializedName: "endpoint",
|
|
@@ -9217,7 +9262,7 @@ const dataSourceName = {
|
|
|
9217
9262
|
}
|
|
9218
9263
|
}
|
|
9219
9264
|
};
|
|
9220
|
-
const xMsClientRequestId
|
|
9265
|
+
const xMsClientRequestId = {
|
|
9221
9266
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
9222
9267
|
mapper: {
|
|
9223
9268
|
serializedName: "x-ms-client-request-id",
|
|
@@ -9255,7 +9300,7 @@ const prefer = {
|
|
|
9255
9300
|
}
|
|
9256
9301
|
}
|
|
9257
9302
|
};
|
|
9258
|
-
const apiVersion
|
|
9303
|
+
const apiVersion = {
|
|
9259
9304
|
parameterPath: "apiVersion",
|
|
9260
9305
|
mapper: {
|
|
9261
9306
|
serializedName: "api-version",
|
|
@@ -9274,7 +9319,7 @@ const skipIndexerResetRequirementForCache = {
|
|
|
9274
9319
|
}
|
|
9275
9320
|
}
|
|
9276
9321
|
};
|
|
9277
|
-
const select
|
|
9322
|
+
const select = {
|
|
9278
9323
|
parameterPath: ["options", "select"],
|
|
9279
9324
|
mapper: {
|
|
9280
9325
|
serializedName: "$select",
|
|
@@ -9356,7 +9401,7 @@ const index = {
|
|
|
9356
9401
|
parameterPath: "index",
|
|
9357
9402
|
mapper: SearchIndex
|
|
9358
9403
|
};
|
|
9359
|
-
const indexName
|
|
9404
|
+
const indexName = {
|
|
9360
9405
|
parameterPath: "indexName",
|
|
9361
9406
|
mapper: {
|
|
9362
9407
|
serializedName: "indexName",
|
|
@@ -9403,7 +9448,7 @@ class DataSourcesImpl {
|
|
|
9403
9448
|
* @param options The options parameters.
|
|
9404
9449
|
*/
|
|
9405
9450
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
9406
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
|
|
9451
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
9407
9452
|
}
|
|
9408
9453
|
/**
|
|
9409
9454
|
* Deletes a datasource.
|
|
@@ -9411,7 +9456,7 @@ class DataSourcesImpl {
|
|
|
9411
9456
|
* @param options The options parameters.
|
|
9412
9457
|
*/
|
|
9413
9458
|
delete(dataSourceName, options) {
|
|
9414
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
|
|
9459
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
9415
9460
|
}
|
|
9416
9461
|
/**
|
|
9417
9462
|
* Retrieves a datasource definition.
|
|
@@ -9419,14 +9464,14 @@ class DataSourcesImpl {
|
|
|
9419
9464
|
* @param options The options parameters.
|
|
9420
9465
|
*/
|
|
9421
9466
|
get(dataSourceName, options) {
|
|
9422
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
9467
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
9423
9468
|
}
|
|
9424
9469
|
/**
|
|
9425
9470
|
* Lists all datasources available for a search service.
|
|
9426
9471
|
* @param options The options parameters.
|
|
9427
9472
|
*/
|
|
9428
9473
|
list(options) {
|
|
9429
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
9474
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
9430
9475
|
}
|
|
9431
9476
|
/**
|
|
9432
9477
|
* Creates a new datasource.
|
|
@@ -9434,12 +9479,12 @@ class DataSourcesImpl {
|
|
|
9434
9479
|
* @param options The options parameters.
|
|
9435
9480
|
*/
|
|
9436
9481
|
create(dataSource, options) {
|
|
9437
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
|
|
9482
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
9438
9483
|
}
|
|
9439
9484
|
}
|
|
9440
9485
|
// Operation Specifications
|
|
9441
|
-
const serializer$
|
|
9442
|
-
const createOrUpdateOperationSpec = {
|
|
9486
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9487
|
+
const createOrUpdateOperationSpec$4 = {
|
|
9443
9488
|
path: "/datasources('{dataSourceName}')",
|
|
9444
9489
|
httpMethod: "PUT",
|
|
9445
9490
|
responses: {
|
|
@@ -9450,47 +9495,47 @@ const createOrUpdateOperationSpec = {
|
|
|
9450
9495
|
bodyMapper: SearchIndexerDataSource
|
|
9451
9496
|
},
|
|
9452
9497
|
default: {
|
|
9453
|
-
bodyMapper: SearchError
|
|
9498
|
+
bodyMapper: SearchError
|
|
9454
9499
|
}
|
|
9455
9500
|
},
|
|
9456
9501
|
requestBody: dataSource,
|
|
9457
9502
|
queryParameters: [
|
|
9458
|
-
apiVersion
|
|
9503
|
+
apiVersion,
|
|
9459
9504
|
skipIndexerResetRequirementForCache
|
|
9460
9505
|
],
|
|
9461
|
-
urlParameters: [endpoint
|
|
9506
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9462
9507
|
headerParameters: [
|
|
9463
|
-
contentType
|
|
9464
|
-
accept
|
|
9465
|
-
xMsClientRequestId
|
|
9508
|
+
contentType,
|
|
9509
|
+
accept,
|
|
9510
|
+
xMsClientRequestId,
|
|
9466
9511
|
ifMatch,
|
|
9467
9512
|
ifNoneMatch,
|
|
9468
9513
|
prefer
|
|
9469
9514
|
],
|
|
9470
9515
|
mediaType: "json",
|
|
9471
|
-
serializer: serializer$
|
|
9516
|
+
serializer: serializer$5
|
|
9472
9517
|
};
|
|
9473
|
-
const deleteOperationSpec = {
|
|
9518
|
+
const deleteOperationSpec$4 = {
|
|
9474
9519
|
path: "/datasources('{dataSourceName}')",
|
|
9475
9520
|
httpMethod: "DELETE",
|
|
9476
9521
|
responses: {
|
|
9477
9522
|
204: {},
|
|
9478
9523
|
404: {},
|
|
9479
9524
|
default: {
|
|
9480
|
-
bodyMapper: SearchError
|
|
9525
|
+
bodyMapper: SearchError
|
|
9481
9526
|
}
|
|
9482
9527
|
},
|
|
9483
|
-
queryParameters: [apiVersion
|
|
9484
|
-
urlParameters: [endpoint
|
|
9528
|
+
queryParameters: [apiVersion],
|
|
9529
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9485
9530
|
headerParameters: [
|
|
9486
|
-
accept
|
|
9487
|
-
xMsClientRequestId
|
|
9531
|
+
accept,
|
|
9532
|
+
xMsClientRequestId,
|
|
9488
9533
|
ifMatch,
|
|
9489
9534
|
ifNoneMatch
|
|
9490
9535
|
],
|
|
9491
|
-
serializer: serializer$
|
|
9536
|
+
serializer: serializer$5
|
|
9492
9537
|
};
|
|
9493
|
-
const getOperationSpec$
|
|
9538
|
+
const getOperationSpec$4 = {
|
|
9494
9539
|
path: "/datasources('{dataSourceName}')",
|
|
9495
9540
|
httpMethod: "GET",
|
|
9496
9541
|
responses: {
|
|
@@ -9498,15 +9543,15 @@ const getOperationSpec$1 = {
|
|
|
9498
9543
|
bodyMapper: SearchIndexerDataSource
|
|
9499
9544
|
},
|
|
9500
9545
|
default: {
|
|
9501
|
-
bodyMapper: SearchError
|
|
9546
|
+
bodyMapper: SearchError
|
|
9502
9547
|
}
|
|
9503
9548
|
},
|
|
9504
|
-
queryParameters: [apiVersion
|
|
9505
|
-
urlParameters: [endpoint
|
|
9506
|
-
headerParameters: [accept
|
|
9507
|
-
serializer: serializer$
|
|
9549
|
+
queryParameters: [apiVersion],
|
|
9550
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9551
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9552
|
+
serializer: serializer$5
|
|
9508
9553
|
};
|
|
9509
|
-
const listOperationSpec = {
|
|
9554
|
+
const listOperationSpec$4 = {
|
|
9510
9555
|
path: "/datasources",
|
|
9511
9556
|
httpMethod: "GET",
|
|
9512
9557
|
responses: {
|
|
@@ -9514,15 +9559,15 @@ const listOperationSpec = {
|
|
|
9514
9559
|
bodyMapper: ListDataSourcesResult
|
|
9515
9560
|
},
|
|
9516
9561
|
default: {
|
|
9517
|
-
bodyMapper: SearchError
|
|
9562
|
+
bodyMapper: SearchError
|
|
9518
9563
|
}
|
|
9519
9564
|
},
|
|
9520
|
-
queryParameters: [apiVersion
|
|
9521
|
-
urlParameters: [endpoint
|
|
9522
|
-
headerParameters: [accept
|
|
9523
|
-
serializer: serializer$
|
|
9565
|
+
queryParameters: [apiVersion, select],
|
|
9566
|
+
urlParameters: [endpoint],
|
|
9567
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9568
|
+
serializer: serializer$5
|
|
9524
9569
|
};
|
|
9525
|
-
const createOperationSpec = {
|
|
9570
|
+
const createOperationSpec$4 = {
|
|
9526
9571
|
path: "/datasources",
|
|
9527
9572
|
httpMethod: "POST",
|
|
9528
9573
|
responses: {
|
|
@@ -9530,19 +9575,19 @@ const createOperationSpec = {
|
|
|
9530
9575
|
bodyMapper: SearchIndexerDataSource
|
|
9531
9576
|
},
|
|
9532
9577
|
default: {
|
|
9533
|
-
bodyMapper: SearchError
|
|
9578
|
+
bodyMapper: SearchError
|
|
9534
9579
|
}
|
|
9535
9580
|
},
|
|
9536
9581
|
requestBody: dataSource,
|
|
9537
|
-
queryParameters: [apiVersion
|
|
9538
|
-
urlParameters: [endpoint
|
|
9582
|
+
queryParameters: [apiVersion],
|
|
9583
|
+
urlParameters: [endpoint],
|
|
9539
9584
|
headerParameters: [
|
|
9540
|
-
contentType
|
|
9541
|
-
accept
|
|
9542
|
-
xMsClientRequestId
|
|
9585
|
+
contentType,
|
|
9586
|
+
accept,
|
|
9587
|
+
xMsClientRequestId
|
|
9543
9588
|
],
|
|
9544
9589
|
mediaType: "json",
|
|
9545
|
-
serializer: serializer$
|
|
9590
|
+
serializer: serializer$5
|
|
9546
9591
|
};
|
|
9547
9592
|
|
|
9548
9593
|
/*
|
|
@@ -9592,7 +9637,7 @@ class IndexersImpl {
|
|
|
9592
9637
|
* @param options The options parameters.
|
|
9593
9638
|
*/
|
|
9594
9639
|
createOrUpdate(indexerName, indexer, options) {
|
|
9595
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
9640
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
9596
9641
|
}
|
|
9597
9642
|
/**
|
|
9598
9643
|
* Deletes an indexer.
|
|
@@ -9600,7 +9645,7 @@ class IndexersImpl {
|
|
|
9600
9645
|
* @param options The options parameters.
|
|
9601
9646
|
*/
|
|
9602
9647
|
delete(indexerName, options) {
|
|
9603
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
9648
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
9604
9649
|
}
|
|
9605
9650
|
/**
|
|
9606
9651
|
* Retrieves an indexer definition.
|
|
@@ -9608,14 +9653,14 @@ class IndexersImpl {
|
|
|
9608
9653
|
* @param options The options parameters.
|
|
9609
9654
|
*/
|
|
9610
9655
|
get(indexerName, options) {
|
|
9611
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
9656
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
9612
9657
|
}
|
|
9613
9658
|
/**
|
|
9614
9659
|
* Lists all indexers available for a search service.
|
|
9615
9660
|
* @param options The options parameters.
|
|
9616
9661
|
*/
|
|
9617
9662
|
list(options) {
|
|
9618
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9663
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
9619
9664
|
}
|
|
9620
9665
|
/**
|
|
9621
9666
|
* Creates a new indexer.
|
|
@@ -9623,7 +9668,7 @@ class IndexersImpl {
|
|
|
9623
9668
|
* @param options The options parameters.
|
|
9624
9669
|
*/
|
|
9625
9670
|
create(indexer, options) {
|
|
9626
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
9671
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
9627
9672
|
}
|
|
9628
9673
|
/**
|
|
9629
9674
|
* Returns the current status and execution history of an indexer.
|
|
@@ -9635,20 +9680,20 @@ class IndexersImpl {
|
|
|
9635
9680
|
}
|
|
9636
9681
|
}
|
|
9637
9682
|
// Operation Specifications
|
|
9638
|
-
const serializer$
|
|
9683
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9639
9684
|
const resetOperationSpec = {
|
|
9640
9685
|
path: "/indexers('{indexerName}')/search.reset",
|
|
9641
9686
|
httpMethod: "POST",
|
|
9642
9687
|
responses: {
|
|
9643
9688
|
204: {},
|
|
9644
9689
|
default: {
|
|
9645
|
-
bodyMapper: SearchError
|
|
9690
|
+
bodyMapper: SearchError
|
|
9646
9691
|
}
|
|
9647
9692
|
},
|
|
9648
|
-
queryParameters: [apiVersion
|
|
9649
|
-
urlParameters: [endpoint
|
|
9650
|
-
headerParameters: [accept
|
|
9651
|
-
serializer: serializer$
|
|
9693
|
+
queryParameters: [apiVersion],
|
|
9694
|
+
urlParameters: [endpoint, indexerName],
|
|
9695
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9696
|
+
serializer: serializer$4
|
|
9652
9697
|
};
|
|
9653
9698
|
const resetDocsOperationSpec = {
|
|
9654
9699
|
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
@@ -9656,19 +9701,19 @@ const resetDocsOperationSpec = {
|
|
|
9656
9701
|
responses: {
|
|
9657
9702
|
204: {},
|
|
9658
9703
|
default: {
|
|
9659
|
-
bodyMapper: SearchError
|
|
9704
|
+
bodyMapper: SearchError
|
|
9660
9705
|
}
|
|
9661
9706
|
},
|
|
9662
9707
|
requestBody: keysOrIds,
|
|
9663
|
-
queryParameters: [apiVersion
|
|
9664
|
-
urlParameters: [endpoint
|
|
9708
|
+
queryParameters: [apiVersion, overwrite],
|
|
9709
|
+
urlParameters: [endpoint, indexerName],
|
|
9665
9710
|
headerParameters: [
|
|
9666
|
-
contentType
|
|
9667
|
-
accept
|
|
9668
|
-
xMsClientRequestId
|
|
9711
|
+
contentType,
|
|
9712
|
+
accept,
|
|
9713
|
+
xMsClientRequestId
|
|
9669
9714
|
],
|
|
9670
9715
|
mediaType: "json",
|
|
9671
|
-
serializer: serializer$
|
|
9716
|
+
serializer: serializer$4
|
|
9672
9717
|
};
|
|
9673
9718
|
const runOperationSpec = {
|
|
9674
9719
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -9676,15 +9721,15 @@ const runOperationSpec = {
|
|
|
9676
9721
|
responses: {
|
|
9677
9722
|
202: {},
|
|
9678
9723
|
default: {
|
|
9679
|
-
bodyMapper: SearchError
|
|
9724
|
+
bodyMapper: SearchError
|
|
9680
9725
|
}
|
|
9681
9726
|
},
|
|
9682
|
-
queryParameters: [apiVersion
|
|
9683
|
-
urlParameters: [endpoint
|
|
9684
|
-
headerParameters: [accept
|
|
9685
|
-
serializer: serializer$
|
|
9727
|
+
queryParameters: [apiVersion],
|
|
9728
|
+
urlParameters: [endpoint, indexerName],
|
|
9729
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9730
|
+
serializer: serializer$4
|
|
9686
9731
|
};
|
|
9687
|
-
const createOrUpdateOperationSpec$
|
|
9732
|
+
const createOrUpdateOperationSpec$3 = {
|
|
9688
9733
|
path: "/indexers('{indexerName}')",
|
|
9689
9734
|
httpMethod: "PUT",
|
|
9690
9735
|
responses: {
|
|
@@ -9695,48 +9740,48 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
9695
9740
|
bodyMapper: SearchIndexer
|
|
9696
9741
|
},
|
|
9697
9742
|
default: {
|
|
9698
|
-
bodyMapper: SearchError
|
|
9743
|
+
bodyMapper: SearchError
|
|
9699
9744
|
}
|
|
9700
9745
|
},
|
|
9701
9746
|
requestBody: indexer,
|
|
9702
9747
|
queryParameters: [
|
|
9703
|
-
apiVersion
|
|
9748
|
+
apiVersion,
|
|
9704
9749
|
skipIndexerResetRequirementForCache,
|
|
9705
9750
|
disableCacheReprocessingChangeDetection
|
|
9706
9751
|
],
|
|
9707
|
-
urlParameters: [endpoint
|
|
9752
|
+
urlParameters: [endpoint, indexerName],
|
|
9708
9753
|
headerParameters: [
|
|
9709
|
-
contentType
|
|
9710
|
-
accept
|
|
9711
|
-
xMsClientRequestId
|
|
9754
|
+
contentType,
|
|
9755
|
+
accept,
|
|
9756
|
+
xMsClientRequestId,
|
|
9712
9757
|
ifMatch,
|
|
9713
9758
|
ifNoneMatch,
|
|
9714
9759
|
prefer
|
|
9715
9760
|
],
|
|
9716
9761
|
mediaType: "json",
|
|
9717
|
-
serializer: serializer$
|
|
9762
|
+
serializer: serializer$4
|
|
9718
9763
|
};
|
|
9719
|
-
const deleteOperationSpec$
|
|
9764
|
+
const deleteOperationSpec$3 = {
|
|
9720
9765
|
path: "/indexers('{indexerName}')",
|
|
9721
9766
|
httpMethod: "DELETE",
|
|
9722
9767
|
responses: {
|
|
9723
9768
|
204: {},
|
|
9724
9769
|
404: {},
|
|
9725
9770
|
default: {
|
|
9726
|
-
bodyMapper: SearchError
|
|
9771
|
+
bodyMapper: SearchError
|
|
9727
9772
|
}
|
|
9728
9773
|
},
|
|
9729
|
-
queryParameters: [apiVersion
|
|
9730
|
-
urlParameters: [endpoint
|
|
9774
|
+
queryParameters: [apiVersion],
|
|
9775
|
+
urlParameters: [endpoint, indexerName],
|
|
9731
9776
|
headerParameters: [
|
|
9732
|
-
accept
|
|
9733
|
-
xMsClientRequestId
|
|
9777
|
+
accept,
|
|
9778
|
+
xMsClientRequestId,
|
|
9734
9779
|
ifMatch,
|
|
9735
9780
|
ifNoneMatch
|
|
9736
9781
|
],
|
|
9737
|
-
serializer: serializer$
|
|
9782
|
+
serializer: serializer$4
|
|
9738
9783
|
};
|
|
9739
|
-
const getOperationSpec$
|
|
9784
|
+
const getOperationSpec$3 = {
|
|
9740
9785
|
path: "/indexers('{indexerName}')",
|
|
9741
9786
|
httpMethod: "GET",
|
|
9742
9787
|
responses: {
|
|
@@ -9744,15 +9789,15 @@ const getOperationSpec$2 = {
|
|
|
9744
9789
|
bodyMapper: SearchIndexer
|
|
9745
9790
|
},
|
|
9746
9791
|
default: {
|
|
9747
|
-
bodyMapper: SearchError
|
|
9792
|
+
bodyMapper: SearchError
|
|
9748
9793
|
}
|
|
9749
9794
|
},
|
|
9750
|
-
queryParameters: [apiVersion
|
|
9751
|
-
urlParameters: [endpoint
|
|
9752
|
-
headerParameters: [accept
|
|
9753
|
-
serializer: serializer$
|
|
9795
|
+
queryParameters: [apiVersion],
|
|
9796
|
+
urlParameters: [endpoint, indexerName],
|
|
9797
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9798
|
+
serializer: serializer$4
|
|
9754
9799
|
};
|
|
9755
|
-
const listOperationSpec$
|
|
9800
|
+
const listOperationSpec$3 = {
|
|
9756
9801
|
path: "/indexers",
|
|
9757
9802
|
httpMethod: "GET",
|
|
9758
9803
|
responses: {
|
|
@@ -9760,15 +9805,15 @@ const listOperationSpec$1 = {
|
|
|
9760
9805
|
bodyMapper: ListIndexersResult
|
|
9761
9806
|
},
|
|
9762
9807
|
default: {
|
|
9763
|
-
bodyMapper: SearchError
|
|
9808
|
+
bodyMapper: SearchError
|
|
9764
9809
|
}
|
|
9765
9810
|
},
|
|
9766
|
-
queryParameters: [apiVersion
|
|
9767
|
-
urlParameters: [endpoint
|
|
9768
|
-
headerParameters: [accept
|
|
9769
|
-
serializer: serializer$
|
|
9811
|
+
queryParameters: [apiVersion, select],
|
|
9812
|
+
urlParameters: [endpoint],
|
|
9813
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9814
|
+
serializer: serializer$4
|
|
9770
9815
|
};
|
|
9771
|
-
const createOperationSpec$
|
|
9816
|
+
const createOperationSpec$3 = {
|
|
9772
9817
|
path: "/indexers",
|
|
9773
9818
|
httpMethod: "POST",
|
|
9774
9819
|
responses: {
|
|
@@ -9776,19 +9821,19 @@ const createOperationSpec$1 = {
|
|
|
9776
9821
|
bodyMapper: SearchIndexer
|
|
9777
9822
|
},
|
|
9778
9823
|
default: {
|
|
9779
|
-
bodyMapper: SearchError
|
|
9824
|
+
bodyMapper: SearchError
|
|
9780
9825
|
}
|
|
9781
9826
|
},
|
|
9782
9827
|
requestBody: indexer,
|
|
9783
|
-
queryParameters: [apiVersion
|
|
9784
|
-
urlParameters: [endpoint
|
|
9828
|
+
queryParameters: [apiVersion],
|
|
9829
|
+
urlParameters: [endpoint],
|
|
9785
9830
|
headerParameters: [
|
|
9786
|
-
contentType
|
|
9787
|
-
accept
|
|
9788
|
-
xMsClientRequestId
|
|
9831
|
+
contentType,
|
|
9832
|
+
accept,
|
|
9833
|
+
xMsClientRequestId
|
|
9789
9834
|
],
|
|
9790
9835
|
mediaType: "json",
|
|
9791
|
-
serializer: serializer$
|
|
9836
|
+
serializer: serializer$4
|
|
9792
9837
|
};
|
|
9793
9838
|
const getStatusOperationSpec = {
|
|
9794
9839
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -9798,13 +9843,13 @@ const getStatusOperationSpec = {
|
|
|
9798
9843
|
bodyMapper: SearchIndexerStatus
|
|
9799
9844
|
},
|
|
9800
9845
|
default: {
|
|
9801
|
-
bodyMapper: SearchError
|
|
9846
|
+
bodyMapper: SearchError
|
|
9802
9847
|
}
|
|
9803
9848
|
},
|
|
9804
|
-
queryParameters: [apiVersion
|
|
9805
|
-
urlParameters: [endpoint
|
|
9806
|
-
headerParameters: [accept
|
|
9807
|
-
serializer: serializer$
|
|
9849
|
+
queryParameters: [apiVersion],
|
|
9850
|
+
urlParameters: [endpoint, indexerName],
|
|
9851
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9852
|
+
serializer: serializer$4
|
|
9808
9853
|
};
|
|
9809
9854
|
|
|
9810
9855
|
/*
|
|
@@ -9846,7 +9891,7 @@ class SkillsetsImpl {
|
|
|
9846
9891
|
* @param options The options parameters.
|
|
9847
9892
|
*/
|
|
9848
9893
|
get(skillsetName, options) {
|
|
9849
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
9894
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
9850
9895
|
}
|
|
9851
9896
|
/**
|
|
9852
9897
|
* List all skillsets in a search service.
|
|
@@ -9874,7 +9919,7 @@ class SkillsetsImpl {
|
|
|
9874
9919
|
}
|
|
9875
9920
|
}
|
|
9876
9921
|
// Operation Specifications
|
|
9877
|
-
const serializer$3 =
|
|
9922
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9878
9923
|
const createOrUpdateOperationSpec$2 = {
|
|
9879
9924
|
path: "/skillsets('{skillsetName}')",
|
|
9880
9925
|
httpMethod: "PUT",
|
|
@@ -9886,20 +9931,20 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
9886
9931
|
bodyMapper: SearchIndexerSkillset
|
|
9887
9932
|
},
|
|
9888
9933
|
default: {
|
|
9889
|
-
bodyMapper: SearchError
|
|
9934
|
+
bodyMapper: SearchError
|
|
9890
9935
|
}
|
|
9891
9936
|
},
|
|
9892
9937
|
requestBody: skillset,
|
|
9893
9938
|
queryParameters: [
|
|
9894
|
-
apiVersion
|
|
9939
|
+
apiVersion,
|
|
9895
9940
|
skipIndexerResetRequirementForCache,
|
|
9896
9941
|
disableCacheReprocessingChangeDetection
|
|
9897
9942
|
],
|
|
9898
|
-
urlParameters: [endpoint
|
|
9943
|
+
urlParameters: [endpoint, skillsetName],
|
|
9899
9944
|
headerParameters: [
|
|
9900
|
-
contentType
|
|
9901
|
-
accept
|
|
9902
|
-
xMsClientRequestId
|
|
9945
|
+
contentType,
|
|
9946
|
+
accept,
|
|
9947
|
+
xMsClientRequestId,
|
|
9903
9948
|
ifMatch,
|
|
9904
9949
|
ifNoneMatch,
|
|
9905
9950
|
prefer
|
|
@@ -9914,20 +9959,20 @@ const deleteOperationSpec$2 = {
|
|
|
9914
9959
|
204: {},
|
|
9915
9960
|
404: {},
|
|
9916
9961
|
default: {
|
|
9917
|
-
bodyMapper: SearchError
|
|
9962
|
+
bodyMapper: SearchError
|
|
9918
9963
|
}
|
|
9919
9964
|
},
|
|
9920
|
-
queryParameters: [apiVersion
|
|
9921
|
-
urlParameters: [endpoint
|
|
9965
|
+
queryParameters: [apiVersion],
|
|
9966
|
+
urlParameters: [endpoint, skillsetName],
|
|
9922
9967
|
headerParameters: [
|
|
9923
|
-
accept
|
|
9924
|
-
xMsClientRequestId
|
|
9968
|
+
accept,
|
|
9969
|
+
xMsClientRequestId,
|
|
9925
9970
|
ifMatch,
|
|
9926
9971
|
ifNoneMatch
|
|
9927
9972
|
],
|
|
9928
9973
|
serializer: serializer$3
|
|
9929
9974
|
};
|
|
9930
|
-
const getOperationSpec$
|
|
9975
|
+
const getOperationSpec$2 = {
|
|
9931
9976
|
path: "/skillsets('{skillsetName}')",
|
|
9932
9977
|
httpMethod: "GET",
|
|
9933
9978
|
responses: {
|
|
@@ -9935,12 +9980,12 @@ const getOperationSpec$3 = {
|
|
|
9935
9980
|
bodyMapper: SearchIndexerSkillset
|
|
9936
9981
|
},
|
|
9937
9982
|
default: {
|
|
9938
|
-
bodyMapper: SearchError
|
|
9983
|
+
bodyMapper: SearchError
|
|
9939
9984
|
}
|
|
9940
9985
|
},
|
|
9941
|
-
queryParameters: [apiVersion
|
|
9942
|
-
urlParameters: [endpoint
|
|
9943
|
-
headerParameters: [accept
|
|
9986
|
+
queryParameters: [apiVersion],
|
|
9987
|
+
urlParameters: [endpoint, skillsetName],
|
|
9988
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9944
9989
|
serializer: serializer$3
|
|
9945
9990
|
};
|
|
9946
9991
|
const listOperationSpec$2 = {
|
|
@@ -9951,12 +9996,12 @@ const listOperationSpec$2 = {
|
|
|
9951
9996
|
bodyMapper: ListSkillsetsResult
|
|
9952
9997
|
},
|
|
9953
9998
|
default: {
|
|
9954
|
-
bodyMapper: SearchError
|
|
9999
|
+
bodyMapper: SearchError
|
|
9955
10000
|
}
|
|
9956
10001
|
},
|
|
9957
|
-
queryParameters: [apiVersion
|
|
9958
|
-
urlParameters: [endpoint
|
|
9959
|
-
headerParameters: [accept
|
|
10002
|
+
queryParameters: [apiVersion, select],
|
|
10003
|
+
urlParameters: [endpoint],
|
|
10004
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9960
10005
|
serializer: serializer$3
|
|
9961
10006
|
};
|
|
9962
10007
|
const createOperationSpec$2 = {
|
|
@@ -9967,16 +10012,16 @@ const createOperationSpec$2 = {
|
|
|
9967
10012
|
bodyMapper: SearchIndexerSkillset
|
|
9968
10013
|
},
|
|
9969
10014
|
default: {
|
|
9970
|
-
bodyMapper: SearchError
|
|
10015
|
+
bodyMapper: SearchError
|
|
9971
10016
|
}
|
|
9972
10017
|
},
|
|
9973
10018
|
requestBody: skillset,
|
|
9974
|
-
queryParameters: [apiVersion
|
|
9975
|
-
urlParameters: [endpoint
|
|
10019
|
+
queryParameters: [apiVersion],
|
|
10020
|
+
urlParameters: [endpoint],
|
|
9976
10021
|
headerParameters: [
|
|
9977
|
-
contentType
|
|
9978
|
-
accept
|
|
9979
|
-
xMsClientRequestId
|
|
10022
|
+
contentType,
|
|
10023
|
+
accept,
|
|
10024
|
+
xMsClientRequestId
|
|
9980
10025
|
],
|
|
9981
10026
|
mediaType: "json",
|
|
9982
10027
|
serializer: serializer$3
|
|
@@ -9987,16 +10032,16 @@ const resetSkillsOperationSpec = {
|
|
|
9987
10032
|
responses: {
|
|
9988
10033
|
204: {},
|
|
9989
10034
|
default: {
|
|
9990
|
-
bodyMapper: SearchError
|
|
10035
|
+
bodyMapper: SearchError
|
|
9991
10036
|
}
|
|
9992
10037
|
},
|
|
9993
10038
|
requestBody: skillNames,
|
|
9994
|
-
queryParameters: [apiVersion
|
|
9995
|
-
urlParameters: [endpoint
|
|
10039
|
+
queryParameters: [apiVersion],
|
|
10040
|
+
urlParameters: [endpoint, skillsetName],
|
|
9996
10041
|
headerParameters: [
|
|
9997
|
-
contentType
|
|
9998
|
-
accept
|
|
9999
|
-
xMsClientRequestId
|
|
10042
|
+
contentType,
|
|
10043
|
+
accept,
|
|
10044
|
+
xMsClientRequestId
|
|
10000
10045
|
],
|
|
10001
10046
|
mediaType: "json",
|
|
10002
10047
|
serializer: serializer$3
|
|
@@ -10025,7 +10070,7 @@ class SynonymMapsImpl {
|
|
|
10025
10070
|
* @param options The options parameters.
|
|
10026
10071
|
*/
|
|
10027
10072
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
10028
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
10073
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
10029
10074
|
}
|
|
10030
10075
|
/**
|
|
10031
10076
|
* Deletes a synonym map.
|
|
@@ -10033,7 +10078,7 @@ class SynonymMapsImpl {
|
|
|
10033
10078
|
* @param options The options parameters.
|
|
10034
10079
|
*/
|
|
10035
10080
|
delete(synonymMapName, options) {
|
|
10036
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
10081
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
10037
10082
|
}
|
|
10038
10083
|
/**
|
|
10039
10084
|
* Retrieves a synonym map definition.
|
|
@@ -10041,14 +10086,14 @@ class SynonymMapsImpl {
|
|
|
10041
10086
|
* @param options The options parameters.
|
|
10042
10087
|
*/
|
|
10043
10088
|
get(synonymMapName, options) {
|
|
10044
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
10089
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
10045
10090
|
}
|
|
10046
10091
|
/**
|
|
10047
10092
|
* Lists all synonym maps available for a search service.
|
|
10048
10093
|
* @param options The options parameters.
|
|
10049
10094
|
*/
|
|
10050
10095
|
list(options) {
|
|
10051
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10096
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
10052
10097
|
}
|
|
10053
10098
|
/**
|
|
10054
10099
|
* Creates a new synonym map.
|
|
@@ -10056,12 +10101,12 @@ class SynonymMapsImpl {
|
|
|
10056
10101
|
* @param options The options parameters.
|
|
10057
10102
|
*/
|
|
10058
10103
|
create(synonymMap, options) {
|
|
10059
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
10104
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
10060
10105
|
}
|
|
10061
10106
|
}
|
|
10062
10107
|
// Operation Specifications
|
|
10063
|
-
const serializer$
|
|
10064
|
-
const createOrUpdateOperationSpec$
|
|
10108
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10109
|
+
const createOrUpdateOperationSpec$1 = {
|
|
10065
10110
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10066
10111
|
httpMethod: "PUT",
|
|
10067
10112
|
responses: {
|
|
@@ -10072,44 +10117,44 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
10072
10117
|
bodyMapper: SynonymMap
|
|
10073
10118
|
},
|
|
10074
10119
|
default: {
|
|
10075
|
-
bodyMapper: SearchError
|
|
10120
|
+
bodyMapper: SearchError
|
|
10076
10121
|
}
|
|
10077
10122
|
},
|
|
10078
10123
|
requestBody: synonymMap,
|
|
10079
|
-
queryParameters: [apiVersion
|
|
10080
|
-
urlParameters: [endpoint
|
|
10124
|
+
queryParameters: [apiVersion],
|
|
10125
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10081
10126
|
headerParameters: [
|
|
10082
|
-
contentType
|
|
10083
|
-
accept
|
|
10084
|
-
xMsClientRequestId
|
|
10127
|
+
contentType,
|
|
10128
|
+
accept,
|
|
10129
|
+
xMsClientRequestId,
|
|
10085
10130
|
ifMatch,
|
|
10086
10131
|
ifNoneMatch,
|
|
10087
10132
|
prefer
|
|
10088
10133
|
],
|
|
10089
10134
|
mediaType: "json",
|
|
10090
|
-
serializer: serializer$
|
|
10135
|
+
serializer: serializer$2
|
|
10091
10136
|
};
|
|
10092
|
-
const deleteOperationSpec$
|
|
10137
|
+
const deleteOperationSpec$1 = {
|
|
10093
10138
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10094
10139
|
httpMethod: "DELETE",
|
|
10095
10140
|
responses: {
|
|
10096
10141
|
204: {},
|
|
10097
10142
|
404: {},
|
|
10098
10143
|
default: {
|
|
10099
|
-
bodyMapper: SearchError
|
|
10144
|
+
bodyMapper: SearchError
|
|
10100
10145
|
}
|
|
10101
10146
|
},
|
|
10102
|
-
queryParameters: [apiVersion
|
|
10103
|
-
urlParameters: [endpoint
|
|
10147
|
+
queryParameters: [apiVersion],
|
|
10148
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10104
10149
|
headerParameters: [
|
|
10105
|
-
accept
|
|
10106
|
-
xMsClientRequestId
|
|
10150
|
+
accept,
|
|
10151
|
+
xMsClientRequestId,
|
|
10107
10152
|
ifMatch,
|
|
10108
10153
|
ifNoneMatch
|
|
10109
10154
|
],
|
|
10110
|
-
serializer: serializer$
|
|
10155
|
+
serializer: serializer$2
|
|
10111
10156
|
};
|
|
10112
|
-
const getOperationSpec$
|
|
10157
|
+
const getOperationSpec$1 = {
|
|
10113
10158
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10114
10159
|
httpMethod: "GET",
|
|
10115
10160
|
responses: {
|
|
@@ -10117,15 +10162,15 @@ const getOperationSpec$4 = {
|
|
|
10117
10162
|
bodyMapper: SynonymMap
|
|
10118
10163
|
},
|
|
10119
10164
|
default: {
|
|
10120
|
-
bodyMapper: SearchError
|
|
10165
|
+
bodyMapper: SearchError
|
|
10121
10166
|
}
|
|
10122
10167
|
},
|
|
10123
|
-
queryParameters: [apiVersion
|
|
10124
|
-
urlParameters: [endpoint
|
|
10125
|
-
headerParameters: [accept
|
|
10126
|
-
serializer: serializer$
|
|
10168
|
+
queryParameters: [apiVersion],
|
|
10169
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10170
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10171
|
+
serializer: serializer$2
|
|
10127
10172
|
};
|
|
10128
|
-
const listOperationSpec$
|
|
10173
|
+
const listOperationSpec$1 = {
|
|
10129
10174
|
path: "/synonymmaps",
|
|
10130
10175
|
httpMethod: "GET",
|
|
10131
10176
|
responses: {
|
|
@@ -10133,15 +10178,15 @@ const listOperationSpec$3 = {
|
|
|
10133
10178
|
bodyMapper: ListSynonymMapsResult
|
|
10134
10179
|
},
|
|
10135
10180
|
default: {
|
|
10136
|
-
bodyMapper: SearchError
|
|
10181
|
+
bodyMapper: SearchError
|
|
10137
10182
|
}
|
|
10138
10183
|
},
|
|
10139
|
-
queryParameters: [apiVersion
|
|
10140
|
-
urlParameters: [endpoint
|
|
10141
|
-
headerParameters: [accept
|
|
10142
|
-
serializer: serializer$
|
|
10184
|
+
queryParameters: [apiVersion, select],
|
|
10185
|
+
urlParameters: [endpoint],
|
|
10186
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10187
|
+
serializer: serializer$2
|
|
10143
10188
|
};
|
|
10144
|
-
const createOperationSpec$
|
|
10189
|
+
const createOperationSpec$1 = {
|
|
10145
10190
|
path: "/synonymmaps",
|
|
10146
10191
|
httpMethod: "POST",
|
|
10147
10192
|
responses: {
|
|
@@ -10149,19 +10194,19 @@ const createOperationSpec$3 = {
|
|
|
10149
10194
|
bodyMapper: SynonymMap
|
|
10150
10195
|
},
|
|
10151
10196
|
default: {
|
|
10152
|
-
bodyMapper: SearchError
|
|
10197
|
+
bodyMapper: SearchError
|
|
10153
10198
|
}
|
|
10154
10199
|
},
|
|
10155
10200
|
requestBody: synonymMap,
|
|
10156
|
-
queryParameters: [apiVersion
|
|
10157
|
-
urlParameters: [endpoint
|
|
10201
|
+
queryParameters: [apiVersion],
|
|
10202
|
+
urlParameters: [endpoint],
|
|
10158
10203
|
headerParameters: [
|
|
10159
|
-
contentType
|
|
10160
|
-
accept
|
|
10161
|
-
xMsClientRequestId
|
|
10204
|
+
contentType,
|
|
10205
|
+
accept,
|
|
10206
|
+
xMsClientRequestId
|
|
10162
10207
|
],
|
|
10163
10208
|
mediaType: "json",
|
|
10164
|
-
serializer: serializer$
|
|
10209
|
+
serializer: serializer$2
|
|
10165
10210
|
};
|
|
10166
10211
|
|
|
10167
10212
|
/*
|
|
@@ -10186,14 +10231,14 @@ class IndexesImpl {
|
|
|
10186
10231
|
* @param options The options parameters.
|
|
10187
10232
|
*/
|
|
10188
10233
|
create(index, options) {
|
|
10189
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec
|
|
10234
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
10190
10235
|
}
|
|
10191
10236
|
/**
|
|
10192
10237
|
* Lists all indexes available for a search service.
|
|
10193
10238
|
* @param options The options parameters.
|
|
10194
10239
|
*/
|
|
10195
10240
|
list(options) {
|
|
10196
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
10241
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
10197
10242
|
}
|
|
10198
10243
|
/**
|
|
10199
10244
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -10202,7 +10247,7 @@ class IndexesImpl {
|
|
|
10202
10247
|
* @param options The options parameters.
|
|
10203
10248
|
*/
|
|
10204
10249
|
createOrUpdate(indexName, index, options) {
|
|
10205
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec
|
|
10250
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
10206
10251
|
}
|
|
10207
10252
|
/**
|
|
10208
10253
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -10212,7 +10257,7 @@ class IndexesImpl {
|
|
|
10212
10257
|
* @param options The options parameters.
|
|
10213
10258
|
*/
|
|
10214
10259
|
delete(indexName, options) {
|
|
10215
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec
|
|
10260
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
10216
10261
|
}
|
|
10217
10262
|
/**
|
|
10218
10263
|
* Retrieves an index definition.
|
|
@@ -10220,7 +10265,7 @@ class IndexesImpl {
|
|
|
10220
10265
|
* @param options The options parameters.
|
|
10221
10266
|
*/
|
|
10222
10267
|
get(indexName, options) {
|
|
10223
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec
|
|
10268
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
10224
10269
|
}
|
|
10225
10270
|
/**
|
|
10226
10271
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10241,8 +10286,8 @@ class IndexesImpl {
|
|
|
10241
10286
|
}
|
|
10242
10287
|
}
|
|
10243
10288
|
// Operation Specifications
|
|
10244
|
-
const serializer$
|
|
10245
|
-
const createOperationSpec
|
|
10289
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10290
|
+
const createOperationSpec = {
|
|
10246
10291
|
path: "/indexes",
|
|
10247
10292
|
httpMethod: "POST",
|
|
10248
10293
|
responses: {
|
|
@@ -10250,21 +10295,21 @@ const createOperationSpec$4 = {
|
|
|
10250
10295
|
bodyMapper: SearchIndex
|
|
10251
10296
|
},
|
|
10252
10297
|
default: {
|
|
10253
|
-
bodyMapper: SearchError
|
|
10298
|
+
bodyMapper: SearchError
|
|
10254
10299
|
}
|
|
10255
10300
|
},
|
|
10256
10301
|
requestBody: index,
|
|
10257
|
-
queryParameters: [apiVersion
|
|
10258
|
-
urlParameters: [endpoint
|
|
10302
|
+
queryParameters: [apiVersion],
|
|
10303
|
+
urlParameters: [endpoint],
|
|
10259
10304
|
headerParameters: [
|
|
10260
|
-
contentType
|
|
10261
|
-
accept
|
|
10262
|
-
xMsClientRequestId
|
|
10305
|
+
contentType,
|
|
10306
|
+
accept,
|
|
10307
|
+
xMsClientRequestId
|
|
10263
10308
|
],
|
|
10264
10309
|
mediaType: "json",
|
|
10265
|
-
serializer: serializer$
|
|
10310
|
+
serializer: serializer$1
|
|
10266
10311
|
};
|
|
10267
|
-
const listOperationSpec
|
|
10312
|
+
const listOperationSpec = {
|
|
10268
10313
|
path: "/indexes",
|
|
10269
10314
|
httpMethod: "GET",
|
|
10270
10315
|
responses: {
|
|
@@ -10272,15 +10317,15 @@ const listOperationSpec$4 = {
|
|
|
10272
10317
|
bodyMapper: ListIndexesResult
|
|
10273
10318
|
},
|
|
10274
10319
|
default: {
|
|
10275
|
-
bodyMapper: SearchError
|
|
10320
|
+
bodyMapper: SearchError
|
|
10276
10321
|
}
|
|
10277
10322
|
},
|
|
10278
|
-
queryParameters: [apiVersion
|
|
10279
|
-
urlParameters: [endpoint
|
|
10280
|
-
headerParameters: [accept
|
|
10281
|
-
serializer: serializer$
|
|
10323
|
+
queryParameters: [apiVersion, select],
|
|
10324
|
+
urlParameters: [endpoint],
|
|
10325
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10326
|
+
serializer: serializer$1
|
|
10282
10327
|
};
|
|
10283
|
-
const createOrUpdateOperationSpec
|
|
10328
|
+
const createOrUpdateOperationSpec = {
|
|
10284
10329
|
path: "/indexes('{indexName}')",
|
|
10285
10330
|
httpMethod: "PUT",
|
|
10286
10331
|
responses: {
|
|
@@ -10291,44 +10336,44 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10291
10336
|
bodyMapper: SearchIndex
|
|
10292
10337
|
},
|
|
10293
10338
|
default: {
|
|
10294
|
-
bodyMapper: SearchError
|
|
10339
|
+
bodyMapper: SearchError
|
|
10295
10340
|
}
|
|
10296
10341
|
},
|
|
10297
10342
|
requestBody: index,
|
|
10298
|
-
queryParameters: [apiVersion
|
|
10299
|
-
urlParameters: [endpoint
|
|
10343
|
+
queryParameters: [apiVersion, allowIndexDowntime],
|
|
10344
|
+
urlParameters: [endpoint, indexName],
|
|
10300
10345
|
headerParameters: [
|
|
10301
|
-
contentType
|
|
10302
|
-
accept
|
|
10303
|
-
xMsClientRequestId
|
|
10346
|
+
contentType,
|
|
10347
|
+
accept,
|
|
10348
|
+
xMsClientRequestId,
|
|
10304
10349
|
ifMatch,
|
|
10305
10350
|
ifNoneMatch,
|
|
10306
10351
|
prefer
|
|
10307
10352
|
],
|
|
10308
10353
|
mediaType: "json",
|
|
10309
|
-
serializer: serializer$
|
|
10354
|
+
serializer: serializer$1
|
|
10310
10355
|
};
|
|
10311
|
-
const deleteOperationSpec
|
|
10356
|
+
const deleteOperationSpec = {
|
|
10312
10357
|
path: "/indexes('{indexName}')",
|
|
10313
10358
|
httpMethod: "DELETE",
|
|
10314
10359
|
responses: {
|
|
10315
10360
|
204: {},
|
|
10316
10361
|
404: {},
|
|
10317
10362
|
default: {
|
|
10318
|
-
bodyMapper: SearchError
|
|
10363
|
+
bodyMapper: SearchError
|
|
10319
10364
|
}
|
|
10320
10365
|
},
|
|
10321
|
-
queryParameters: [apiVersion
|
|
10322
|
-
urlParameters: [endpoint
|
|
10366
|
+
queryParameters: [apiVersion],
|
|
10367
|
+
urlParameters: [endpoint, indexName],
|
|
10323
10368
|
headerParameters: [
|
|
10324
|
-
accept
|
|
10325
|
-
xMsClientRequestId
|
|
10369
|
+
accept,
|
|
10370
|
+
xMsClientRequestId,
|
|
10326
10371
|
ifMatch,
|
|
10327
10372
|
ifNoneMatch
|
|
10328
10373
|
],
|
|
10329
|
-
serializer: serializer$
|
|
10374
|
+
serializer: serializer$1
|
|
10330
10375
|
};
|
|
10331
|
-
const getOperationSpec
|
|
10376
|
+
const getOperationSpec = {
|
|
10332
10377
|
path: "/indexes('{indexName}')",
|
|
10333
10378
|
httpMethod: "GET",
|
|
10334
10379
|
responses: {
|
|
@@ -10336,13 +10381,13 @@ const getOperationSpec$5 = {
|
|
|
10336
10381
|
bodyMapper: SearchIndex
|
|
10337
10382
|
},
|
|
10338
10383
|
default: {
|
|
10339
|
-
bodyMapper: SearchError
|
|
10384
|
+
bodyMapper: SearchError
|
|
10340
10385
|
}
|
|
10341
10386
|
},
|
|
10342
|
-
queryParameters: [apiVersion
|
|
10343
|
-
urlParameters: [endpoint
|
|
10344
|
-
headerParameters: [accept
|
|
10345
|
-
serializer: serializer$
|
|
10387
|
+
queryParameters: [apiVersion],
|
|
10388
|
+
urlParameters: [endpoint, indexName],
|
|
10389
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10390
|
+
serializer: serializer$1
|
|
10346
10391
|
};
|
|
10347
10392
|
const getStatisticsOperationSpec = {
|
|
10348
10393
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -10352,13 +10397,13 @@ const getStatisticsOperationSpec = {
|
|
|
10352
10397
|
bodyMapper: GetIndexStatisticsResult
|
|
10353
10398
|
},
|
|
10354
10399
|
default: {
|
|
10355
|
-
bodyMapper: SearchError
|
|
10400
|
+
bodyMapper: SearchError
|
|
10356
10401
|
}
|
|
10357
10402
|
},
|
|
10358
|
-
queryParameters: [apiVersion
|
|
10359
|
-
urlParameters: [endpoint
|
|
10360
|
-
headerParameters: [accept
|
|
10361
|
-
serializer: serializer$
|
|
10403
|
+
queryParameters: [apiVersion],
|
|
10404
|
+
urlParameters: [endpoint, indexName],
|
|
10405
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10406
|
+
serializer: serializer$1
|
|
10362
10407
|
};
|
|
10363
10408
|
const analyzeOperationSpec = {
|
|
10364
10409
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -10368,19 +10413,19 @@ const analyzeOperationSpec = {
|
|
|
10368
10413
|
bodyMapper: AnalyzeResult
|
|
10369
10414
|
},
|
|
10370
10415
|
default: {
|
|
10371
|
-
bodyMapper: SearchError
|
|
10416
|
+
bodyMapper: SearchError
|
|
10372
10417
|
}
|
|
10373
10418
|
},
|
|
10374
10419
|
requestBody: request,
|
|
10375
|
-
queryParameters: [apiVersion
|
|
10376
|
-
urlParameters: [endpoint
|
|
10420
|
+
queryParameters: [apiVersion],
|
|
10421
|
+
urlParameters: [endpoint, indexName],
|
|
10377
10422
|
headerParameters: [
|
|
10378
|
-
contentType
|
|
10379
|
-
accept
|
|
10380
|
-
xMsClientRequestId
|
|
10423
|
+
contentType,
|
|
10424
|
+
accept,
|
|
10425
|
+
xMsClientRequestId
|
|
10381
10426
|
],
|
|
10382
10427
|
mediaType: "json",
|
|
10383
|
-
serializer: serializer$
|
|
10428
|
+
serializer: serializer$1
|
|
10384
10429
|
};
|
|
10385
10430
|
|
|
10386
10431
|
/*
|
|
@@ -10391,7 +10436,7 @@ const analyzeOperationSpec = {
|
|
|
10391
10436
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10392
10437
|
*/
|
|
10393
10438
|
/** @internal */
|
|
10394
|
-
class SearchServiceClientContext extends
|
|
10439
|
+
class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
|
|
10395
10440
|
/**
|
|
10396
10441
|
* Initializes a new instance of the SearchServiceClientContext class.
|
|
10397
10442
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -10458,7 +10503,7 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10458
10503
|
}
|
|
10459
10504
|
}
|
|
10460
10505
|
// Operation Specifications
|
|
10461
|
-
const serializer
|
|
10506
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10462
10507
|
const getServiceStatisticsOperationSpec = {
|
|
10463
10508
|
path: "/servicestats",
|
|
10464
10509
|
httpMethod: "GET",
|
|
@@ -10467,13 +10512,13 @@ const getServiceStatisticsOperationSpec = {
|
|
|
10467
10512
|
bodyMapper: ServiceStatistics
|
|
10468
10513
|
},
|
|
10469
10514
|
default: {
|
|
10470
|
-
bodyMapper: SearchError
|
|
10515
|
+
bodyMapper: SearchError
|
|
10471
10516
|
}
|
|
10472
10517
|
},
|
|
10473
|
-
queryParameters: [apiVersion
|
|
10474
|
-
urlParameters: [endpoint
|
|
10475
|
-
headerParameters: [accept
|
|
10476
|
-
serializer
|
|
10518
|
+
queryParameters: [apiVersion],
|
|
10519
|
+
urlParameters: [endpoint],
|
|
10520
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10521
|
+
serializer
|
|
10477
10522
|
};
|
|
10478
10523
|
|
|
10479
10524
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -10503,7 +10548,12 @@ class SearchIndexClient {
|
|
|
10503
10548
|
/**
|
|
10504
10549
|
* The API version to use when communicating with the service.
|
|
10505
10550
|
*/
|
|
10506
|
-
this.
|
|
10551
|
+
this.serviceVersion = defaultServiceVersion;
|
|
10552
|
+
/**
|
|
10553
|
+
* The API version to use when communicating with the service.
|
|
10554
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
10555
|
+
*/
|
|
10556
|
+
this.apiVersion = defaultServiceVersion;
|
|
10507
10557
|
this.endpoint = endpoint;
|
|
10508
10558
|
this.credential = credential;
|
|
10509
10559
|
this.options = options;
|
|
@@ -10526,18 +10576,25 @@ class SearchIndexClient {
|
|
|
10526
10576
|
"OData-MaxVersion",
|
|
10527
10577
|
"OData-Version",
|
|
10528
10578
|
"Prefer",
|
|
10529
|
-
"throttle-reason"
|
|
10530
|
-
]
|
|
10531
|
-
}
|
|
10579
|
+
"throttle-reason",
|
|
10580
|
+
],
|
|
10581
|
+
},
|
|
10532
10582
|
});
|
|
10533
|
-
let apiVersion = this.apiVersion;
|
|
10534
10583
|
if (options.apiVersion) {
|
|
10535
|
-
if (!
|
|
10584
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
10536
10585
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
10537
10586
|
}
|
|
10538
|
-
|
|
10587
|
+
this.serviceVersion = options.apiVersion;
|
|
10588
|
+
this.apiVersion = options.apiVersion;
|
|
10539
10589
|
}
|
|
10540
|
-
|
|
10590
|
+
if (options.serviceVersion) {
|
|
10591
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
10592
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
10593
|
+
}
|
|
10594
|
+
this.serviceVersion = options.serviceVersion;
|
|
10595
|
+
this.apiVersion = options.serviceVersion;
|
|
10596
|
+
}
|
|
10597
|
+
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
10541
10598
|
if (coreAuth.isTokenCredential(credential)) {
|
|
10542
10599
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
10543
10600
|
}
|
|
@@ -10557,7 +10614,7 @@ class SearchIndexClient {
|
|
|
10557
10614
|
catch (e) {
|
|
10558
10615
|
span.setStatus({
|
|
10559
10616
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10560
|
-
message: e.message
|
|
10617
|
+
message: e.message,
|
|
10561
10618
|
});
|
|
10562
10619
|
throw e;
|
|
10563
10620
|
}
|
|
@@ -10599,7 +10656,7 @@ class SearchIndexClient {
|
|
|
10599
10656
|
},
|
|
10600
10657
|
byPage: () => {
|
|
10601
10658
|
return this.listIndexesPage(options);
|
|
10602
|
-
}
|
|
10659
|
+
},
|
|
10603
10660
|
};
|
|
10604
10661
|
}
|
|
10605
10662
|
listIndexesNamesPage(options = {}) {
|
|
@@ -10613,7 +10670,7 @@ class SearchIndexClient {
|
|
|
10613
10670
|
catch (e) {
|
|
10614
10671
|
span.setStatus({
|
|
10615
10672
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10616
|
-
message: e.message
|
|
10673
|
+
message: e.message,
|
|
10617
10674
|
});
|
|
10618
10675
|
throw e;
|
|
10619
10676
|
}
|
|
@@ -10655,7 +10712,7 @@ class SearchIndexClient {
|
|
|
10655
10712
|
},
|
|
10656
10713
|
byPage: () => {
|
|
10657
10714
|
return this.listIndexesNamesPage(options);
|
|
10658
|
-
}
|
|
10715
|
+
},
|
|
10659
10716
|
};
|
|
10660
10717
|
}
|
|
10661
10718
|
/**
|
|
@@ -10671,7 +10728,7 @@ class SearchIndexClient {
|
|
|
10671
10728
|
catch (e) {
|
|
10672
10729
|
span.setStatus({
|
|
10673
10730
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10674
|
-
message: e.message
|
|
10731
|
+
message: e.message,
|
|
10675
10732
|
});
|
|
10676
10733
|
throw e;
|
|
10677
10734
|
}
|
|
@@ -10692,7 +10749,7 @@ class SearchIndexClient {
|
|
|
10692
10749
|
catch (e) {
|
|
10693
10750
|
span.setStatus({
|
|
10694
10751
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10695
|
-
message: e.message
|
|
10752
|
+
message: e.message,
|
|
10696
10753
|
});
|
|
10697
10754
|
throw e;
|
|
10698
10755
|
}
|
|
@@ -10714,7 +10771,7 @@ class SearchIndexClient {
|
|
|
10714
10771
|
catch (e) {
|
|
10715
10772
|
span.setStatus({
|
|
10716
10773
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10717
|
-
message: e.message
|
|
10774
|
+
message: e.message,
|
|
10718
10775
|
});
|
|
10719
10776
|
throw e;
|
|
10720
10777
|
}
|
|
@@ -10736,7 +10793,7 @@ class SearchIndexClient {
|
|
|
10736
10793
|
catch (e) {
|
|
10737
10794
|
span.setStatus({
|
|
10738
10795
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10739
|
-
message: e.message
|
|
10796
|
+
message: e.message,
|
|
10740
10797
|
});
|
|
10741
10798
|
throw e;
|
|
10742
10799
|
}
|
|
@@ -10758,7 +10815,7 @@ class SearchIndexClient {
|
|
|
10758
10815
|
catch (e) {
|
|
10759
10816
|
span.setStatus({
|
|
10760
10817
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10761
|
-
message: e.message
|
|
10818
|
+
message: e.message,
|
|
10762
10819
|
});
|
|
10763
10820
|
throw e;
|
|
10764
10821
|
}
|
|
@@ -10780,7 +10837,7 @@ class SearchIndexClient {
|
|
|
10780
10837
|
catch (e) {
|
|
10781
10838
|
span.setStatus({
|
|
10782
10839
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10783
|
-
message: e.message
|
|
10840
|
+
message: e.message,
|
|
10784
10841
|
});
|
|
10785
10842
|
throw e;
|
|
10786
10843
|
}
|
|
@@ -10803,7 +10860,7 @@ class SearchIndexClient {
|
|
|
10803
10860
|
catch (e) {
|
|
10804
10861
|
span.setStatus({
|
|
10805
10862
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10806
|
-
message: e.message
|
|
10863
|
+
message: e.message,
|
|
10807
10864
|
});
|
|
10808
10865
|
throw e;
|
|
10809
10866
|
}
|
|
@@ -10826,7 +10883,7 @@ class SearchIndexClient {
|
|
|
10826
10883
|
catch (e) {
|
|
10827
10884
|
span.setStatus({
|
|
10828
10885
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10829
|
-
message: e.message
|
|
10886
|
+
message: e.message,
|
|
10830
10887
|
});
|
|
10831
10888
|
throw e;
|
|
10832
10889
|
}
|
|
@@ -10849,7 +10906,7 @@ class SearchIndexClient {
|
|
|
10849
10906
|
catch (e) {
|
|
10850
10907
|
span.setStatus({
|
|
10851
10908
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10852
|
-
message: e.message
|
|
10909
|
+
message: e.message,
|
|
10853
10910
|
});
|
|
10854
10911
|
throw e;
|
|
10855
10912
|
}
|
|
@@ -10876,7 +10933,7 @@ class SearchIndexClient {
|
|
|
10876
10933
|
catch (e) {
|
|
10877
10934
|
span.setStatus({
|
|
10878
10935
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10879
|
-
message: e.message
|
|
10936
|
+
message: e.message,
|
|
10880
10937
|
});
|
|
10881
10938
|
throw e;
|
|
10882
10939
|
}
|
|
@@ -10899,7 +10956,7 @@ class SearchIndexClient {
|
|
|
10899
10956
|
catch (e) {
|
|
10900
10957
|
span.setStatus({
|
|
10901
10958
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10902
|
-
message: e.message
|
|
10959
|
+
message: e.message,
|
|
10903
10960
|
});
|
|
10904
10961
|
throw e;
|
|
10905
10962
|
}
|
|
@@ -10918,7 +10975,7 @@ class SearchIndexClient {
|
|
|
10918
10975
|
const operationOptions = {
|
|
10919
10976
|
abortSignal,
|
|
10920
10977
|
requestOptions,
|
|
10921
|
-
tracingOptions
|
|
10978
|
+
tracingOptions,
|
|
10922
10979
|
};
|
|
10923
10980
|
const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
|
|
10924
10981
|
try {
|
|
@@ -10928,7 +10985,7 @@ class SearchIndexClient {
|
|
|
10928
10985
|
catch (e) {
|
|
10929
10986
|
span.setStatus({
|
|
10930
10987
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10931
|
-
message: e.message
|
|
10988
|
+
message: e.message,
|
|
10932
10989
|
});
|
|
10933
10990
|
throw e;
|
|
10934
10991
|
}
|
|
@@ -10949,7 +11006,7 @@ class SearchIndexClient {
|
|
|
10949
11006
|
catch (e) {
|
|
10950
11007
|
span.setStatus({
|
|
10951
11008
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
10952
|
-
message: e.message
|
|
11009
|
+
message: e.message,
|
|
10953
11010
|
});
|
|
10954
11011
|
throw e;
|
|
10955
11012
|
}
|
|
@@ -10963,7 +11020,7 @@ class SearchIndexClient {
|
|
|
10963
11020
|
* @param options - SearchClient Options
|
|
10964
11021
|
*/
|
|
10965
11022
|
getSearchClient(indexName, options) {
|
|
10966
|
-
return new SearchClient
|
|
11023
|
+
return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
|
|
10967
11024
|
}
|
|
10968
11025
|
}
|
|
10969
11026
|
|
|
@@ -10994,7 +11051,12 @@ class SearchIndexerClient {
|
|
|
10994
11051
|
/**
|
|
10995
11052
|
* The API version to use when communicating with the service.
|
|
10996
11053
|
*/
|
|
10997
|
-
this.
|
|
11054
|
+
this.serviceVersion = defaultServiceVersion;
|
|
11055
|
+
/**
|
|
11056
|
+
* The API version to use when communicating with the service.
|
|
11057
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
11058
|
+
*/
|
|
11059
|
+
this.apiVersion = defaultServiceVersion;
|
|
10998
11060
|
this.endpoint = endpoint;
|
|
10999
11061
|
const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;
|
|
11000
11062
|
if (!options.userAgentOptions) {
|
|
@@ -11015,18 +11077,25 @@ class SearchIndexerClient {
|
|
|
11015
11077
|
"OData-MaxVersion",
|
|
11016
11078
|
"OData-Version",
|
|
11017
11079
|
"Prefer",
|
|
11018
|
-
"throttle-reason"
|
|
11019
|
-
]
|
|
11020
|
-
}
|
|
11080
|
+
"throttle-reason",
|
|
11081
|
+
],
|
|
11082
|
+
},
|
|
11021
11083
|
});
|
|
11022
|
-
let apiVersion = this.apiVersion;
|
|
11023
11084
|
if (options.apiVersion) {
|
|
11024
|
-
if (!
|
|
11085
|
+
if (!serviceVersions.includes(options.apiVersion)) {
|
|
11025
11086
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
11026
11087
|
}
|
|
11027
|
-
|
|
11088
|
+
this.serviceVersion = options.apiVersion;
|
|
11089
|
+
this.apiVersion = options.apiVersion;
|
|
11028
11090
|
}
|
|
11029
|
-
|
|
11091
|
+
if (options.serviceVersion) {
|
|
11092
|
+
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
11093
|
+
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
11094
|
+
}
|
|
11095
|
+
this.serviceVersion = options.serviceVersion;
|
|
11096
|
+
this.apiVersion = options.serviceVersion;
|
|
11097
|
+
}
|
|
11098
|
+
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
11030
11099
|
if (coreAuth.isTokenCredential(credential)) {
|
|
11031
11100
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
11032
11101
|
}
|
|
@@ -11048,7 +11117,7 @@ class SearchIndexerClient {
|
|
|
11048
11117
|
catch (e) {
|
|
11049
11118
|
span.setStatus({
|
|
11050
11119
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11051
|
-
message: e.message
|
|
11120
|
+
message: e.message,
|
|
11052
11121
|
});
|
|
11053
11122
|
throw e;
|
|
11054
11123
|
}
|
|
@@ -11069,7 +11138,7 @@ class SearchIndexerClient {
|
|
|
11069
11138
|
catch (e) {
|
|
11070
11139
|
span.setStatus({
|
|
11071
11140
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11072
|
-
message: e.message
|
|
11141
|
+
message: e.message,
|
|
11073
11142
|
});
|
|
11074
11143
|
throw e;
|
|
11075
11144
|
}
|
|
@@ -11090,7 +11159,7 @@ class SearchIndexerClient {
|
|
|
11090
11159
|
catch (e) {
|
|
11091
11160
|
span.setStatus({
|
|
11092
11161
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11093
|
-
message: e.message
|
|
11162
|
+
message: e.message,
|
|
11094
11163
|
});
|
|
11095
11164
|
throw e;
|
|
11096
11165
|
}
|
|
@@ -11111,7 +11180,7 @@ class SearchIndexerClient {
|
|
|
11111
11180
|
catch (e) {
|
|
11112
11181
|
span.setStatus({
|
|
11113
11182
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11114
|
-
message: e.message
|
|
11183
|
+
message: e.message,
|
|
11115
11184
|
});
|
|
11116
11185
|
throw e;
|
|
11117
11186
|
}
|
|
@@ -11132,7 +11201,7 @@ class SearchIndexerClient {
|
|
|
11132
11201
|
catch (e) {
|
|
11133
11202
|
span.setStatus({
|
|
11134
11203
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11135
|
-
message: e.message
|
|
11204
|
+
message: e.message,
|
|
11136
11205
|
});
|
|
11137
11206
|
throw e;
|
|
11138
11207
|
}
|
|
@@ -11153,7 +11222,7 @@ class SearchIndexerClient {
|
|
|
11153
11222
|
catch (e) {
|
|
11154
11223
|
span.setStatus({
|
|
11155
11224
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11156
|
-
message: e.message
|
|
11225
|
+
message: e.message,
|
|
11157
11226
|
});
|
|
11158
11227
|
throw e;
|
|
11159
11228
|
}
|
|
@@ -11175,7 +11244,7 @@ class SearchIndexerClient {
|
|
|
11175
11244
|
catch (e) {
|
|
11176
11245
|
span.setStatus({
|
|
11177
11246
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11178
|
-
message: e.message
|
|
11247
|
+
message: e.message,
|
|
11179
11248
|
});
|
|
11180
11249
|
throw e;
|
|
11181
11250
|
}
|
|
@@ -11197,7 +11266,7 @@ class SearchIndexerClient {
|
|
|
11197
11266
|
catch (e) {
|
|
11198
11267
|
span.setStatus({
|
|
11199
11268
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11200
|
-
message: e.message
|
|
11269
|
+
message: e.message,
|
|
11201
11270
|
});
|
|
11202
11271
|
throw e;
|
|
11203
11272
|
}
|
|
@@ -11219,7 +11288,7 @@ class SearchIndexerClient {
|
|
|
11219
11288
|
catch (e) {
|
|
11220
11289
|
span.setStatus({
|
|
11221
11290
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11222
|
-
message: e.message
|
|
11291
|
+
message: e.message,
|
|
11223
11292
|
});
|
|
11224
11293
|
throw e;
|
|
11225
11294
|
}
|
|
@@ -11241,7 +11310,7 @@ class SearchIndexerClient {
|
|
|
11241
11310
|
catch (e) {
|
|
11242
11311
|
span.setStatus({
|
|
11243
11312
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11244
|
-
message: e.message
|
|
11313
|
+
message: e.message,
|
|
11245
11314
|
});
|
|
11246
11315
|
throw e;
|
|
11247
11316
|
}
|
|
@@ -11263,7 +11332,7 @@ class SearchIndexerClient {
|
|
|
11263
11332
|
catch (e) {
|
|
11264
11333
|
span.setStatus({
|
|
11265
11334
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11266
|
-
message: e.message
|
|
11335
|
+
message: e.message,
|
|
11267
11336
|
});
|
|
11268
11337
|
throw e;
|
|
11269
11338
|
}
|
|
@@ -11285,7 +11354,7 @@ class SearchIndexerClient {
|
|
|
11285
11354
|
catch (e) {
|
|
11286
11355
|
span.setStatus({
|
|
11287
11356
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11288
|
-
message: e.message
|
|
11357
|
+
message: e.message,
|
|
11289
11358
|
});
|
|
11290
11359
|
throw e;
|
|
11291
11360
|
}
|
|
@@ -11308,7 +11377,7 @@ class SearchIndexerClient {
|
|
|
11308
11377
|
catch (e) {
|
|
11309
11378
|
span.setStatus({
|
|
11310
11379
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11311
|
-
message: e.message
|
|
11380
|
+
message: e.message,
|
|
11312
11381
|
});
|
|
11313
11382
|
throw e;
|
|
11314
11383
|
}
|
|
@@ -11331,7 +11400,7 @@ class SearchIndexerClient {
|
|
|
11331
11400
|
catch (e) {
|
|
11332
11401
|
span.setStatus({
|
|
11333
11402
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11334
|
-
message: e.message
|
|
11403
|
+
message: e.message,
|
|
11335
11404
|
});
|
|
11336
11405
|
throw e;
|
|
11337
11406
|
}
|
|
@@ -11354,7 +11423,7 @@ class SearchIndexerClient {
|
|
|
11354
11423
|
catch (e) {
|
|
11355
11424
|
span.setStatus({
|
|
11356
11425
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11357
|
-
message: e.message
|
|
11426
|
+
message: e.message,
|
|
11358
11427
|
});
|
|
11359
11428
|
throw e;
|
|
11360
11429
|
}
|
|
@@ -11381,7 +11450,7 @@ class SearchIndexerClient {
|
|
|
11381
11450
|
catch (e) {
|
|
11382
11451
|
span.setStatus({
|
|
11383
11452
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11384
|
-
message: e.message
|
|
11453
|
+
message: e.message,
|
|
11385
11454
|
});
|
|
11386
11455
|
throw e;
|
|
11387
11456
|
}
|
|
@@ -11408,7 +11477,7 @@ class SearchIndexerClient {
|
|
|
11408
11477
|
catch (e) {
|
|
11409
11478
|
span.setStatus({
|
|
11410
11479
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11411
|
-
message: e.message
|
|
11480
|
+
message: e.message,
|
|
11412
11481
|
});
|
|
11413
11482
|
throw e;
|
|
11414
11483
|
}
|
|
@@ -11435,7 +11504,7 @@ class SearchIndexerClient {
|
|
|
11435
11504
|
catch (e) {
|
|
11436
11505
|
span.setStatus({
|
|
11437
11506
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11438
|
-
message: e.message
|
|
11507
|
+
message: e.message,
|
|
11439
11508
|
});
|
|
11440
11509
|
throw e;
|
|
11441
11510
|
}
|
|
@@ -11457,7 +11526,7 @@ class SearchIndexerClient {
|
|
|
11457
11526
|
catch (e) {
|
|
11458
11527
|
span.setStatus({
|
|
11459
11528
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11460
|
-
message: e.message
|
|
11529
|
+
message: e.message,
|
|
11461
11530
|
});
|
|
11462
11531
|
throw e;
|
|
11463
11532
|
}
|
|
@@ -11478,7 +11547,7 @@ class SearchIndexerClient {
|
|
|
11478
11547
|
catch (e) {
|
|
11479
11548
|
span.setStatus({
|
|
11480
11549
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11481
|
-
message: e.message
|
|
11550
|
+
message: e.message,
|
|
11482
11551
|
});
|
|
11483
11552
|
throw e;
|
|
11484
11553
|
}
|
|
@@ -11499,7 +11568,7 @@ class SearchIndexerClient {
|
|
|
11499
11568
|
catch (e) {
|
|
11500
11569
|
span.setStatus({
|
|
11501
11570
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11502
|
-
message: e.message
|
|
11571
|
+
message: e.message,
|
|
11503
11572
|
});
|
|
11504
11573
|
throw e;
|
|
11505
11574
|
}
|
|
@@ -11517,13 +11586,13 @@ class SearchIndexerClient {
|
|
|
11517
11586
|
try {
|
|
11518
11587
|
await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
|
|
11519
11588
|
documentKeys: updatedOptions.documentKeys,
|
|
11520
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds
|
|
11589
|
+
datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
|
|
11521
11590
|
} }));
|
|
11522
11591
|
}
|
|
11523
11592
|
catch (e) {
|
|
11524
11593
|
span.setStatus({
|
|
11525
11594
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11526
|
-
message: e.message
|
|
11595
|
+
message: e.message,
|
|
11527
11596
|
});
|
|
11528
11597
|
throw e;
|
|
11529
11598
|
}
|
|
@@ -11545,7 +11614,7 @@ class SearchIndexerClient {
|
|
|
11545
11614
|
catch (e) {
|
|
11546
11615
|
span.setStatus({
|
|
11547
11616
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
11548
|
-
message: e.message
|
|
11617
|
+
message: e.message,
|
|
11549
11618
|
});
|
|
11550
11619
|
throw e;
|
|
11551
11620
|
}
|
|
@@ -11610,11 +11679,13 @@ function odata(strings, ...values) {
|
|
|
11610
11679
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11611
11680
|
*/
|
|
11612
11681
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11613
|
-
var KnownApiVersion20210430Preview;
|
|
11682
|
+
var KnownApiVersion20210430Preview$1;
|
|
11614
11683
|
(function (KnownApiVersion20210430Preview) {
|
|
11615
11684
|
/** Api Version '2021-04-30-Preview' */
|
|
11616
11685
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11617
|
-
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11686
|
+
})(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
|
|
11687
|
+
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
11688
|
+
exports.KnownQueryLanguage = void 0;
|
|
11618
11689
|
(function (KnownQueryLanguage) {
|
|
11619
11690
|
/** Query language not specified. */
|
|
11620
11691
|
KnownQueryLanguage["None"] = "none";
|
|
@@ -11761,12 +11832,16 @@ var KnownApiVersion20210430Preview;
|
|
|
11761
11832
|
/** Query language value for Urdu (Pakistan). */
|
|
11762
11833
|
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
11763
11834
|
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
11835
|
+
/** Known values of {@link Speller} that the service accepts. */
|
|
11836
|
+
exports.KnownSpeller = void 0;
|
|
11764
11837
|
(function (KnownSpeller) {
|
|
11765
11838
|
/** Speller not enabled. */
|
|
11766
11839
|
KnownSpeller["None"] = "none";
|
|
11767
11840
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11768
11841
|
KnownSpeller["Lexicon"] = "lexicon";
|
|
11769
11842
|
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
11843
|
+
/** Known values of {@link Answers} that the service accepts. */
|
|
11844
|
+
exports.KnownAnswers = void 0;
|
|
11770
11845
|
(function (KnownAnswers) {
|
|
11771
11846
|
/** Do not return answers for the query. */
|
|
11772
11847
|
KnownAnswers["None"] = "none";
|
|
@@ -11781,18 +11856,24 @@ var KnownCaptions;
|
|
|
11781
11856
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11782
11857
|
KnownCaptions["Extractive"] = "extractive";
|
|
11783
11858
|
})(KnownCaptions || (KnownCaptions = {}));
|
|
11859
|
+
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
11860
|
+
exports.KnownQuerySpellerType = void 0;
|
|
11784
11861
|
(function (KnownQuerySpellerType) {
|
|
11785
11862
|
/** Speller not enabled. */
|
|
11786
11863
|
KnownQuerySpellerType["None"] = "none";
|
|
11787
11864
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11788
11865
|
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
11789
11866
|
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
11867
|
+
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
11868
|
+
exports.KnownQueryAnswerType = void 0;
|
|
11790
11869
|
(function (KnownQueryAnswerType) {
|
|
11791
11870
|
/** Do not return answers for the query. */
|
|
11792
11871
|
KnownQueryAnswerType["None"] = "none";
|
|
11793
11872
|
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11794
11873
|
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
11795
11874
|
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
11875
|
+
/** Known values of {@link QueryCaptionType} that the service accepts. */
|
|
11876
|
+
exports.KnownQueryCaptionType = void 0;
|
|
11796
11877
|
(function (KnownQueryCaptionType) {
|
|
11797
11878
|
/** Do not return captions for the query. */
|
|
11798
11879
|
KnownQueryCaptionType["None"] = "none";
|
|
@@ -11808,11 +11889,13 @@ var KnownCaptions;
|
|
|
11808
11889
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11809
11890
|
*/
|
|
11810
11891
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11811
|
-
var KnownApiVersion20210430Preview
|
|
11892
|
+
var KnownApiVersion20210430Preview;
|
|
11812
11893
|
(function (KnownApiVersion20210430Preview) {
|
|
11813
11894
|
/** Api Version '2021-04-30-Preview' */
|
|
11814
11895
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11815
|
-
})(KnownApiVersion20210430Preview
|
|
11896
|
+
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11897
|
+
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
11898
|
+
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
11816
11899
|
(function (KnownSearchIndexerDataSourceType) {
|
|
11817
11900
|
/** Indicates an Azure SQL datasource. */
|
|
11818
11901
|
KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
|
|
@@ -11827,6 +11910,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11827
11910
|
/** Indicates an ADLS Gen2 datasource. */
|
|
11828
11911
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
11829
11912
|
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
11913
|
+
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
11914
|
+
exports.KnownBlobIndexerParsingMode = void 0;
|
|
11830
11915
|
(function (KnownBlobIndexerParsingMode) {
|
|
11831
11916
|
/** Set to default for normal file processing. */
|
|
11832
11917
|
KnownBlobIndexerParsingMode["Default"] = "default";
|
|
@@ -11841,6 +11926,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11841
11926
|
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
|
|
11842
11927
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
11843
11928
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
11929
|
+
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
11930
|
+
exports.KnownBlobIndexerDataToExtract = void 0;
|
|
11844
11931
|
(function (KnownBlobIndexerDataToExtract) {
|
|
11845
11932
|
/** Indexes just the standard blob properties and user-specified metadata. */
|
|
11846
11933
|
KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
|
|
@@ -11849,6 +11936,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11849
11936
|
/** Extracts all metadata and textual content from each blob. */
|
|
11850
11937
|
KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
|
|
11851
11938
|
})(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
|
|
11939
|
+
/** Known values of {@link BlobIndexerImageAction} that the service accepts. */
|
|
11940
|
+
exports.KnownBlobIndexerImageAction = void 0;
|
|
11852
11941
|
(function (KnownBlobIndexerImageAction) {
|
|
11853
11942
|
/** Ignores embedded images or image files in the data set. This is the default. */
|
|
11854
11943
|
KnownBlobIndexerImageAction["None"] = "none";
|
|
@@ -11857,6 +11946,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11857
11946
|
/** 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. */
|
|
11858
11947
|
KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
|
|
11859
11948
|
})(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
|
|
11949
|
+
/** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */
|
|
11950
|
+
exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
|
|
11860
11951
|
(function (KnownBlobIndexerPDFTextRotationAlgorithm) {
|
|
11861
11952
|
/** Leverages normal text extraction. This is the default. */
|
|
11862
11953
|
KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
|
|
@@ -11871,10 +11962,14 @@ var KnownIndexerExecutionEnvironment;
|
|
|
11871
11962
|
/** 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. */
|
|
11872
11963
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
11873
11964
|
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
11965
|
+
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
11966
|
+
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
11874
11967
|
(function (KnownIndexerExecutionStatusDetail) {
|
|
11875
11968
|
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
11876
11969
|
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
11877
11970
|
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
11971
|
+
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
11972
|
+
exports.KnownIndexingMode = void 0;
|
|
11878
11973
|
(function (KnownIndexingMode) {
|
|
11879
11974
|
/** The indexer is indexing all documents in the datasource. */
|
|
11880
11975
|
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
@@ -11909,6 +12004,8 @@ var KnownSearchFieldDataType;
|
|
|
11909
12004
|
KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
|
|
11910
12005
|
KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
|
|
11911
12006
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
12007
|
+
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
12008
|
+
exports.KnownLexicalAnalyzerName = void 0;
|
|
11912
12009
|
(function (KnownLexicalAnalyzerName) {
|
|
11913
12010
|
/** Microsoft analyzer for Arabic. */
|
|
11914
12011
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -12097,6 +12194,8 @@ var KnownSearchFieldDataType;
|
|
|
12097
12194
|
/** 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 */
|
|
12098
12195
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
12099
12196
|
})(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
|
|
12197
|
+
/** Known values of {@link LexicalNormalizerName} that the service accepts. */
|
|
12198
|
+
exports.KnownLexicalNormalizerName = void 0;
|
|
12100
12199
|
(function (KnownLexicalNormalizerName) {
|
|
12101
12200
|
/** 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 */
|
|
12102
12201
|
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
@@ -12109,6 +12208,8 @@ var KnownSearchFieldDataType;
|
|
|
12109
12208
|
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
12110
12209
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
12111
12210
|
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
12211
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
12212
|
+
exports.KnownTokenFilterName = void 0;
|
|
12112
12213
|
(function (KnownTokenFilterName) {
|
|
12113
12214
|
/** 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 */
|
|
12114
12215
|
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
@@ -12179,10 +12280,14 @@ var KnownSearchFieldDataType;
|
|
|
12179
12280
|
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
12180
12281
|
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
12181
12282
|
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
12283
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
12284
|
+
exports.KnownCharFilterName = void 0;
|
|
12182
12285
|
(function (KnownCharFilterName) {
|
|
12183
12286
|
/** 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 */
|
|
12184
12287
|
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
12185
12288
|
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
12289
|
+
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
12290
|
+
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
12186
12291
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
12187
12292
|
/** Danish */
|
|
12188
12293
|
KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
|
|
@@ -12217,6 +12322,8 @@ var KnownSearchFieldDataType;
|
|
|
12217
12322
|
/** Swedish */
|
|
12218
12323
|
KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
|
|
12219
12324
|
})(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
|
|
12325
|
+
/** Known values of {@link OcrSkillLanguage} that the service accepts. */
|
|
12326
|
+
exports.KnownOcrSkillLanguage = void 0;
|
|
12220
12327
|
(function (KnownOcrSkillLanguage) {
|
|
12221
12328
|
/** Chinese-Simplified */
|
|
12222
12329
|
KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
|
|
@@ -12271,6 +12378,8 @@ var KnownSearchFieldDataType;
|
|
|
12271
12378
|
/** Slovak */
|
|
12272
12379
|
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12273
12380
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12381
|
+
/** Known values of {@link LineEnding} that the service accepts. */
|
|
12382
|
+
exports.KnownLineEnding = void 0;
|
|
12274
12383
|
(function (KnownLineEnding) {
|
|
12275
12384
|
/** Lines are separated by a single space character. */
|
|
12276
12385
|
KnownLineEnding["Space"] = "space";
|
|
@@ -12281,6 +12390,8 @@ var KnownSearchFieldDataType;
|
|
|
12281
12390
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
12282
12391
|
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
12283
12392
|
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
12393
|
+
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
12394
|
+
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
12284
12395
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
12285
12396
|
/** English */
|
|
12286
12397
|
KnownImageAnalysisSkillLanguage["En"] = "en";
|
|
@@ -12293,6 +12404,8 @@ var KnownSearchFieldDataType;
|
|
|
12293
12404
|
/** Chinese */
|
|
12294
12405
|
KnownImageAnalysisSkillLanguage["Zh"] = "zh";
|
|
12295
12406
|
})(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
|
|
12407
|
+
/** Known values of {@link VisualFeature} that the service accepts. */
|
|
12408
|
+
exports.KnownVisualFeature = void 0;
|
|
12296
12409
|
(function (KnownVisualFeature) {
|
|
12297
12410
|
/** Visual features recognized as adult persons. */
|
|
12298
12411
|
KnownVisualFeature["Adult"] = "adult";
|
|
@@ -12309,12 +12422,16 @@ var KnownSearchFieldDataType;
|
|
|
12309
12422
|
/** Tags. */
|
|
12310
12423
|
KnownVisualFeature["Tags"] = "tags";
|
|
12311
12424
|
})(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
|
|
12425
|
+
/** Known values of {@link ImageDetail} that the service accepts. */
|
|
12426
|
+
exports.KnownImageDetail = void 0;
|
|
12312
12427
|
(function (KnownImageDetail) {
|
|
12313
12428
|
/** Details recognized as celebrities. */
|
|
12314
12429
|
KnownImageDetail["Celebrities"] = "celebrities";
|
|
12315
12430
|
/** Details recognized as landmarks. */
|
|
12316
12431
|
KnownImageDetail["Landmarks"] = "landmarks";
|
|
12317
12432
|
})(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
|
|
12433
|
+
/** Known values of {@link EntityCategory} that the service accepts. */
|
|
12434
|
+
exports.KnownEntityCategory = void 0;
|
|
12318
12435
|
(function (KnownEntityCategory) {
|
|
12319
12436
|
/** Entities describing a physical location. */
|
|
12320
12437
|
KnownEntityCategory["Location"] = "location";
|
|
@@ -12331,6 +12448,8 @@ var KnownSearchFieldDataType;
|
|
|
12331
12448
|
/** Entities describing an email address. */
|
|
12332
12449
|
KnownEntityCategory["Email"] = "email";
|
|
12333
12450
|
})(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
|
|
12451
|
+
/** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */
|
|
12452
|
+
exports.KnownEntityRecognitionSkillLanguage = void 0;
|
|
12334
12453
|
(function (KnownEntityRecognitionSkillLanguage) {
|
|
12335
12454
|
/** Arabic */
|
|
12336
12455
|
KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
|
|
@@ -12379,6 +12498,8 @@ var KnownSearchFieldDataType;
|
|
|
12379
12498
|
/** Turkish */
|
|
12380
12499
|
KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
|
|
12381
12500
|
})(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
|
|
12501
|
+
/** Known values of {@link SentimentSkillLanguage} that the service accepts. */
|
|
12502
|
+
exports.KnownSentimentSkillLanguage = void 0;
|
|
12382
12503
|
(function (KnownSentimentSkillLanguage) {
|
|
12383
12504
|
/** Danish */
|
|
12384
12505
|
KnownSentimentSkillLanguage["Da"] = "da";
|
|
@@ -12411,12 +12532,16 @@ var KnownSearchFieldDataType;
|
|
|
12411
12532
|
/** Turkish */
|
|
12412
12533
|
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
12413
12534
|
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
12535
|
+
/** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
|
|
12536
|
+
exports.KnownPIIDetectionSkillMaskingMode = void 0;
|
|
12414
12537
|
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
12415
12538
|
/** No masking occurs and the maskedText output will not be returned. */
|
|
12416
12539
|
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
12417
12540
|
/** 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. */
|
|
12418
12541
|
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
12419
12542
|
})(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
|
|
12543
|
+
/** Known values of {@link SplitSkillLanguage} that the service accepts. */
|
|
12544
|
+
exports.KnownSplitSkillLanguage = void 0;
|
|
12420
12545
|
(function (KnownSplitSkillLanguage) {
|
|
12421
12546
|
/** Danish */
|
|
12422
12547
|
KnownSplitSkillLanguage["Da"] = "da";
|
|
@@ -12437,12 +12562,16 @@ var KnownSearchFieldDataType;
|
|
|
12437
12562
|
/** Portuguese */
|
|
12438
12563
|
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12439
12564
|
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
12565
|
+
/** Known values of {@link TextSplitMode} that the service accepts. */
|
|
12566
|
+
exports.KnownTextSplitMode = void 0;
|
|
12440
12567
|
(function (KnownTextSplitMode) {
|
|
12441
12568
|
/** Split the text into individual pages. */
|
|
12442
12569
|
KnownTextSplitMode["Pages"] = "pages";
|
|
12443
12570
|
/** Split the text into individual sentences. */
|
|
12444
12571
|
KnownTextSplitMode["Sentences"] = "sentences";
|
|
12445
12572
|
})(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
|
|
12573
|
+
/** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
|
|
12574
|
+
exports.KnownCustomEntityLookupSkillLanguage = void 0;
|
|
12446
12575
|
(function (KnownCustomEntityLookupSkillLanguage) {
|
|
12447
12576
|
/** Danish */
|
|
12448
12577
|
KnownCustomEntityLookupSkillLanguage["Da"] = "da";
|
|
@@ -12463,6 +12592,8 @@ var KnownSearchFieldDataType;
|
|
|
12463
12592
|
/** Portuguese */
|
|
12464
12593
|
KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
|
|
12465
12594
|
})(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
|
|
12595
|
+
/** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */
|
|
12596
|
+
exports.KnownTextTranslationSkillLanguage = void 0;
|
|
12466
12597
|
(function (KnownTextTranslationSkillLanguage) {
|
|
12467
12598
|
/** Afrikaans */
|
|
12468
12599
|
KnownTextTranslationSkillLanguage["Af"] = "af";
|
|
@@ -12639,6 +12770,8 @@ var KnownLexicalTokenizerName;
|
|
|
12639
12770
|
/** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
|
|
12640
12771
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
12641
12772
|
})(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
|
|
12773
|
+
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
12774
|
+
exports.KnownRegexFlags = void 0;
|
|
12642
12775
|
(function (KnownRegexFlags) {
|
|
12643
12776
|
/** Enables canonical equivalence. */
|
|
12644
12777
|
KnownRegexFlags["CanonEq"] = "CANON_EQ";
|
|
@@ -12659,7 +12792,7 @@ var KnownLexicalTokenizerName;
|
|
|
12659
12792
|
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
12660
12793
|
|
|
12661
12794
|
// Copyright (c) Microsoft Corporation.
|
|
12662
|
-
const readFileAsync = util.promisify(
|
|
12795
|
+
const readFileAsync = util.promisify(fs__namespace.readFile);
|
|
12663
12796
|
/**
|
|
12664
12797
|
* Helper method to create a SynonymMap object. This is a NodeJS only method.
|
|
12665
12798
|
*
|
|
@@ -12675,22 +12808,20 @@ async function createSynonymMapFromFile(name, filePath) {
|
|
|
12675
12808
|
.filter(Boolean);
|
|
12676
12809
|
return {
|
|
12677
12810
|
name,
|
|
12678
|
-
synonyms
|
|
12811
|
+
synonyms,
|
|
12679
12812
|
};
|
|
12680
12813
|
}
|
|
12681
12814
|
|
|
12682
12815
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
|
12683
12816
|
enumerable: true,
|
|
12684
|
-
get: function () {
|
|
12685
|
-
return coreAuth.AzureKeyCredential;
|
|
12686
|
-
}
|
|
12817
|
+
get: function () { return coreAuth.AzureKeyCredential; }
|
|
12687
12818
|
});
|
|
12688
12819
|
exports.DEFAULT_BATCH_SIZE = DEFAULT_BATCH_SIZE;
|
|
12689
12820
|
exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
12690
12821
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
12691
12822
|
exports.GeographyPoint = GeographyPoint;
|
|
12692
12823
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
12693
|
-
exports.SearchClient = SearchClient
|
|
12824
|
+
exports.SearchClient = SearchClient;
|
|
12694
12825
|
exports.SearchIndexClient = SearchIndexClient;
|
|
12695
12826
|
exports.SearchIndexerClient = SearchIndexerClient;
|
|
12696
12827
|
exports.SearchIndexingBufferedSender = SearchIndexingBufferedSender;
|