@azure/search-documents 11.3.0-alpha.20220112.1 → 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 +443 -338
- package/dist/index.js.map +1 -1
- package/package.json +10 -11
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.
|
|
@@ -1813,7 +1835,7 @@ const createSpan = coreTracing.createSpanFunction({
|
|
|
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);
|
|
@@ -1982,7 +2004,7 @@ 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;
|
|
@@ -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
|
|
@@ -3222,7 +3265,7 @@ const defaultServiceVersion = "2021-04-30-Preview";
|
|
|
3222
3265
|
* including querying documents in the index as well as
|
|
3223
3266
|
* adding, updating, and removing them.
|
|
3224
3267
|
*/
|
|
3225
|
-
class SearchClient
|
|
3268
|
+
class SearchClient {
|
|
3226
3269
|
/**
|
|
3227
3270
|
* Creates an instance of SearchClient.
|
|
3228
3271
|
*
|
|
@@ -3292,7 +3335,7 @@ class SearchClient$1 {
|
|
|
3292
3335
|
this.serviceVersion = options.serviceVersion;
|
|
3293
3336
|
this.apiVersion = options.serviceVersion;
|
|
3294
3337
|
}
|
|
3295
|
-
this.client = new SearchClient(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3338
|
+
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3296
3339
|
if (coreAuth.isTokenCredential(credential)) {
|
|
3297
3340
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
3298
3341
|
}
|
|
@@ -3756,7 +3799,7 @@ class SearchIndexingBufferedSender {
|
|
|
3756
3799
|
/**
|
|
3757
3800
|
* Event emitter/publisher used in the Buffered Sender
|
|
3758
3801
|
*/
|
|
3759
|
-
this.emitter = new
|
|
3802
|
+
this.emitter = new EventEmitter__default["default"]();
|
|
3760
3803
|
this.client = client;
|
|
3761
3804
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
3762
3805
|
// General Configuration properties
|
|
@@ -4241,7 +4284,7 @@ const AzureActiveDirectoryApplicationCredentials = {
|
|
|
4241
4284
|
}
|
|
4242
4285
|
}
|
|
4243
4286
|
};
|
|
4244
|
-
const SearchError
|
|
4287
|
+
const SearchError = {
|
|
4245
4288
|
type: {
|
|
4246
4289
|
name: "Composite",
|
|
4247
4290
|
className: "SearchError",
|
|
@@ -9012,7 +9055,7 @@ let discriminators = {
|
|
|
9012
9055
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
|
|
9013
9056
|
};
|
|
9014
9057
|
|
|
9015
|
-
var Mappers
|
|
9058
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
9016
9059
|
__proto__: null,
|
|
9017
9060
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9018
9061
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -9022,7 +9065,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9022
9065
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9023
9066
|
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
9024
9067
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9025
|
-
SearchError: SearchError
|
|
9068
|
+
SearchError: SearchError,
|
|
9026
9069
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
9027
9070
|
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
9028
9071
|
SearchIndexer: SearchIndexer,
|
|
@@ -9172,7 +9215,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9172
9215
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9173
9216
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9174
9217
|
*/
|
|
9175
|
-
const contentType
|
|
9218
|
+
const contentType = {
|
|
9176
9219
|
parameterPath: ["options", "contentType"],
|
|
9177
9220
|
mapper: {
|
|
9178
9221
|
defaultValue: "application/json",
|
|
@@ -9187,7 +9230,7 @@ const dataSource = {
|
|
|
9187
9230
|
parameterPath: "dataSource",
|
|
9188
9231
|
mapper: SearchIndexerDataSource
|
|
9189
9232
|
};
|
|
9190
|
-
const accept
|
|
9233
|
+
const accept = {
|
|
9191
9234
|
parameterPath: "accept",
|
|
9192
9235
|
mapper: {
|
|
9193
9236
|
defaultValue: "application/json",
|
|
@@ -9198,7 +9241,7 @@ const accept$1 = {
|
|
|
9198
9241
|
}
|
|
9199
9242
|
}
|
|
9200
9243
|
};
|
|
9201
|
-
const endpoint
|
|
9244
|
+
const endpoint = {
|
|
9202
9245
|
parameterPath: "endpoint",
|
|
9203
9246
|
mapper: {
|
|
9204
9247
|
serializedName: "endpoint",
|
|
@@ -9219,7 +9262,7 @@ const dataSourceName = {
|
|
|
9219
9262
|
}
|
|
9220
9263
|
}
|
|
9221
9264
|
};
|
|
9222
|
-
const xMsClientRequestId
|
|
9265
|
+
const xMsClientRequestId = {
|
|
9223
9266
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
9224
9267
|
mapper: {
|
|
9225
9268
|
serializedName: "x-ms-client-request-id",
|
|
@@ -9257,7 +9300,7 @@ const prefer = {
|
|
|
9257
9300
|
}
|
|
9258
9301
|
}
|
|
9259
9302
|
};
|
|
9260
|
-
const apiVersion
|
|
9303
|
+
const apiVersion = {
|
|
9261
9304
|
parameterPath: "apiVersion",
|
|
9262
9305
|
mapper: {
|
|
9263
9306
|
serializedName: "api-version",
|
|
@@ -9276,7 +9319,7 @@ const skipIndexerResetRequirementForCache = {
|
|
|
9276
9319
|
}
|
|
9277
9320
|
}
|
|
9278
9321
|
};
|
|
9279
|
-
const select
|
|
9322
|
+
const select = {
|
|
9280
9323
|
parameterPath: ["options", "select"],
|
|
9281
9324
|
mapper: {
|
|
9282
9325
|
serializedName: "$select",
|
|
@@ -9358,7 +9401,7 @@ const index = {
|
|
|
9358
9401
|
parameterPath: "index",
|
|
9359
9402
|
mapper: SearchIndex
|
|
9360
9403
|
};
|
|
9361
|
-
const indexName
|
|
9404
|
+
const indexName = {
|
|
9362
9405
|
parameterPath: "indexName",
|
|
9363
9406
|
mapper: {
|
|
9364
9407
|
serializedName: "indexName",
|
|
@@ -9405,7 +9448,7 @@ class DataSourcesImpl {
|
|
|
9405
9448
|
* @param options The options parameters.
|
|
9406
9449
|
*/
|
|
9407
9450
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
9408
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
|
|
9451
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
9409
9452
|
}
|
|
9410
9453
|
/**
|
|
9411
9454
|
* Deletes a datasource.
|
|
@@ -9413,7 +9456,7 @@ class DataSourcesImpl {
|
|
|
9413
9456
|
* @param options The options parameters.
|
|
9414
9457
|
*/
|
|
9415
9458
|
delete(dataSourceName, options) {
|
|
9416
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
|
|
9459
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
9417
9460
|
}
|
|
9418
9461
|
/**
|
|
9419
9462
|
* Retrieves a datasource definition.
|
|
@@ -9421,14 +9464,14 @@ class DataSourcesImpl {
|
|
|
9421
9464
|
* @param options The options parameters.
|
|
9422
9465
|
*/
|
|
9423
9466
|
get(dataSourceName, options) {
|
|
9424
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
9467
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
9425
9468
|
}
|
|
9426
9469
|
/**
|
|
9427
9470
|
* Lists all datasources available for a search service.
|
|
9428
9471
|
* @param options The options parameters.
|
|
9429
9472
|
*/
|
|
9430
9473
|
list(options) {
|
|
9431
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
9474
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
9432
9475
|
}
|
|
9433
9476
|
/**
|
|
9434
9477
|
* Creates a new datasource.
|
|
@@ -9436,12 +9479,12 @@ class DataSourcesImpl {
|
|
|
9436
9479
|
* @param options The options parameters.
|
|
9437
9480
|
*/
|
|
9438
9481
|
create(dataSource, options) {
|
|
9439
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
|
|
9482
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
9440
9483
|
}
|
|
9441
9484
|
}
|
|
9442
9485
|
// Operation Specifications
|
|
9443
|
-
const serializer$
|
|
9444
|
-
const createOrUpdateOperationSpec = {
|
|
9486
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9487
|
+
const createOrUpdateOperationSpec$4 = {
|
|
9445
9488
|
path: "/datasources('{dataSourceName}')",
|
|
9446
9489
|
httpMethod: "PUT",
|
|
9447
9490
|
responses: {
|
|
@@ -9452,47 +9495,47 @@ const createOrUpdateOperationSpec = {
|
|
|
9452
9495
|
bodyMapper: SearchIndexerDataSource
|
|
9453
9496
|
},
|
|
9454
9497
|
default: {
|
|
9455
|
-
bodyMapper: SearchError
|
|
9498
|
+
bodyMapper: SearchError
|
|
9456
9499
|
}
|
|
9457
9500
|
},
|
|
9458
9501
|
requestBody: dataSource,
|
|
9459
9502
|
queryParameters: [
|
|
9460
|
-
apiVersion
|
|
9503
|
+
apiVersion,
|
|
9461
9504
|
skipIndexerResetRequirementForCache
|
|
9462
9505
|
],
|
|
9463
|
-
urlParameters: [endpoint
|
|
9506
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9464
9507
|
headerParameters: [
|
|
9465
|
-
contentType
|
|
9466
|
-
accept
|
|
9467
|
-
xMsClientRequestId
|
|
9508
|
+
contentType,
|
|
9509
|
+
accept,
|
|
9510
|
+
xMsClientRequestId,
|
|
9468
9511
|
ifMatch,
|
|
9469
9512
|
ifNoneMatch,
|
|
9470
9513
|
prefer
|
|
9471
9514
|
],
|
|
9472
9515
|
mediaType: "json",
|
|
9473
|
-
serializer: serializer$
|
|
9516
|
+
serializer: serializer$5
|
|
9474
9517
|
};
|
|
9475
|
-
const deleteOperationSpec = {
|
|
9518
|
+
const deleteOperationSpec$4 = {
|
|
9476
9519
|
path: "/datasources('{dataSourceName}')",
|
|
9477
9520
|
httpMethod: "DELETE",
|
|
9478
9521
|
responses: {
|
|
9479
9522
|
204: {},
|
|
9480
9523
|
404: {},
|
|
9481
9524
|
default: {
|
|
9482
|
-
bodyMapper: SearchError
|
|
9525
|
+
bodyMapper: SearchError
|
|
9483
9526
|
}
|
|
9484
9527
|
},
|
|
9485
|
-
queryParameters: [apiVersion
|
|
9486
|
-
urlParameters: [endpoint
|
|
9528
|
+
queryParameters: [apiVersion],
|
|
9529
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9487
9530
|
headerParameters: [
|
|
9488
|
-
accept
|
|
9489
|
-
xMsClientRequestId
|
|
9531
|
+
accept,
|
|
9532
|
+
xMsClientRequestId,
|
|
9490
9533
|
ifMatch,
|
|
9491
9534
|
ifNoneMatch
|
|
9492
9535
|
],
|
|
9493
|
-
serializer: serializer$
|
|
9536
|
+
serializer: serializer$5
|
|
9494
9537
|
};
|
|
9495
|
-
const getOperationSpec$
|
|
9538
|
+
const getOperationSpec$4 = {
|
|
9496
9539
|
path: "/datasources('{dataSourceName}')",
|
|
9497
9540
|
httpMethod: "GET",
|
|
9498
9541
|
responses: {
|
|
@@ -9500,15 +9543,15 @@ const getOperationSpec$1 = {
|
|
|
9500
9543
|
bodyMapper: SearchIndexerDataSource
|
|
9501
9544
|
},
|
|
9502
9545
|
default: {
|
|
9503
|
-
bodyMapper: SearchError
|
|
9546
|
+
bodyMapper: SearchError
|
|
9504
9547
|
}
|
|
9505
9548
|
},
|
|
9506
|
-
queryParameters: [apiVersion
|
|
9507
|
-
urlParameters: [endpoint
|
|
9508
|
-
headerParameters: [accept
|
|
9509
|
-
serializer: serializer$
|
|
9549
|
+
queryParameters: [apiVersion],
|
|
9550
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9551
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9552
|
+
serializer: serializer$5
|
|
9510
9553
|
};
|
|
9511
|
-
const listOperationSpec = {
|
|
9554
|
+
const listOperationSpec$4 = {
|
|
9512
9555
|
path: "/datasources",
|
|
9513
9556
|
httpMethod: "GET",
|
|
9514
9557
|
responses: {
|
|
@@ -9516,15 +9559,15 @@ const listOperationSpec = {
|
|
|
9516
9559
|
bodyMapper: ListDataSourcesResult
|
|
9517
9560
|
},
|
|
9518
9561
|
default: {
|
|
9519
|
-
bodyMapper: SearchError
|
|
9562
|
+
bodyMapper: SearchError
|
|
9520
9563
|
}
|
|
9521
9564
|
},
|
|
9522
|
-
queryParameters: [apiVersion
|
|
9523
|
-
urlParameters: [endpoint
|
|
9524
|
-
headerParameters: [accept
|
|
9525
|
-
serializer: serializer$
|
|
9565
|
+
queryParameters: [apiVersion, select],
|
|
9566
|
+
urlParameters: [endpoint],
|
|
9567
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9568
|
+
serializer: serializer$5
|
|
9526
9569
|
};
|
|
9527
|
-
const createOperationSpec = {
|
|
9570
|
+
const createOperationSpec$4 = {
|
|
9528
9571
|
path: "/datasources",
|
|
9529
9572
|
httpMethod: "POST",
|
|
9530
9573
|
responses: {
|
|
@@ -9532,19 +9575,19 @@ const createOperationSpec = {
|
|
|
9532
9575
|
bodyMapper: SearchIndexerDataSource
|
|
9533
9576
|
},
|
|
9534
9577
|
default: {
|
|
9535
|
-
bodyMapper: SearchError
|
|
9578
|
+
bodyMapper: SearchError
|
|
9536
9579
|
}
|
|
9537
9580
|
},
|
|
9538
9581
|
requestBody: dataSource,
|
|
9539
|
-
queryParameters: [apiVersion
|
|
9540
|
-
urlParameters: [endpoint
|
|
9582
|
+
queryParameters: [apiVersion],
|
|
9583
|
+
urlParameters: [endpoint],
|
|
9541
9584
|
headerParameters: [
|
|
9542
|
-
contentType
|
|
9543
|
-
accept
|
|
9544
|
-
xMsClientRequestId
|
|
9585
|
+
contentType,
|
|
9586
|
+
accept,
|
|
9587
|
+
xMsClientRequestId
|
|
9545
9588
|
],
|
|
9546
9589
|
mediaType: "json",
|
|
9547
|
-
serializer: serializer$
|
|
9590
|
+
serializer: serializer$5
|
|
9548
9591
|
};
|
|
9549
9592
|
|
|
9550
9593
|
/*
|
|
@@ -9594,7 +9637,7 @@ class IndexersImpl {
|
|
|
9594
9637
|
* @param options The options parameters.
|
|
9595
9638
|
*/
|
|
9596
9639
|
createOrUpdate(indexerName, indexer, options) {
|
|
9597
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
9640
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
9598
9641
|
}
|
|
9599
9642
|
/**
|
|
9600
9643
|
* Deletes an indexer.
|
|
@@ -9602,7 +9645,7 @@ class IndexersImpl {
|
|
|
9602
9645
|
* @param options The options parameters.
|
|
9603
9646
|
*/
|
|
9604
9647
|
delete(indexerName, options) {
|
|
9605
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
9648
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
9606
9649
|
}
|
|
9607
9650
|
/**
|
|
9608
9651
|
* Retrieves an indexer definition.
|
|
@@ -9610,14 +9653,14 @@ class IndexersImpl {
|
|
|
9610
9653
|
* @param options The options parameters.
|
|
9611
9654
|
*/
|
|
9612
9655
|
get(indexerName, options) {
|
|
9613
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
9656
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
9614
9657
|
}
|
|
9615
9658
|
/**
|
|
9616
9659
|
* Lists all indexers available for a search service.
|
|
9617
9660
|
* @param options The options parameters.
|
|
9618
9661
|
*/
|
|
9619
9662
|
list(options) {
|
|
9620
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9663
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
9621
9664
|
}
|
|
9622
9665
|
/**
|
|
9623
9666
|
* Creates a new indexer.
|
|
@@ -9625,7 +9668,7 @@ class IndexersImpl {
|
|
|
9625
9668
|
* @param options The options parameters.
|
|
9626
9669
|
*/
|
|
9627
9670
|
create(indexer, options) {
|
|
9628
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
9671
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
9629
9672
|
}
|
|
9630
9673
|
/**
|
|
9631
9674
|
* Returns the current status and execution history of an indexer.
|
|
@@ -9637,20 +9680,20 @@ class IndexersImpl {
|
|
|
9637
9680
|
}
|
|
9638
9681
|
}
|
|
9639
9682
|
// Operation Specifications
|
|
9640
|
-
const serializer$
|
|
9683
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9641
9684
|
const resetOperationSpec = {
|
|
9642
9685
|
path: "/indexers('{indexerName}')/search.reset",
|
|
9643
9686
|
httpMethod: "POST",
|
|
9644
9687
|
responses: {
|
|
9645
9688
|
204: {},
|
|
9646
9689
|
default: {
|
|
9647
|
-
bodyMapper: SearchError
|
|
9690
|
+
bodyMapper: SearchError
|
|
9648
9691
|
}
|
|
9649
9692
|
},
|
|
9650
|
-
queryParameters: [apiVersion
|
|
9651
|
-
urlParameters: [endpoint
|
|
9652
|
-
headerParameters: [accept
|
|
9653
|
-
serializer: serializer$
|
|
9693
|
+
queryParameters: [apiVersion],
|
|
9694
|
+
urlParameters: [endpoint, indexerName],
|
|
9695
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9696
|
+
serializer: serializer$4
|
|
9654
9697
|
};
|
|
9655
9698
|
const resetDocsOperationSpec = {
|
|
9656
9699
|
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
@@ -9658,19 +9701,19 @@ const resetDocsOperationSpec = {
|
|
|
9658
9701
|
responses: {
|
|
9659
9702
|
204: {},
|
|
9660
9703
|
default: {
|
|
9661
|
-
bodyMapper: SearchError
|
|
9704
|
+
bodyMapper: SearchError
|
|
9662
9705
|
}
|
|
9663
9706
|
},
|
|
9664
9707
|
requestBody: keysOrIds,
|
|
9665
|
-
queryParameters: [apiVersion
|
|
9666
|
-
urlParameters: [endpoint
|
|
9708
|
+
queryParameters: [apiVersion, overwrite],
|
|
9709
|
+
urlParameters: [endpoint, indexerName],
|
|
9667
9710
|
headerParameters: [
|
|
9668
|
-
contentType
|
|
9669
|
-
accept
|
|
9670
|
-
xMsClientRequestId
|
|
9711
|
+
contentType,
|
|
9712
|
+
accept,
|
|
9713
|
+
xMsClientRequestId
|
|
9671
9714
|
],
|
|
9672
9715
|
mediaType: "json",
|
|
9673
|
-
serializer: serializer$
|
|
9716
|
+
serializer: serializer$4
|
|
9674
9717
|
};
|
|
9675
9718
|
const runOperationSpec = {
|
|
9676
9719
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -9678,15 +9721,15 @@ const runOperationSpec = {
|
|
|
9678
9721
|
responses: {
|
|
9679
9722
|
202: {},
|
|
9680
9723
|
default: {
|
|
9681
|
-
bodyMapper: SearchError
|
|
9724
|
+
bodyMapper: SearchError
|
|
9682
9725
|
}
|
|
9683
9726
|
},
|
|
9684
|
-
queryParameters: [apiVersion
|
|
9685
|
-
urlParameters: [endpoint
|
|
9686
|
-
headerParameters: [accept
|
|
9687
|
-
serializer: serializer$
|
|
9727
|
+
queryParameters: [apiVersion],
|
|
9728
|
+
urlParameters: [endpoint, indexerName],
|
|
9729
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9730
|
+
serializer: serializer$4
|
|
9688
9731
|
};
|
|
9689
|
-
const createOrUpdateOperationSpec$
|
|
9732
|
+
const createOrUpdateOperationSpec$3 = {
|
|
9690
9733
|
path: "/indexers('{indexerName}')",
|
|
9691
9734
|
httpMethod: "PUT",
|
|
9692
9735
|
responses: {
|
|
@@ -9697,48 +9740,48 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
9697
9740
|
bodyMapper: SearchIndexer
|
|
9698
9741
|
},
|
|
9699
9742
|
default: {
|
|
9700
|
-
bodyMapper: SearchError
|
|
9743
|
+
bodyMapper: SearchError
|
|
9701
9744
|
}
|
|
9702
9745
|
},
|
|
9703
9746
|
requestBody: indexer,
|
|
9704
9747
|
queryParameters: [
|
|
9705
|
-
apiVersion
|
|
9748
|
+
apiVersion,
|
|
9706
9749
|
skipIndexerResetRequirementForCache,
|
|
9707
9750
|
disableCacheReprocessingChangeDetection
|
|
9708
9751
|
],
|
|
9709
|
-
urlParameters: [endpoint
|
|
9752
|
+
urlParameters: [endpoint, indexerName],
|
|
9710
9753
|
headerParameters: [
|
|
9711
|
-
contentType
|
|
9712
|
-
accept
|
|
9713
|
-
xMsClientRequestId
|
|
9754
|
+
contentType,
|
|
9755
|
+
accept,
|
|
9756
|
+
xMsClientRequestId,
|
|
9714
9757
|
ifMatch,
|
|
9715
9758
|
ifNoneMatch,
|
|
9716
9759
|
prefer
|
|
9717
9760
|
],
|
|
9718
9761
|
mediaType: "json",
|
|
9719
|
-
serializer: serializer$
|
|
9762
|
+
serializer: serializer$4
|
|
9720
9763
|
};
|
|
9721
|
-
const deleteOperationSpec$
|
|
9764
|
+
const deleteOperationSpec$3 = {
|
|
9722
9765
|
path: "/indexers('{indexerName}')",
|
|
9723
9766
|
httpMethod: "DELETE",
|
|
9724
9767
|
responses: {
|
|
9725
9768
|
204: {},
|
|
9726
9769
|
404: {},
|
|
9727
9770
|
default: {
|
|
9728
|
-
bodyMapper: SearchError
|
|
9771
|
+
bodyMapper: SearchError
|
|
9729
9772
|
}
|
|
9730
9773
|
},
|
|
9731
|
-
queryParameters: [apiVersion
|
|
9732
|
-
urlParameters: [endpoint
|
|
9774
|
+
queryParameters: [apiVersion],
|
|
9775
|
+
urlParameters: [endpoint, indexerName],
|
|
9733
9776
|
headerParameters: [
|
|
9734
|
-
accept
|
|
9735
|
-
xMsClientRequestId
|
|
9777
|
+
accept,
|
|
9778
|
+
xMsClientRequestId,
|
|
9736
9779
|
ifMatch,
|
|
9737
9780
|
ifNoneMatch
|
|
9738
9781
|
],
|
|
9739
|
-
serializer: serializer$
|
|
9782
|
+
serializer: serializer$4
|
|
9740
9783
|
};
|
|
9741
|
-
const getOperationSpec$
|
|
9784
|
+
const getOperationSpec$3 = {
|
|
9742
9785
|
path: "/indexers('{indexerName}')",
|
|
9743
9786
|
httpMethod: "GET",
|
|
9744
9787
|
responses: {
|
|
@@ -9746,15 +9789,15 @@ const getOperationSpec$2 = {
|
|
|
9746
9789
|
bodyMapper: SearchIndexer
|
|
9747
9790
|
},
|
|
9748
9791
|
default: {
|
|
9749
|
-
bodyMapper: SearchError
|
|
9792
|
+
bodyMapper: SearchError
|
|
9750
9793
|
}
|
|
9751
9794
|
},
|
|
9752
|
-
queryParameters: [apiVersion
|
|
9753
|
-
urlParameters: [endpoint
|
|
9754
|
-
headerParameters: [accept
|
|
9755
|
-
serializer: serializer$
|
|
9795
|
+
queryParameters: [apiVersion],
|
|
9796
|
+
urlParameters: [endpoint, indexerName],
|
|
9797
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9798
|
+
serializer: serializer$4
|
|
9756
9799
|
};
|
|
9757
|
-
const listOperationSpec$
|
|
9800
|
+
const listOperationSpec$3 = {
|
|
9758
9801
|
path: "/indexers",
|
|
9759
9802
|
httpMethod: "GET",
|
|
9760
9803
|
responses: {
|
|
@@ -9762,15 +9805,15 @@ const listOperationSpec$1 = {
|
|
|
9762
9805
|
bodyMapper: ListIndexersResult
|
|
9763
9806
|
},
|
|
9764
9807
|
default: {
|
|
9765
|
-
bodyMapper: SearchError
|
|
9808
|
+
bodyMapper: SearchError
|
|
9766
9809
|
}
|
|
9767
9810
|
},
|
|
9768
|
-
queryParameters: [apiVersion
|
|
9769
|
-
urlParameters: [endpoint
|
|
9770
|
-
headerParameters: [accept
|
|
9771
|
-
serializer: serializer$
|
|
9811
|
+
queryParameters: [apiVersion, select],
|
|
9812
|
+
urlParameters: [endpoint],
|
|
9813
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9814
|
+
serializer: serializer$4
|
|
9772
9815
|
};
|
|
9773
|
-
const createOperationSpec$
|
|
9816
|
+
const createOperationSpec$3 = {
|
|
9774
9817
|
path: "/indexers",
|
|
9775
9818
|
httpMethod: "POST",
|
|
9776
9819
|
responses: {
|
|
@@ -9778,19 +9821,19 @@ const createOperationSpec$1 = {
|
|
|
9778
9821
|
bodyMapper: SearchIndexer
|
|
9779
9822
|
},
|
|
9780
9823
|
default: {
|
|
9781
|
-
bodyMapper: SearchError
|
|
9824
|
+
bodyMapper: SearchError
|
|
9782
9825
|
}
|
|
9783
9826
|
},
|
|
9784
9827
|
requestBody: indexer,
|
|
9785
|
-
queryParameters: [apiVersion
|
|
9786
|
-
urlParameters: [endpoint
|
|
9828
|
+
queryParameters: [apiVersion],
|
|
9829
|
+
urlParameters: [endpoint],
|
|
9787
9830
|
headerParameters: [
|
|
9788
|
-
contentType
|
|
9789
|
-
accept
|
|
9790
|
-
xMsClientRequestId
|
|
9831
|
+
contentType,
|
|
9832
|
+
accept,
|
|
9833
|
+
xMsClientRequestId
|
|
9791
9834
|
],
|
|
9792
9835
|
mediaType: "json",
|
|
9793
|
-
serializer: serializer$
|
|
9836
|
+
serializer: serializer$4
|
|
9794
9837
|
};
|
|
9795
9838
|
const getStatusOperationSpec = {
|
|
9796
9839
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -9800,13 +9843,13 @@ const getStatusOperationSpec = {
|
|
|
9800
9843
|
bodyMapper: SearchIndexerStatus
|
|
9801
9844
|
},
|
|
9802
9845
|
default: {
|
|
9803
|
-
bodyMapper: SearchError
|
|
9846
|
+
bodyMapper: SearchError
|
|
9804
9847
|
}
|
|
9805
9848
|
},
|
|
9806
|
-
queryParameters: [apiVersion
|
|
9807
|
-
urlParameters: [endpoint
|
|
9808
|
-
headerParameters: [accept
|
|
9809
|
-
serializer: serializer$
|
|
9849
|
+
queryParameters: [apiVersion],
|
|
9850
|
+
urlParameters: [endpoint, indexerName],
|
|
9851
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9852
|
+
serializer: serializer$4
|
|
9810
9853
|
};
|
|
9811
9854
|
|
|
9812
9855
|
/*
|
|
@@ -9848,7 +9891,7 @@ class SkillsetsImpl {
|
|
|
9848
9891
|
* @param options The options parameters.
|
|
9849
9892
|
*/
|
|
9850
9893
|
get(skillsetName, options) {
|
|
9851
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
9894
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
9852
9895
|
}
|
|
9853
9896
|
/**
|
|
9854
9897
|
* List all skillsets in a search service.
|
|
@@ -9876,7 +9919,7 @@ class SkillsetsImpl {
|
|
|
9876
9919
|
}
|
|
9877
9920
|
}
|
|
9878
9921
|
// Operation Specifications
|
|
9879
|
-
const serializer$3 =
|
|
9922
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9880
9923
|
const createOrUpdateOperationSpec$2 = {
|
|
9881
9924
|
path: "/skillsets('{skillsetName}')",
|
|
9882
9925
|
httpMethod: "PUT",
|
|
@@ -9888,20 +9931,20 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
9888
9931
|
bodyMapper: SearchIndexerSkillset
|
|
9889
9932
|
},
|
|
9890
9933
|
default: {
|
|
9891
|
-
bodyMapper: SearchError
|
|
9934
|
+
bodyMapper: SearchError
|
|
9892
9935
|
}
|
|
9893
9936
|
},
|
|
9894
9937
|
requestBody: skillset,
|
|
9895
9938
|
queryParameters: [
|
|
9896
|
-
apiVersion
|
|
9939
|
+
apiVersion,
|
|
9897
9940
|
skipIndexerResetRequirementForCache,
|
|
9898
9941
|
disableCacheReprocessingChangeDetection
|
|
9899
9942
|
],
|
|
9900
|
-
urlParameters: [endpoint
|
|
9943
|
+
urlParameters: [endpoint, skillsetName],
|
|
9901
9944
|
headerParameters: [
|
|
9902
|
-
contentType
|
|
9903
|
-
accept
|
|
9904
|
-
xMsClientRequestId
|
|
9945
|
+
contentType,
|
|
9946
|
+
accept,
|
|
9947
|
+
xMsClientRequestId,
|
|
9905
9948
|
ifMatch,
|
|
9906
9949
|
ifNoneMatch,
|
|
9907
9950
|
prefer
|
|
@@ -9916,20 +9959,20 @@ const deleteOperationSpec$2 = {
|
|
|
9916
9959
|
204: {},
|
|
9917
9960
|
404: {},
|
|
9918
9961
|
default: {
|
|
9919
|
-
bodyMapper: SearchError
|
|
9962
|
+
bodyMapper: SearchError
|
|
9920
9963
|
}
|
|
9921
9964
|
},
|
|
9922
|
-
queryParameters: [apiVersion
|
|
9923
|
-
urlParameters: [endpoint
|
|
9965
|
+
queryParameters: [apiVersion],
|
|
9966
|
+
urlParameters: [endpoint, skillsetName],
|
|
9924
9967
|
headerParameters: [
|
|
9925
|
-
accept
|
|
9926
|
-
xMsClientRequestId
|
|
9968
|
+
accept,
|
|
9969
|
+
xMsClientRequestId,
|
|
9927
9970
|
ifMatch,
|
|
9928
9971
|
ifNoneMatch
|
|
9929
9972
|
],
|
|
9930
9973
|
serializer: serializer$3
|
|
9931
9974
|
};
|
|
9932
|
-
const getOperationSpec$
|
|
9975
|
+
const getOperationSpec$2 = {
|
|
9933
9976
|
path: "/skillsets('{skillsetName}')",
|
|
9934
9977
|
httpMethod: "GET",
|
|
9935
9978
|
responses: {
|
|
@@ -9937,12 +9980,12 @@ const getOperationSpec$3 = {
|
|
|
9937
9980
|
bodyMapper: SearchIndexerSkillset
|
|
9938
9981
|
},
|
|
9939
9982
|
default: {
|
|
9940
|
-
bodyMapper: SearchError
|
|
9983
|
+
bodyMapper: SearchError
|
|
9941
9984
|
}
|
|
9942
9985
|
},
|
|
9943
|
-
queryParameters: [apiVersion
|
|
9944
|
-
urlParameters: [endpoint
|
|
9945
|
-
headerParameters: [accept
|
|
9986
|
+
queryParameters: [apiVersion],
|
|
9987
|
+
urlParameters: [endpoint, skillsetName],
|
|
9988
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9946
9989
|
serializer: serializer$3
|
|
9947
9990
|
};
|
|
9948
9991
|
const listOperationSpec$2 = {
|
|
@@ -9953,12 +9996,12 @@ const listOperationSpec$2 = {
|
|
|
9953
9996
|
bodyMapper: ListSkillsetsResult
|
|
9954
9997
|
},
|
|
9955
9998
|
default: {
|
|
9956
|
-
bodyMapper: SearchError
|
|
9999
|
+
bodyMapper: SearchError
|
|
9957
10000
|
}
|
|
9958
10001
|
},
|
|
9959
|
-
queryParameters: [apiVersion
|
|
9960
|
-
urlParameters: [endpoint
|
|
9961
|
-
headerParameters: [accept
|
|
10002
|
+
queryParameters: [apiVersion, select],
|
|
10003
|
+
urlParameters: [endpoint],
|
|
10004
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9962
10005
|
serializer: serializer$3
|
|
9963
10006
|
};
|
|
9964
10007
|
const createOperationSpec$2 = {
|
|
@@ -9969,16 +10012,16 @@ const createOperationSpec$2 = {
|
|
|
9969
10012
|
bodyMapper: SearchIndexerSkillset
|
|
9970
10013
|
},
|
|
9971
10014
|
default: {
|
|
9972
|
-
bodyMapper: SearchError
|
|
10015
|
+
bodyMapper: SearchError
|
|
9973
10016
|
}
|
|
9974
10017
|
},
|
|
9975
10018
|
requestBody: skillset,
|
|
9976
|
-
queryParameters: [apiVersion
|
|
9977
|
-
urlParameters: [endpoint
|
|
10019
|
+
queryParameters: [apiVersion],
|
|
10020
|
+
urlParameters: [endpoint],
|
|
9978
10021
|
headerParameters: [
|
|
9979
|
-
contentType
|
|
9980
|
-
accept
|
|
9981
|
-
xMsClientRequestId
|
|
10022
|
+
contentType,
|
|
10023
|
+
accept,
|
|
10024
|
+
xMsClientRequestId
|
|
9982
10025
|
],
|
|
9983
10026
|
mediaType: "json",
|
|
9984
10027
|
serializer: serializer$3
|
|
@@ -9989,16 +10032,16 @@ const resetSkillsOperationSpec = {
|
|
|
9989
10032
|
responses: {
|
|
9990
10033
|
204: {},
|
|
9991
10034
|
default: {
|
|
9992
|
-
bodyMapper: SearchError
|
|
10035
|
+
bodyMapper: SearchError
|
|
9993
10036
|
}
|
|
9994
10037
|
},
|
|
9995
10038
|
requestBody: skillNames,
|
|
9996
|
-
queryParameters: [apiVersion
|
|
9997
|
-
urlParameters: [endpoint
|
|
10039
|
+
queryParameters: [apiVersion],
|
|
10040
|
+
urlParameters: [endpoint, skillsetName],
|
|
9998
10041
|
headerParameters: [
|
|
9999
|
-
contentType
|
|
10000
|
-
accept
|
|
10001
|
-
xMsClientRequestId
|
|
10042
|
+
contentType,
|
|
10043
|
+
accept,
|
|
10044
|
+
xMsClientRequestId
|
|
10002
10045
|
],
|
|
10003
10046
|
mediaType: "json",
|
|
10004
10047
|
serializer: serializer$3
|
|
@@ -10027,7 +10070,7 @@ class SynonymMapsImpl {
|
|
|
10027
10070
|
* @param options The options parameters.
|
|
10028
10071
|
*/
|
|
10029
10072
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
10030
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
10073
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
10031
10074
|
}
|
|
10032
10075
|
/**
|
|
10033
10076
|
* Deletes a synonym map.
|
|
@@ -10035,7 +10078,7 @@ class SynonymMapsImpl {
|
|
|
10035
10078
|
* @param options The options parameters.
|
|
10036
10079
|
*/
|
|
10037
10080
|
delete(synonymMapName, options) {
|
|
10038
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
10081
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
10039
10082
|
}
|
|
10040
10083
|
/**
|
|
10041
10084
|
* Retrieves a synonym map definition.
|
|
@@ -10043,14 +10086,14 @@ class SynonymMapsImpl {
|
|
|
10043
10086
|
* @param options The options parameters.
|
|
10044
10087
|
*/
|
|
10045
10088
|
get(synonymMapName, options) {
|
|
10046
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
10089
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
10047
10090
|
}
|
|
10048
10091
|
/**
|
|
10049
10092
|
* Lists all synonym maps available for a search service.
|
|
10050
10093
|
* @param options The options parameters.
|
|
10051
10094
|
*/
|
|
10052
10095
|
list(options) {
|
|
10053
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10096
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
10054
10097
|
}
|
|
10055
10098
|
/**
|
|
10056
10099
|
* Creates a new synonym map.
|
|
@@ -10058,12 +10101,12 @@ class SynonymMapsImpl {
|
|
|
10058
10101
|
* @param options The options parameters.
|
|
10059
10102
|
*/
|
|
10060
10103
|
create(synonymMap, options) {
|
|
10061
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
10104
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
10062
10105
|
}
|
|
10063
10106
|
}
|
|
10064
10107
|
// Operation Specifications
|
|
10065
|
-
const serializer$
|
|
10066
|
-
const createOrUpdateOperationSpec$
|
|
10108
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10109
|
+
const createOrUpdateOperationSpec$1 = {
|
|
10067
10110
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10068
10111
|
httpMethod: "PUT",
|
|
10069
10112
|
responses: {
|
|
@@ -10074,44 +10117,44 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
10074
10117
|
bodyMapper: SynonymMap
|
|
10075
10118
|
},
|
|
10076
10119
|
default: {
|
|
10077
|
-
bodyMapper: SearchError
|
|
10120
|
+
bodyMapper: SearchError
|
|
10078
10121
|
}
|
|
10079
10122
|
},
|
|
10080
10123
|
requestBody: synonymMap,
|
|
10081
|
-
queryParameters: [apiVersion
|
|
10082
|
-
urlParameters: [endpoint
|
|
10124
|
+
queryParameters: [apiVersion],
|
|
10125
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10083
10126
|
headerParameters: [
|
|
10084
|
-
contentType
|
|
10085
|
-
accept
|
|
10086
|
-
xMsClientRequestId
|
|
10127
|
+
contentType,
|
|
10128
|
+
accept,
|
|
10129
|
+
xMsClientRequestId,
|
|
10087
10130
|
ifMatch,
|
|
10088
10131
|
ifNoneMatch,
|
|
10089
10132
|
prefer
|
|
10090
10133
|
],
|
|
10091
10134
|
mediaType: "json",
|
|
10092
|
-
serializer: serializer$
|
|
10135
|
+
serializer: serializer$2
|
|
10093
10136
|
};
|
|
10094
|
-
const deleteOperationSpec$
|
|
10137
|
+
const deleteOperationSpec$1 = {
|
|
10095
10138
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10096
10139
|
httpMethod: "DELETE",
|
|
10097
10140
|
responses: {
|
|
10098
10141
|
204: {},
|
|
10099
10142
|
404: {},
|
|
10100
10143
|
default: {
|
|
10101
|
-
bodyMapper: SearchError
|
|
10144
|
+
bodyMapper: SearchError
|
|
10102
10145
|
}
|
|
10103
10146
|
},
|
|
10104
|
-
queryParameters: [apiVersion
|
|
10105
|
-
urlParameters: [endpoint
|
|
10147
|
+
queryParameters: [apiVersion],
|
|
10148
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10106
10149
|
headerParameters: [
|
|
10107
|
-
accept
|
|
10108
|
-
xMsClientRequestId
|
|
10150
|
+
accept,
|
|
10151
|
+
xMsClientRequestId,
|
|
10109
10152
|
ifMatch,
|
|
10110
10153
|
ifNoneMatch
|
|
10111
10154
|
],
|
|
10112
|
-
serializer: serializer$
|
|
10155
|
+
serializer: serializer$2
|
|
10113
10156
|
};
|
|
10114
|
-
const getOperationSpec$
|
|
10157
|
+
const getOperationSpec$1 = {
|
|
10115
10158
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10116
10159
|
httpMethod: "GET",
|
|
10117
10160
|
responses: {
|
|
@@ -10119,15 +10162,15 @@ const getOperationSpec$4 = {
|
|
|
10119
10162
|
bodyMapper: SynonymMap
|
|
10120
10163
|
},
|
|
10121
10164
|
default: {
|
|
10122
|
-
bodyMapper: SearchError
|
|
10165
|
+
bodyMapper: SearchError
|
|
10123
10166
|
}
|
|
10124
10167
|
},
|
|
10125
|
-
queryParameters: [apiVersion
|
|
10126
|
-
urlParameters: [endpoint
|
|
10127
|
-
headerParameters: [accept
|
|
10128
|
-
serializer: serializer$
|
|
10168
|
+
queryParameters: [apiVersion],
|
|
10169
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10170
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10171
|
+
serializer: serializer$2
|
|
10129
10172
|
};
|
|
10130
|
-
const listOperationSpec$
|
|
10173
|
+
const listOperationSpec$1 = {
|
|
10131
10174
|
path: "/synonymmaps",
|
|
10132
10175
|
httpMethod: "GET",
|
|
10133
10176
|
responses: {
|
|
@@ -10135,15 +10178,15 @@ const listOperationSpec$3 = {
|
|
|
10135
10178
|
bodyMapper: ListSynonymMapsResult
|
|
10136
10179
|
},
|
|
10137
10180
|
default: {
|
|
10138
|
-
bodyMapper: SearchError
|
|
10181
|
+
bodyMapper: SearchError
|
|
10139
10182
|
}
|
|
10140
10183
|
},
|
|
10141
|
-
queryParameters: [apiVersion
|
|
10142
|
-
urlParameters: [endpoint
|
|
10143
|
-
headerParameters: [accept
|
|
10144
|
-
serializer: serializer$
|
|
10184
|
+
queryParameters: [apiVersion, select],
|
|
10185
|
+
urlParameters: [endpoint],
|
|
10186
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10187
|
+
serializer: serializer$2
|
|
10145
10188
|
};
|
|
10146
|
-
const createOperationSpec$
|
|
10189
|
+
const createOperationSpec$1 = {
|
|
10147
10190
|
path: "/synonymmaps",
|
|
10148
10191
|
httpMethod: "POST",
|
|
10149
10192
|
responses: {
|
|
@@ -10151,19 +10194,19 @@ const createOperationSpec$3 = {
|
|
|
10151
10194
|
bodyMapper: SynonymMap
|
|
10152
10195
|
},
|
|
10153
10196
|
default: {
|
|
10154
|
-
bodyMapper: SearchError
|
|
10197
|
+
bodyMapper: SearchError
|
|
10155
10198
|
}
|
|
10156
10199
|
},
|
|
10157
10200
|
requestBody: synonymMap,
|
|
10158
|
-
queryParameters: [apiVersion
|
|
10159
|
-
urlParameters: [endpoint
|
|
10201
|
+
queryParameters: [apiVersion],
|
|
10202
|
+
urlParameters: [endpoint],
|
|
10160
10203
|
headerParameters: [
|
|
10161
|
-
contentType
|
|
10162
|
-
accept
|
|
10163
|
-
xMsClientRequestId
|
|
10204
|
+
contentType,
|
|
10205
|
+
accept,
|
|
10206
|
+
xMsClientRequestId
|
|
10164
10207
|
],
|
|
10165
10208
|
mediaType: "json",
|
|
10166
|
-
serializer: serializer$
|
|
10209
|
+
serializer: serializer$2
|
|
10167
10210
|
};
|
|
10168
10211
|
|
|
10169
10212
|
/*
|
|
@@ -10188,14 +10231,14 @@ class IndexesImpl {
|
|
|
10188
10231
|
* @param options The options parameters.
|
|
10189
10232
|
*/
|
|
10190
10233
|
create(index, options) {
|
|
10191
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec
|
|
10234
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
10192
10235
|
}
|
|
10193
10236
|
/**
|
|
10194
10237
|
* Lists all indexes available for a search service.
|
|
10195
10238
|
* @param options The options parameters.
|
|
10196
10239
|
*/
|
|
10197
10240
|
list(options) {
|
|
10198
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
10241
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
10199
10242
|
}
|
|
10200
10243
|
/**
|
|
10201
10244
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -10204,7 +10247,7 @@ class IndexesImpl {
|
|
|
10204
10247
|
* @param options The options parameters.
|
|
10205
10248
|
*/
|
|
10206
10249
|
createOrUpdate(indexName, index, options) {
|
|
10207
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec
|
|
10250
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
10208
10251
|
}
|
|
10209
10252
|
/**
|
|
10210
10253
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -10214,7 +10257,7 @@ class IndexesImpl {
|
|
|
10214
10257
|
* @param options The options parameters.
|
|
10215
10258
|
*/
|
|
10216
10259
|
delete(indexName, options) {
|
|
10217
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec
|
|
10260
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
10218
10261
|
}
|
|
10219
10262
|
/**
|
|
10220
10263
|
* Retrieves an index definition.
|
|
@@ -10222,7 +10265,7 @@ class IndexesImpl {
|
|
|
10222
10265
|
* @param options The options parameters.
|
|
10223
10266
|
*/
|
|
10224
10267
|
get(indexName, options) {
|
|
10225
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec
|
|
10268
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
10226
10269
|
}
|
|
10227
10270
|
/**
|
|
10228
10271
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10243,8 +10286,8 @@ class IndexesImpl {
|
|
|
10243
10286
|
}
|
|
10244
10287
|
}
|
|
10245
10288
|
// Operation Specifications
|
|
10246
|
-
const serializer$
|
|
10247
|
-
const createOperationSpec
|
|
10289
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10290
|
+
const createOperationSpec = {
|
|
10248
10291
|
path: "/indexes",
|
|
10249
10292
|
httpMethod: "POST",
|
|
10250
10293
|
responses: {
|
|
@@ -10252,21 +10295,21 @@ const createOperationSpec$4 = {
|
|
|
10252
10295
|
bodyMapper: SearchIndex
|
|
10253
10296
|
},
|
|
10254
10297
|
default: {
|
|
10255
|
-
bodyMapper: SearchError
|
|
10298
|
+
bodyMapper: SearchError
|
|
10256
10299
|
}
|
|
10257
10300
|
},
|
|
10258
10301
|
requestBody: index,
|
|
10259
|
-
queryParameters: [apiVersion
|
|
10260
|
-
urlParameters: [endpoint
|
|
10302
|
+
queryParameters: [apiVersion],
|
|
10303
|
+
urlParameters: [endpoint],
|
|
10261
10304
|
headerParameters: [
|
|
10262
|
-
contentType
|
|
10263
|
-
accept
|
|
10264
|
-
xMsClientRequestId
|
|
10305
|
+
contentType,
|
|
10306
|
+
accept,
|
|
10307
|
+
xMsClientRequestId
|
|
10265
10308
|
],
|
|
10266
10309
|
mediaType: "json",
|
|
10267
|
-
serializer: serializer$
|
|
10310
|
+
serializer: serializer$1
|
|
10268
10311
|
};
|
|
10269
|
-
const listOperationSpec
|
|
10312
|
+
const listOperationSpec = {
|
|
10270
10313
|
path: "/indexes",
|
|
10271
10314
|
httpMethod: "GET",
|
|
10272
10315
|
responses: {
|
|
@@ -10274,15 +10317,15 @@ const listOperationSpec$4 = {
|
|
|
10274
10317
|
bodyMapper: ListIndexesResult
|
|
10275
10318
|
},
|
|
10276
10319
|
default: {
|
|
10277
|
-
bodyMapper: SearchError
|
|
10320
|
+
bodyMapper: SearchError
|
|
10278
10321
|
}
|
|
10279
10322
|
},
|
|
10280
|
-
queryParameters: [apiVersion
|
|
10281
|
-
urlParameters: [endpoint
|
|
10282
|
-
headerParameters: [accept
|
|
10283
|
-
serializer: serializer$
|
|
10323
|
+
queryParameters: [apiVersion, select],
|
|
10324
|
+
urlParameters: [endpoint],
|
|
10325
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10326
|
+
serializer: serializer$1
|
|
10284
10327
|
};
|
|
10285
|
-
const createOrUpdateOperationSpec
|
|
10328
|
+
const createOrUpdateOperationSpec = {
|
|
10286
10329
|
path: "/indexes('{indexName}')",
|
|
10287
10330
|
httpMethod: "PUT",
|
|
10288
10331
|
responses: {
|
|
@@ -10293,44 +10336,44 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10293
10336
|
bodyMapper: SearchIndex
|
|
10294
10337
|
},
|
|
10295
10338
|
default: {
|
|
10296
|
-
bodyMapper: SearchError
|
|
10339
|
+
bodyMapper: SearchError
|
|
10297
10340
|
}
|
|
10298
10341
|
},
|
|
10299
10342
|
requestBody: index,
|
|
10300
|
-
queryParameters: [apiVersion
|
|
10301
|
-
urlParameters: [endpoint
|
|
10343
|
+
queryParameters: [apiVersion, allowIndexDowntime],
|
|
10344
|
+
urlParameters: [endpoint, indexName],
|
|
10302
10345
|
headerParameters: [
|
|
10303
|
-
contentType
|
|
10304
|
-
accept
|
|
10305
|
-
xMsClientRequestId
|
|
10346
|
+
contentType,
|
|
10347
|
+
accept,
|
|
10348
|
+
xMsClientRequestId,
|
|
10306
10349
|
ifMatch,
|
|
10307
10350
|
ifNoneMatch,
|
|
10308
10351
|
prefer
|
|
10309
10352
|
],
|
|
10310
10353
|
mediaType: "json",
|
|
10311
|
-
serializer: serializer$
|
|
10354
|
+
serializer: serializer$1
|
|
10312
10355
|
};
|
|
10313
|
-
const deleteOperationSpec
|
|
10356
|
+
const deleteOperationSpec = {
|
|
10314
10357
|
path: "/indexes('{indexName}')",
|
|
10315
10358
|
httpMethod: "DELETE",
|
|
10316
10359
|
responses: {
|
|
10317
10360
|
204: {},
|
|
10318
10361
|
404: {},
|
|
10319
10362
|
default: {
|
|
10320
|
-
bodyMapper: SearchError
|
|
10363
|
+
bodyMapper: SearchError
|
|
10321
10364
|
}
|
|
10322
10365
|
},
|
|
10323
|
-
queryParameters: [apiVersion
|
|
10324
|
-
urlParameters: [endpoint
|
|
10366
|
+
queryParameters: [apiVersion],
|
|
10367
|
+
urlParameters: [endpoint, indexName],
|
|
10325
10368
|
headerParameters: [
|
|
10326
|
-
accept
|
|
10327
|
-
xMsClientRequestId
|
|
10369
|
+
accept,
|
|
10370
|
+
xMsClientRequestId,
|
|
10328
10371
|
ifMatch,
|
|
10329
10372
|
ifNoneMatch
|
|
10330
10373
|
],
|
|
10331
|
-
serializer: serializer$
|
|
10374
|
+
serializer: serializer$1
|
|
10332
10375
|
};
|
|
10333
|
-
const getOperationSpec
|
|
10376
|
+
const getOperationSpec = {
|
|
10334
10377
|
path: "/indexes('{indexName}')",
|
|
10335
10378
|
httpMethod: "GET",
|
|
10336
10379
|
responses: {
|
|
@@ -10338,13 +10381,13 @@ const getOperationSpec$5 = {
|
|
|
10338
10381
|
bodyMapper: SearchIndex
|
|
10339
10382
|
},
|
|
10340
10383
|
default: {
|
|
10341
|
-
bodyMapper: SearchError
|
|
10384
|
+
bodyMapper: SearchError
|
|
10342
10385
|
}
|
|
10343
10386
|
},
|
|
10344
|
-
queryParameters: [apiVersion
|
|
10345
|
-
urlParameters: [endpoint
|
|
10346
|
-
headerParameters: [accept
|
|
10347
|
-
serializer: serializer$
|
|
10387
|
+
queryParameters: [apiVersion],
|
|
10388
|
+
urlParameters: [endpoint, indexName],
|
|
10389
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10390
|
+
serializer: serializer$1
|
|
10348
10391
|
};
|
|
10349
10392
|
const getStatisticsOperationSpec = {
|
|
10350
10393
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -10354,13 +10397,13 @@ const getStatisticsOperationSpec = {
|
|
|
10354
10397
|
bodyMapper: GetIndexStatisticsResult
|
|
10355
10398
|
},
|
|
10356
10399
|
default: {
|
|
10357
|
-
bodyMapper: SearchError
|
|
10400
|
+
bodyMapper: SearchError
|
|
10358
10401
|
}
|
|
10359
10402
|
},
|
|
10360
|
-
queryParameters: [apiVersion
|
|
10361
|
-
urlParameters: [endpoint
|
|
10362
|
-
headerParameters: [accept
|
|
10363
|
-
serializer: serializer$
|
|
10403
|
+
queryParameters: [apiVersion],
|
|
10404
|
+
urlParameters: [endpoint, indexName],
|
|
10405
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10406
|
+
serializer: serializer$1
|
|
10364
10407
|
};
|
|
10365
10408
|
const analyzeOperationSpec = {
|
|
10366
10409
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -10370,19 +10413,19 @@ const analyzeOperationSpec = {
|
|
|
10370
10413
|
bodyMapper: AnalyzeResult
|
|
10371
10414
|
},
|
|
10372
10415
|
default: {
|
|
10373
|
-
bodyMapper: SearchError
|
|
10416
|
+
bodyMapper: SearchError
|
|
10374
10417
|
}
|
|
10375
10418
|
},
|
|
10376
10419
|
requestBody: request,
|
|
10377
|
-
queryParameters: [apiVersion
|
|
10378
|
-
urlParameters: [endpoint
|
|
10420
|
+
queryParameters: [apiVersion],
|
|
10421
|
+
urlParameters: [endpoint, indexName],
|
|
10379
10422
|
headerParameters: [
|
|
10380
|
-
contentType
|
|
10381
|
-
accept
|
|
10382
|
-
xMsClientRequestId
|
|
10423
|
+
contentType,
|
|
10424
|
+
accept,
|
|
10425
|
+
xMsClientRequestId
|
|
10383
10426
|
],
|
|
10384
10427
|
mediaType: "json",
|
|
10385
|
-
serializer: serializer$
|
|
10428
|
+
serializer: serializer$1
|
|
10386
10429
|
};
|
|
10387
10430
|
|
|
10388
10431
|
/*
|
|
@@ -10393,7 +10436,7 @@ const analyzeOperationSpec = {
|
|
|
10393
10436
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10394
10437
|
*/
|
|
10395
10438
|
/** @internal */
|
|
10396
|
-
class SearchServiceClientContext extends
|
|
10439
|
+
class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
|
|
10397
10440
|
/**
|
|
10398
10441
|
* Initializes a new instance of the SearchServiceClientContext class.
|
|
10399
10442
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -10460,7 +10503,7 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10460
10503
|
}
|
|
10461
10504
|
}
|
|
10462
10505
|
// Operation Specifications
|
|
10463
|
-
const serializer
|
|
10506
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10464
10507
|
const getServiceStatisticsOperationSpec = {
|
|
10465
10508
|
path: "/servicestats",
|
|
10466
10509
|
httpMethod: "GET",
|
|
@@ -10469,13 +10512,13 @@ const getServiceStatisticsOperationSpec = {
|
|
|
10469
10512
|
bodyMapper: ServiceStatistics
|
|
10470
10513
|
},
|
|
10471
10514
|
default: {
|
|
10472
|
-
bodyMapper: SearchError
|
|
10515
|
+
bodyMapper: SearchError
|
|
10473
10516
|
}
|
|
10474
10517
|
},
|
|
10475
|
-
queryParameters: [apiVersion
|
|
10476
|
-
urlParameters: [endpoint
|
|
10477
|
-
headerParameters: [accept
|
|
10478
|
-
serializer
|
|
10518
|
+
queryParameters: [apiVersion],
|
|
10519
|
+
urlParameters: [endpoint],
|
|
10520
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10521
|
+
serializer
|
|
10479
10522
|
};
|
|
10480
10523
|
|
|
10481
10524
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -10977,7 +11020,7 @@ class SearchIndexClient {
|
|
|
10977
11020
|
* @param options - SearchClient Options
|
|
10978
11021
|
*/
|
|
10979
11022
|
getSearchClient(indexName, options) {
|
|
10980
|
-
return new SearchClient
|
|
11023
|
+
return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
|
|
10981
11024
|
}
|
|
10982
11025
|
}
|
|
10983
11026
|
|
|
@@ -11636,11 +11679,13 @@ function odata(strings, ...values) {
|
|
|
11636
11679
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11637
11680
|
*/
|
|
11638
11681
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11639
|
-
var KnownApiVersion20210430Preview;
|
|
11682
|
+
var KnownApiVersion20210430Preview$1;
|
|
11640
11683
|
(function (KnownApiVersion20210430Preview) {
|
|
11641
11684
|
/** Api Version '2021-04-30-Preview' */
|
|
11642
11685
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11643
|
-
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11686
|
+
})(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
|
|
11687
|
+
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
11688
|
+
exports.KnownQueryLanguage = void 0;
|
|
11644
11689
|
(function (KnownQueryLanguage) {
|
|
11645
11690
|
/** Query language not specified. */
|
|
11646
11691
|
KnownQueryLanguage["None"] = "none";
|
|
@@ -11787,12 +11832,16 @@ var KnownApiVersion20210430Preview;
|
|
|
11787
11832
|
/** Query language value for Urdu (Pakistan). */
|
|
11788
11833
|
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
11789
11834
|
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
11835
|
+
/** Known values of {@link Speller} that the service accepts. */
|
|
11836
|
+
exports.KnownSpeller = void 0;
|
|
11790
11837
|
(function (KnownSpeller) {
|
|
11791
11838
|
/** Speller not enabled. */
|
|
11792
11839
|
KnownSpeller["None"] = "none";
|
|
11793
11840
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11794
11841
|
KnownSpeller["Lexicon"] = "lexicon";
|
|
11795
11842
|
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
11843
|
+
/** Known values of {@link Answers} that the service accepts. */
|
|
11844
|
+
exports.KnownAnswers = void 0;
|
|
11796
11845
|
(function (KnownAnswers) {
|
|
11797
11846
|
/** Do not return answers for the query. */
|
|
11798
11847
|
KnownAnswers["None"] = "none";
|
|
@@ -11807,18 +11856,24 @@ var KnownCaptions;
|
|
|
11807
11856
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11808
11857
|
KnownCaptions["Extractive"] = "extractive";
|
|
11809
11858
|
})(KnownCaptions || (KnownCaptions = {}));
|
|
11859
|
+
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
11860
|
+
exports.KnownQuerySpellerType = void 0;
|
|
11810
11861
|
(function (KnownQuerySpellerType) {
|
|
11811
11862
|
/** Speller not enabled. */
|
|
11812
11863
|
KnownQuerySpellerType["None"] = "none";
|
|
11813
11864
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11814
11865
|
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
11815
11866
|
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
11867
|
+
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
11868
|
+
exports.KnownQueryAnswerType = void 0;
|
|
11816
11869
|
(function (KnownQueryAnswerType) {
|
|
11817
11870
|
/** Do not return answers for the query. */
|
|
11818
11871
|
KnownQueryAnswerType["None"] = "none";
|
|
11819
11872
|
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11820
11873
|
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
11821
11874
|
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
11875
|
+
/** Known values of {@link QueryCaptionType} that the service accepts. */
|
|
11876
|
+
exports.KnownQueryCaptionType = void 0;
|
|
11822
11877
|
(function (KnownQueryCaptionType) {
|
|
11823
11878
|
/** Do not return captions for the query. */
|
|
11824
11879
|
KnownQueryCaptionType["None"] = "none";
|
|
@@ -11834,11 +11889,13 @@ var KnownCaptions;
|
|
|
11834
11889
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11835
11890
|
*/
|
|
11836
11891
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11837
|
-
var KnownApiVersion20210430Preview
|
|
11892
|
+
var KnownApiVersion20210430Preview;
|
|
11838
11893
|
(function (KnownApiVersion20210430Preview) {
|
|
11839
11894
|
/** Api Version '2021-04-30-Preview' */
|
|
11840
11895
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11841
|
-
})(KnownApiVersion20210430Preview
|
|
11896
|
+
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11897
|
+
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
11898
|
+
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
11842
11899
|
(function (KnownSearchIndexerDataSourceType) {
|
|
11843
11900
|
/** Indicates an Azure SQL datasource. */
|
|
11844
11901
|
KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
|
|
@@ -11853,6 +11910,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11853
11910
|
/** Indicates an ADLS Gen2 datasource. */
|
|
11854
11911
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
11855
11912
|
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
11913
|
+
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
11914
|
+
exports.KnownBlobIndexerParsingMode = void 0;
|
|
11856
11915
|
(function (KnownBlobIndexerParsingMode) {
|
|
11857
11916
|
/** Set to default for normal file processing. */
|
|
11858
11917
|
KnownBlobIndexerParsingMode["Default"] = "default";
|
|
@@ -11867,6 +11926,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11867
11926
|
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
|
|
11868
11927
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
11869
11928
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
11929
|
+
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
11930
|
+
exports.KnownBlobIndexerDataToExtract = void 0;
|
|
11870
11931
|
(function (KnownBlobIndexerDataToExtract) {
|
|
11871
11932
|
/** Indexes just the standard blob properties and user-specified metadata. */
|
|
11872
11933
|
KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
|
|
@@ -11875,6 +11936,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11875
11936
|
/** Extracts all metadata and textual content from each blob. */
|
|
11876
11937
|
KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
|
|
11877
11938
|
})(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
|
|
11939
|
+
/** Known values of {@link BlobIndexerImageAction} that the service accepts. */
|
|
11940
|
+
exports.KnownBlobIndexerImageAction = void 0;
|
|
11878
11941
|
(function (KnownBlobIndexerImageAction) {
|
|
11879
11942
|
/** Ignores embedded images or image files in the data set. This is the default. */
|
|
11880
11943
|
KnownBlobIndexerImageAction["None"] = "none";
|
|
@@ -11883,6 +11946,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11883
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. */
|
|
11884
11947
|
KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
|
|
11885
11948
|
})(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
|
|
11949
|
+
/** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */
|
|
11950
|
+
exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
|
|
11886
11951
|
(function (KnownBlobIndexerPDFTextRotationAlgorithm) {
|
|
11887
11952
|
/** Leverages normal text extraction. This is the default. */
|
|
11888
11953
|
KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
|
|
@@ -11897,10 +11962,14 @@ var KnownIndexerExecutionEnvironment;
|
|
|
11897
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. */
|
|
11898
11963
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
11899
11964
|
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
11965
|
+
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
11966
|
+
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
11900
11967
|
(function (KnownIndexerExecutionStatusDetail) {
|
|
11901
11968
|
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
11902
11969
|
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
11903
11970
|
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
11971
|
+
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
11972
|
+
exports.KnownIndexingMode = void 0;
|
|
11904
11973
|
(function (KnownIndexingMode) {
|
|
11905
11974
|
/** The indexer is indexing all documents in the datasource. */
|
|
11906
11975
|
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
@@ -11935,6 +12004,8 @@ var KnownSearchFieldDataType;
|
|
|
11935
12004
|
KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
|
|
11936
12005
|
KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
|
|
11937
12006
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
12007
|
+
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
12008
|
+
exports.KnownLexicalAnalyzerName = void 0;
|
|
11938
12009
|
(function (KnownLexicalAnalyzerName) {
|
|
11939
12010
|
/** Microsoft analyzer for Arabic. */
|
|
11940
12011
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -12123,6 +12194,8 @@ var KnownSearchFieldDataType;
|
|
|
12123
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 */
|
|
12124
12195
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
12125
12196
|
})(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
|
|
12197
|
+
/** Known values of {@link LexicalNormalizerName} that the service accepts. */
|
|
12198
|
+
exports.KnownLexicalNormalizerName = void 0;
|
|
12126
12199
|
(function (KnownLexicalNormalizerName) {
|
|
12127
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 */
|
|
12128
12201
|
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
@@ -12135,6 +12208,8 @@ var KnownSearchFieldDataType;
|
|
|
12135
12208
|
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
12136
12209
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
12137
12210
|
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
12211
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
12212
|
+
exports.KnownTokenFilterName = void 0;
|
|
12138
12213
|
(function (KnownTokenFilterName) {
|
|
12139
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 */
|
|
12140
12215
|
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
@@ -12205,10 +12280,14 @@ var KnownSearchFieldDataType;
|
|
|
12205
12280
|
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
12206
12281
|
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
12207
12282
|
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
12283
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
12284
|
+
exports.KnownCharFilterName = void 0;
|
|
12208
12285
|
(function (KnownCharFilterName) {
|
|
12209
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 */
|
|
12210
12287
|
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
12211
12288
|
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
12289
|
+
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
12290
|
+
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
12212
12291
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
12213
12292
|
/** Danish */
|
|
12214
12293
|
KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
|
|
@@ -12243,6 +12322,8 @@ var KnownSearchFieldDataType;
|
|
|
12243
12322
|
/** Swedish */
|
|
12244
12323
|
KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
|
|
12245
12324
|
})(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
|
|
12325
|
+
/** Known values of {@link OcrSkillLanguage} that the service accepts. */
|
|
12326
|
+
exports.KnownOcrSkillLanguage = void 0;
|
|
12246
12327
|
(function (KnownOcrSkillLanguage) {
|
|
12247
12328
|
/** Chinese-Simplified */
|
|
12248
12329
|
KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
|
|
@@ -12297,6 +12378,8 @@ var KnownSearchFieldDataType;
|
|
|
12297
12378
|
/** Slovak */
|
|
12298
12379
|
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12299
12380
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12381
|
+
/** Known values of {@link LineEnding} that the service accepts. */
|
|
12382
|
+
exports.KnownLineEnding = void 0;
|
|
12300
12383
|
(function (KnownLineEnding) {
|
|
12301
12384
|
/** Lines are separated by a single space character. */
|
|
12302
12385
|
KnownLineEnding["Space"] = "space";
|
|
@@ -12307,6 +12390,8 @@ var KnownSearchFieldDataType;
|
|
|
12307
12390
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
12308
12391
|
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
12309
12392
|
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
12393
|
+
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
12394
|
+
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
12310
12395
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
12311
12396
|
/** English */
|
|
12312
12397
|
KnownImageAnalysisSkillLanguage["En"] = "en";
|
|
@@ -12319,6 +12404,8 @@ var KnownSearchFieldDataType;
|
|
|
12319
12404
|
/** Chinese */
|
|
12320
12405
|
KnownImageAnalysisSkillLanguage["Zh"] = "zh";
|
|
12321
12406
|
})(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
|
|
12407
|
+
/** Known values of {@link VisualFeature} that the service accepts. */
|
|
12408
|
+
exports.KnownVisualFeature = void 0;
|
|
12322
12409
|
(function (KnownVisualFeature) {
|
|
12323
12410
|
/** Visual features recognized as adult persons. */
|
|
12324
12411
|
KnownVisualFeature["Adult"] = "adult";
|
|
@@ -12335,12 +12422,16 @@ var KnownSearchFieldDataType;
|
|
|
12335
12422
|
/** Tags. */
|
|
12336
12423
|
KnownVisualFeature["Tags"] = "tags";
|
|
12337
12424
|
})(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
|
|
12425
|
+
/** Known values of {@link ImageDetail} that the service accepts. */
|
|
12426
|
+
exports.KnownImageDetail = void 0;
|
|
12338
12427
|
(function (KnownImageDetail) {
|
|
12339
12428
|
/** Details recognized as celebrities. */
|
|
12340
12429
|
KnownImageDetail["Celebrities"] = "celebrities";
|
|
12341
12430
|
/** Details recognized as landmarks. */
|
|
12342
12431
|
KnownImageDetail["Landmarks"] = "landmarks";
|
|
12343
12432
|
})(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
|
|
12433
|
+
/** Known values of {@link EntityCategory} that the service accepts. */
|
|
12434
|
+
exports.KnownEntityCategory = void 0;
|
|
12344
12435
|
(function (KnownEntityCategory) {
|
|
12345
12436
|
/** Entities describing a physical location. */
|
|
12346
12437
|
KnownEntityCategory["Location"] = "location";
|
|
@@ -12357,6 +12448,8 @@ var KnownSearchFieldDataType;
|
|
|
12357
12448
|
/** Entities describing an email address. */
|
|
12358
12449
|
KnownEntityCategory["Email"] = "email";
|
|
12359
12450
|
})(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
|
|
12451
|
+
/** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */
|
|
12452
|
+
exports.KnownEntityRecognitionSkillLanguage = void 0;
|
|
12360
12453
|
(function (KnownEntityRecognitionSkillLanguage) {
|
|
12361
12454
|
/** Arabic */
|
|
12362
12455
|
KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
|
|
@@ -12405,6 +12498,8 @@ var KnownSearchFieldDataType;
|
|
|
12405
12498
|
/** Turkish */
|
|
12406
12499
|
KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
|
|
12407
12500
|
})(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
|
|
12501
|
+
/** Known values of {@link SentimentSkillLanguage} that the service accepts. */
|
|
12502
|
+
exports.KnownSentimentSkillLanguage = void 0;
|
|
12408
12503
|
(function (KnownSentimentSkillLanguage) {
|
|
12409
12504
|
/** Danish */
|
|
12410
12505
|
KnownSentimentSkillLanguage["Da"] = "da";
|
|
@@ -12437,12 +12532,16 @@ var KnownSearchFieldDataType;
|
|
|
12437
12532
|
/** Turkish */
|
|
12438
12533
|
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
12439
12534
|
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
12535
|
+
/** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
|
|
12536
|
+
exports.KnownPIIDetectionSkillMaskingMode = void 0;
|
|
12440
12537
|
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
12441
12538
|
/** No masking occurs and the maskedText output will not be returned. */
|
|
12442
12539
|
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
12443
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. */
|
|
12444
12541
|
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
12445
12542
|
})(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
|
|
12543
|
+
/** Known values of {@link SplitSkillLanguage} that the service accepts. */
|
|
12544
|
+
exports.KnownSplitSkillLanguage = void 0;
|
|
12446
12545
|
(function (KnownSplitSkillLanguage) {
|
|
12447
12546
|
/** Danish */
|
|
12448
12547
|
KnownSplitSkillLanguage["Da"] = "da";
|
|
@@ -12463,12 +12562,16 @@ var KnownSearchFieldDataType;
|
|
|
12463
12562
|
/** Portuguese */
|
|
12464
12563
|
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12465
12564
|
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
12565
|
+
/** Known values of {@link TextSplitMode} that the service accepts. */
|
|
12566
|
+
exports.KnownTextSplitMode = void 0;
|
|
12466
12567
|
(function (KnownTextSplitMode) {
|
|
12467
12568
|
/** Split the text into individual pages. */
|
|
12468
12569
|
KnownTextSplitMode["Pages"] = "pages";
|
|
12469
12570
|
/** Split the text into individual sentences. */
|
|
12470
12571
|
KnownTextSplitMode["Sentences"] = "sentences";
|
|
12471
12572
|
})(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
|
|
12573
|
+
/** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
|
|
12574
|
+
exports.KnownCustomEntityLookupSkillLanguage = void 0;
|
|
12472
12575
|
(function (KnownCustomEntityLookupSkillLanguage) {
|
|
12473
12576
|
/** Danish */
|
|
12474
12577
|
KnownCustomEntityLookupSkillLanguage["Da"] = "da";
|
|
@@ -12489,6 +12592,8 @@ var KnownSearchFieldDataType;
|
|
|
12489
12592
|
/** Portuguese */
|
|
12490
12593
|
KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
|
|
12491
12594
|
})(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
|
|
12595
|
+
/** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */
|
|
12596
|
+
exports.KnownTextTranslationSkillLanguage = void 0;
|
|
12492
12597
|
(function (KnownTextTranslationSkillLanguage) {
|
|
12493
12598
|
/** Afrikaans */
|
|
12494
12599
|
KnownTextTranslationSkillLanguage["Af"] = "af";
|
|
@@ -12665,6 +12770,8 @@ var KnownLexicalTokenizerName;
|
|
|
12665
12770
|
/** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
|
|
12666
12771
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
12667
12772
|
})(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
|
|
12773
|
+
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
12774
|
+
exports.KnownRegexFlags = void 0;
|
|
12668
12775
|
(function (KnownRegexFlags) {
|
|
12669
12776
|
/** Enables canonical equivalence. */
|
|
12670
12777
|
KnownRegexFlags["CanonEq"] = "CANON_EQ";
|
|
@@ -12685,7 +12792,7 @@ var KnownLexicalTokenizerName;
|
|
|
12685
12792
|
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
12686
12793
|
|
|
12687
12794
|
// Copyright (c) Microsoft Corporation.
|
|
12688
|
-
const readFileAsync = util.promisify(
|
|
12795
|
+
const readFileAsync = util.promisify(fs__namespace.readFile);
|
|
12689
12796
|
/**
|
|
12690
12797
|
* Helper method to create a SynonymMap object. This is a NodeJS only method.
|
|
12691
12798
|
*
|
|
@@ -12707,16 +12814,14 @@ async function createSynonymMapFromFile(name, filePath) {
|
|
|
12707
12814
|
|
|
12708
12815
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
|
12709
12816
|
enumerable: true,
|
|
12710
|
-
get: function () {
|
|
12711
|
-
return coreAuth.AzureKeyCredential;
|
|
12712
|
-
}
|
|
12817
|
+
get: function () { return coreAuth.AzureKeyCredential; }
|
|
12713
12818
|
});
|
|
12714
12819
|
exports.DEFAULT_BATCH_SIZE = DEFAULT_BATCH_SIZE;
|
|
12715
12820
|
exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
12716
12821
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
12717
12822
|
exports.GeographyPoint = GeographyPoint;
|
|
12718
12823
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
12719
|
-
exports.SearchClient = SearchClient
|
|
12824
|
+
exports.SearchClient = SearchClient;
|
|
12720
12825
|
exports.SearchIndexClient = SearchIndexClient;
|
|
12721
12826
|
exports.SearchIndexerClient = SearchIndexerClient;
|
|
12722
12827
|
exports.SearchIndexingBufferedSender = SearchIndexingBufferedSender;
|