@azure/search-documents 11.3.0-beta.8 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +227 -0
- package/README.md +40 -18
- package/dist/index.js +961 -3443
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/data/index.js +1 -1
- package/dist-esm/src/generated/data/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +1 -202
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +1 -138
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +13 -72
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +51 -23
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js +5 -33
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js +11 -13
- package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
- package/dist-esm/src/generated/service/index.js +1 -1
- package/dist-esm/src/generated/service/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +1 -904
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +25 -750
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/models/parameters.js +1 -51
- package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/service/operations/dataSources.js +30 -13
- package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
- package/dist-esm/src/generated/service/operations/index.js +0 -1
- package/dist-esm/src/generated/service/operations/index.js.map +1 -1
- package/dist-esm/src/generated/service/operations/indexers.js +45 -45
- package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
- package/dist-esm/src/generated/service/operations/indexes.js +40 -11
- package/dist-esm/src/generated/service/operations/indexes.js.map +1 -1
- package/dist-esm/src/generated/service/operations/skillsets.js +30 -43
- package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
- package/dist-esm/src/generated/service/operations/synonymMaps.js +29 -9
- package/dist-esm/src/generated/service/operations/synonymMaps.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +15 -37
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js +11 -13
- package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
- package/dist-esm/src/geographyPoint.js +1 -1
- package/dist-esm/src/geographyPoint.js.map +1 -1
- package/dist-esm/src/index.js +2 -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 +15 -7
- package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
- package/dist-esm/src/searchApiKeyCredentialPolicy.js +21 -8
- package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/src/searchAudience.js.map +1 -1
- package/dist-esm/src/searchClient.js +67 -91
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +74 -236
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +86 -143
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/searchIndexingBufferedSender.js +17 -16
- 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 +31 -68
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/dist-esm/src/synonymMapHelper.js +2 -6
- package/dist-esm/src/synonymMapHelper.js.map +1 -1
- package/dist-esm/src/tracing.js +5 -6
- package/dist-esm/src/tracing.js.map +1 -1
- package/package.json +44 -45
- package/types/search-documents.d.ts +162 -1150
- package/dist-esm/src/generated/data/operationsInterfaces/documents.js +0 -9
- package/dist-esm/src/generated/data/operationsInterfaces/documents.js.map +0 -1
- package/dist-esm/src/generated/data/operationsInterfaces/index.js +0 -9
- package/dist-esm/src/generated/data/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/service/operations/aliases.js +0 -166
- package/dist-esm/src/generated/service/operations/aliases.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/index.js +0 -14
- package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexers.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexes.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/indexes.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js +0 -9
- package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 11.3.0 (2022-09-06)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
- Enabled national cloud support for Azure Search SDK. Please refer [#22887](https://github.com/Azure/azure-sdk-for-js/pull/22887) for further details.
|
|
8
|
+
- Support for TokenCredential has been added. With this addition, the Search SDK supports authentication via AAD.
|
|
9
|
+
|
|
10
|
+
### Bugs Fixed
|
|
11
|
+
|
|
12
|
+
- Converted the complex fields correctly within the Search Fields. Please refer [#16489](https://github.com/Azure/azure-sdk-for-js/issues/16489) for more details.
|
|
13
|
+
- Fixed the typos `anayzerName` to `analyzerName` in `convertFieldsToPublic` method of `serviceUtils.ts`.
|
|
14
|
+
- Fixed the issue with the presence of recursive structure while uploading documents. Please refer [#15656](https://github.com/Azure/azure-sdk-for-js/issues/15656) for further details.
|
|
15
|
+
|
|
16
|
+
### Note
|
|
17
|
+
|
|
18
|
+
- This GA release includes AAD with multi-cloud support and all the bug fixes since the last [11.2.0](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/CHANGELOG.md#1120-2021-06-08) GA release. Other preview features and breaking changes from the [11.3.0-beta.1](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/CHANGELOG.md#1130-beta1-2021-07-07) to [11.3.0-beta.8](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/CHANGELOG.md#1130-beta8-unreleased) releases are not included in this GA release.
|
|
19
|
+
|
|
20
|
+
## 11.3.0-beta.8 (2022-09-06)
|
|
21
|
+
|
|
22
|
+
- Added `core-http-compat` dependency
|
|
23
|
+
- Enabled national cloud support for Azure Search SDK. Please refer [#22887](https://github.com/Azure/azure-sdk-for-js/pull/22887) for further details.
|
|
24
|
+
|
|
25
|
+
## 11.3.0-beta.7 (2022-03-08)
|
|
26
|
+
|
|
27
|
+
### Features Added
|
|
28
|
+
|
|
29
|
+
- Added new APIs `createAlias`, `createOrUpdateAlias`, `deleteAlias`, `getAlias` & `listAliases` operations to the `SearchIndexClient`.
|
|
30
|
+
|
|
31
|
+
## 11.3.0-beta.6 (2022-02-08)
|
|
32
|
+
|
|
33
|
+
### Features Added
|
|
34
|
+
|
|
35
|
+
- Added new type of SearchIndexer skill - `AzureMachineLearningSkill`. Please refer [#20183](https://github.com/Azure/azure-sdk-for-js/pull/20183) for further details.
|
|
36
|
+
|
|
37
|
+
### Other Changes
|
|
38
|
+
|
|
39
|
+
- Deprecated `SearchClientOptions.apiVersion` in favor of `SearchClientOptions.serviceVersion`.
|
|
40
|
+
- `apiVersion` will continue to be supported in version 11.x; however, customers are encouraged to migrate to `serviceVersion` instead which is more consistent with the rest of our client libraries.
|
|
41
|
+
|
|
42
|
+
## 11.3.0-beta.5 (2021-11-09)
|
|
43
|
+
|
|
44
|
+
### Features Added
|
|
45
|
+
|
|
46
|
+
- Added `semanticConfiguration` property to `SearchRequest` object.
|
|
47
|
+
- Several new languages are added to the `KnownQueryLanguage` object.
|
|
48
|
+
- Added `semanticSettings` property to `SearchIndex` object.
|
|
49
|
+
|
|
50
|
+
### Breaking Changes
|
|
51
|
+
|
|
52
|
+
- Renamed `IndexerCurrentState` property to `IndexerState` property.
|
|
53
|
+
- Renamed `AllDocsInitialChangeTrackingState` property to `AllDocumentsInitialChangeTrackingState` property.
|
|
54
|
+
- Renamed `AllDocsFinalChangeTrackingState` property to `AllDocumentsFinalChangeTrackingState` property.
|
|
55
|
+
- Renamed `ResetDocsInitialChangeTrackingState` property to `ResetDocumentsInitialChangeTrackingState` property.
|
|
56
|
+
- Renamed `ResetDocsFinalChangeTrackingState` property to `ResetDocumentsFinalChangeTrackingState` property.
|
|
57
|
+
- Renamed `SkillNames` property to `ResetSkillsOptions` (with a `SkillNames` property)
|
|
58
|
+
- Renamed `ResetDocs` method to `ResetDocuments` in the SDK client.
|
|
59
|
+
|
|
60
|
+
### Bugs Fixed
|
|
61
|
+
|
|
62
|
+
- Fixed the issue with the presence of recursive structure while uploading documents. Please refer [#15656](https://github.com/Azure/azure-sdk-for-js/issues/15656) for further details.
|
|
63
|
+
|
|
64
|
+
## 11.3.0-beta.4 (2021-10-05)
|
|
65
|
+
|
|
66
|
+
### Features Added
|
|
67
|
+
|
|
68
|
+
- Added properties `currentState` & `statusDetail` to the `IndexerExecutionResult` object.
|
|
69
|
+
- Added operations `resetDocs` & `resetSkills` to the `SearchIndexerClient` class.
|
|
70
|
+
|
|
71
|
+
### Breaking Changes
|
|
72
|
+
|
|
73
|
+
- Changed property `ignoreResetRequirements` to `skipIndexerResetRequirementForCache` in `CreateorUpdateDataSourceConnectionOptions`, `CreateorUpdateIndexerOptions` & `CreateOrUpdateSkillsetOptions` objects.
|
|
74
|
+
- Changed the type of `answers` property from `Answers` to `QueryAnswerType`, in the `SearchRequest` object.
|
|
75
|
+
- Changed the type of `captions` property from `Captions` to `QueryCaptionType`, in the `SearchRequest` object.
|
|
76
|
+
- Changed the type of `speller` property from `Speller` to `QuerySpellerType`, in the `SearchRequest` object.
|
|
77
|
+
- Changed the underlying dependency of the SDK from `core-http` to `core-rest-pipeline` package.
|
|
78
|
+
|
|
79
|
+
## 11.3.0-beta.3 (2021-09-07)
|
|
80
|
+
|
|
81
|
+
### Features Added
|
|
82
|
+
|
|
83
|
+
- Added a new property `normalizerName` to the `AnalyzeRequest` object.
|
|
84
|
+
- Added 2 new properties `captions` & `semanticFields` to the `SearchRequestOptions` object.
|
|
85
|
+
|
|
86
|
+
## 11.3.0-beta.2 (2021-08-10)
|
|
87
|
+
|
|
88
|
+
### Features Added
|
|
89
|
+
|
|
90
|
+
- Added a new parameter `ignoreResetRequirements` for the `createOrUpdate` operation of Data Sources.
|
|
91
|
+
- Added new parameters `ignoreResetRequirements` & `disableCacheReprocessingChangeDetection` for the `createOrUpdate` operation of Indexers and Skillsets.
|
|
92
|
+
|
|
93
|
+
### Bugs Fixed
|
|
94
|
+
|
|
95
|
+
- Converted the complex fields correctly within the Search Fields. Please refer [#16489](https://github.com/Azure/azure-sdk-for-js/issues/16489) for more details.
|
|
96
|
+
- Fixed the typos `anayzerName` to `analyzerName` and `normalizerNames` to `normalizerName` in `convertFieldsToPublic` method of `serviceUtils.ts`.
|
|
97
|
+
|
|
98
|
+
### Other Changes
|
|
99
|
+
|
|
100
|
+
- Removed the `| null` from the definitions of the optional values. Please refer [#16694](https://github.com/Azure/azure-sdk-for-js/pull/16694) for more details.
|
|
101
|
+
|
|
102
|
+
## 11.3.0-beta.1 (2021-07-07)
|
|
103
|
+
|
|
104
|
+
- With the dropping of support for Node.js versions that are no longer in LTS, the dependency on `@types/node` has been updated to version 12. Read our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
105
|
+
- Updated our internal core package dependencies to their latest versions in order to add support for Opentelemetry 1.0.0 which is compatible with the latest versions of our other client libraries.
|
|
106
|
+
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
|
|
107
|
+
- Regenerated the search SDK with the latest swaggers that includes the following changes:
|
|
108
|
+
|
|
109
|
+
- Support for `TokenCredential` has been added. With this addition, the Search SDK supports authentication via AAD.
|
|
110
|
+
- Identity types - `SearchIndexerDataNoneIdentity` & `SearchIndexerDataUserAssignedIdentity` have been added.
|
|
111
|
+
- The following new skills have been added:
|
|
112
|
+
- SentimentSkill(V3)
|
|
113
|
+
- EntityLinkingSkill(V3)
|
|
114
|
+
- EntityRecognitionSkill(V3)
|
|
115
|
+
- PIIDetectionSkill
|
|
116
|
+
- A new property `lineEnding` has been added to the skill `OcrSkill`.
|
|
117
|
+
|
|
118
|
+
## 11.2.0 (2021-06-08)
|
|
119
|
+
|
|
120
|
+
The list of changes in 11.2.0 since 11.1.0 & 11.2.0-beta.2 are provided below:
|
|
121
|
+
|
|
122
|
+
**Changes since 11.1.0**
|
|
123
|
+
|
|
124
|
+
- Added support for Knowledge Store feature through the new `SearchIndexerKnowledgeStore` in the `SearchIndexerSkillset` object.
|
|
125
|
+
- The `skillsetCounter` property in `ServiceCounters` object has been made optional.
|
|
126
|
+
- Added Support for new datasource `adlsgen2`. Please refer [#14620](https://github.com/Azure/azure-sdk-for-js/pull/14620) for further details.
|
|
127
|
+
- Added Support for new skills such as `CustomEntityLookupSkill`, `DocumentExtractionSkill`, etc. Please refer [#14620](https://github.com/Azure/azure-sdk-for-js/pull/14620) for further details.
|
|
128
|
+
|
|
129
|
+
**Changes since 11.2.0-beta.2**
|
|
130
|
+
|
|
131
|
+
- Removed Support for Semantic Search and introduced new properties in `SearchOptions`, `SearchRequest`, `SearchResult` and `SearchDocumentsResult` objects.
|
|
132
|
+
- Removed Support for normalizers `LexicalNormalizer` & `CustomNormalizer`. Please refer [#14620](https://github.com/Azure/azure-sdk-for-js/pull/14620) for further details.
|
|
133
|
+
|
|
134
|
+
## 11.2.0-beta.2 (2021-05-11)
|
|
135
|
+
|
|
136
|
+
- Added Support for Semantic Search and introduced new properties in `SearchOptions`, `SearchRequest`, `SearchResult` and `SearchDocumentsResult` objects.
|
|
137
|
+
- Added support for Knowledge Store feature through the new `SearchIndexerKnowledgeStore` in the `SearchIndexerSkillset` object.
|
|
138
|
+
- The `skillsetCounter` property in `ServiceCounters` object has been made optional.
|
|
139
|
+
|
|
140
|
+
## 11.2.0-beta.1 (2021-04-06)
|
|
141
|
+
|
|
142
|
+
- Added Support for new skills such as `CustomEntityLookupSkill`, `DocumentExtractionSkill`, etc. Please refer [#14620](https://github.com/Azure/azure-sdk-for-js/pull/14620) for further details.
|
|
143
|
+
- Added Support for new datasource `adlsgen2`. Please refer [#14620](https://github.com/Azure/azure-sdk-for-js/pull/14620) for further details.
|
|
144
|
+
- Added Support for normalizers `LexicalNormalizer` & `CustomNormalizer`. Please refer [#14620](https://github.com/Azure/azure-sdk-for-js/pull/14620) for further details.
|
|
145
|
+
|
|
146
|
+
## 11.1.0 (2021-02-11)
|
|
147
|
+
|
|
148
|
+
- The list of changes in 11.1.0 since 11.0.3 & 11.1.0-beta.2 are provided below:
|
|
149
|
+
|
|
150
|
+
**Changes since 11.0.3**
|
|
151
|
+
|
|
152
|
+
- Added Batching ability to the search SDK. The `SearchIndexingBufferedSender` class enables the user to perform indexing documents in batch mode. There are several user configurable properties such as `autoFlush`, `flushWindowInMs`, `throttlingDelayInMs`, etc.
|
|
153
|
+
- The types `BlobIndexerDataToExtract`, `BlobIndexerImageAction`, `BlobIndexerParsingMode`, `BlobIndexerPDFTextRotationAlgorithm` have changed from union of string literals to string. This is to support the service definition for these types to be extensible enums. The documentation on methods that use these have been updated with known values that can be used for these types.
|
|
154
|
+
|
|
155
|
+
**Changes since 11.1.0-beta.2**
|
|
156
|
+
|
|
157
|
+
- [Breaking] Hidden the constructor of `SearchIndexingBufferedSender` and made it to an interface. Please refer [#11785](https://github.com/Azure/azure-sdk-for-js/pull/11785) for further details.
|
|
158
|
+
- Added `encryptionKey` property to `SearchIndexerDataSource`, `SearchIndexer` and `SearchIndexerSkillSet` objects. Please refer [#12275](https://github.com/Azure/azure-sdk-for-js/pull/12275) for further details.
|
|
159
|
+
- Added user configurable properties such as `flushWindowInMs`, `initialBatchActionCount`, `maxRetries`, etc to the `SearchIndexingBufferedSenderOptions` object. Please refer [#12297](https://github.com/Azure/azure-sdk-for-js/pull/12297) for further details.
|
|
160
|
+
|
|
161
|
+
## 11.1.0-beta.1 (2020-10-05)
|
|
162
|
+
|
|
163
|
+
- Added Batching ability to the search SDK. Please refer [#11544](https://github.com/Azure/azure-sdk-for-js/pull/11544) for further details.
|
|
164
|
+
- Regenerated the search SDK using the latest swaggers. Please refer [#11533](https://github.com/Azure/azure-sdk-for-js/pull/11533) for further details.
|
|
165
|
+
- Fixed the testcases to ensure success in CI. Please refer [#11518](https://github.com/Azure/azure-sdk-for-js/pull/11518) for further details.
|
|
166
|
+
- Added more test cases for odata scenario. Please refer [#11321](https://github.com/Azure/azure-sdk-for-js/pull/11321) for further details.
|
|
167
|
+
|
|
168
|
+
## 11.0.3 (2020-08-04)
|
|
169
|
+
|
|
170
|
+
- Fixed the parented tracing span in the searchClient.search API. Please refer [#10442](https://github.com/Azure/azure-sdk-for-js/issues/10442) for further details.
|
|
171
|
+
|
|
172
|
+
## 11.0.2 (2020-07-31)
|
|
173
|
+
|
|
174
|
+
- Fixed the samples in the Readme File. Please refer [#10383](https://github.com/Azure/azure-sdk-for-js/pull/10383) for further details.
|
|
175
|
+
|
|
176
|
+
## 11.0.1 (2020-07-20)
|
|
177
|
+
|
|
178
|
+
- [BugFix] Set the correct continuation token in the search documrnts API. Please refer [#10146](https://github.com/Azure/azure-sdk-for-js/pull/10146) for further details.
|
|
179
|
+
|
|
180
|
+
## 11.0.0 (2020-07-06)
|
|
181
|
+
|
|
182
|
+
- Set `ConnectionString` value to `<unchanged>` in `SearchIndexerDataSourceConnection`, if the value is not set by the user.
|
|
183
|
+
- [Breaking] In Suggest API & Search API return values, a new property called `document` is introduced. All user-defined fields are moved inside this `document` property.
|
|
184
|
+
- [Breaking] In `analyzeText` API, the `text` parameter is moved from method level to inside `options` bag.
|
|
185
|
+
- [Breaking] In `search` API, `includeTotalResultCount` property is renamed to `includeTotalCount`.
|
|
186
|
+
- [Breaking] In `ServiceCounters`, the `skillsetCounter` property has been removed.
|
|
187
|
+
- [Breaking] Modified the names of several properties. Please refer [#9321](https://github.com/Azure/azure-sdk-for-js/issues/9321) for a detailed list of renames.
|
|
188
|
+
|
|
189
|
+
## 1.0.0-preview.4 (2020-06-08)
|
|
190
|
+
|
|
191
|
+
- [Breaking] Changed `ListIndexes` operation to a pageable operation.
|
|
192
|
+
- [Breaking] Added `onlyIfUnchanged` parameter for CreateOrUpdate and Delete operations.
|
|
193
|
+
- [Breaking] Removed `$select` property for the List operations.
|
|
194
|
+
- [Breaking] Refactored `SearchServiceClient` and split it to `SearchIndexClient` and `SearchIndexerClient` and changed `SearchIndexClient` class to `SearchClient` class.
|
|
195
|
+
- [Breaking] Moved non-optional parameters from options bag.
|
|
196
|
+
- [Breaking] Renamed `countDocuments` method to `getDocumentsCount` method.
|
|
197
|
+
- [Breaking] In `search` method, moved the `searchText` parameter from the options bag to method parameter.
|
|
198
|
+
- [Breaking] In `indexDocuments` method, the options parameter is renamed to `IndexDocumentsOptions`.
|
|
199
|
+
- [Breaking] Modified `deleteDocuments` method to get documents as a parameter.
|
|
200
|
+
- [Breaking] In `getIndexStatistics` method, renamed the return type from `GetIndexStatisticsResult` to `SearchIndexStatistics`.
|
|
201
|
+
- [Breaking] In `getServiceStatistics` method, renamed the return type from `ServiceStatistics` to `SearchServiceStatistics`.
|
|
202
|
+
- [Breaking] Modified `DataSource` model name to `DataSourceConnection`. Changed all references in the method names, parameters, etc.
|
|
203
|
+
- [Breaking] Renamed `SimpleDataType` model to `SearchFieldDataType` model.
|
|
204
|
+
- [Breaking] Modified the names of several models & parameters. Please refer [#8984](https://github.com/Azure/azure-sdk-for-js/issues/8984), [#9037](https://github.com/Azure/azure-sdk-for-js/issues/9037) and [#8383](https://github.com/Azure/azure-sdk-for-js/issues/8383) for a detailed list of renames.
|
|
205
|
+
- Added separate methods for getting just names such as `listIndexesNames`, `listSynonymMapsNames`, etc.
|
|
206
|
+
- Added `getSearchClient` method to the `SearchIndexClient` class.
|
|
207
|
+
|
|
208
|
+
## 1.0.0-preview.3 (2020-05-05)
|
|
209
|
+
|
|
210
|
+
- Added support for Indexers API (Create, Get, List, etc.)
|
|
211
|
+
- Added support for Datasources API.(Create, Get, List, etc.)
|
|
212
|
+
- Fixed a bug where GeographyPoints were serialized incorrectly causing latitude and longitude to be flipped.
|
|
213
|
+
|
|
214
|
+
## 1.0.0-preview.2 (2020-04-06)
|
|
215
|
+
|
|
216
|
+
- [Breaking] Package renamed to `@azure/search-documents` and version number reset to `1.0.0-preview.2`.
|
|
217
|
+
- Support for index management operations using the `SearchServiceClient`.
|
|
218
|
+
- [Breaking] `indexDocuments` on `SearchIndexClient` now takes an `IndexDocumentsBatch` object instead of a raw action array. This new type helps compose an array of actions to be performed on the index.
|
|
219
|
+
- [Breaking] In `SearchIndexClient`, removed options `mergeIfExists` and `uploadIfNotExists` on `uploadDocuments` and `mergeDocuments` and replaced them with new helper `mergeOrUploadDocuments`.
|
|
220
|
+
- The type `IndexAction` was renamed to `IndexDocumentsAction`.
|
|
221
|
+
- [Breaking] Removed `SearchApiKeyCredential` and replaced with `AzureKeyCredential`.
|
|
222
|
+
- [Breaking] Search results accessed `byPage` now have an opaque `continuationToken` in place of `nextLink` and `nextPageParameters`.
|
|
223
|
+
|
|
224
|
+
## 11.0.0-preview.1 (2020-03-09)
|
|
225
|
+
|
|
226
|
+
- Initial implementation of the data-plane Cognitive Search Client. The version number starts at 11 to align with client libraries in other languages.
|
|
227
|
+
- This first preview has support for document operations on an index, such as querying and document management.
|
package/README.md
CHANGED
|
@@ -19,14 +19,12 @@ Use the @azure/search-documents client library to:
|
|
|
19
19
|
- Create and manage analyzers for advanced text analysis or multi-lingual content.
|
|
20
20
|
- Optimize results through scoring profiles to factor in business logic or freshness.
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- [Product documentation](https://docs.microsoft.com/azure/search/)
|
|
29
|
-
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/search-documents/samples)
|
|
22
|
+
[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/search/search-documents/) |
|
|
23
|
+
[Package (NPM)](https://www.npmjs.com/package/@azure/search-documents) |
|
|
24
|
+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/search-documents) |
|
|
25
|
+
[REST API documentation](https://docs.microsoft.com/rest/api/searchservice/) |
|
|
26
|
+
[Product documentation](https://docs.microsoft.com/azure/search/) |
|
|
27
|
+
[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/search/search-documents/samples)
|
|
30
28
|
|
|
31
29
|
## Getting started
|
|
32
30
|
|
|
@@ -173,7 +171,7 @@ Typically you will only wish to [show a subset of search results](https://docs.m
|
|
|
173
171
|
|
|
174
172
|
## Examples
|
|
175
173
|
|
|
176
|
-
The following examples demonstrate the basics - please [check out our samples](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
174
|
+
The following examples demonstrate the basics - please [check out our samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/search/search-documents/samples) for much more.
|
|
177
175
|
|
|
178
176
|
- [Creating an index](#create-an-index)
|
|
179
177
|
- [Retrieving a specific document from your index](#retrieve-a-specific-document-from-an-index)
|
|
@@ -243,7 +241,11 @@ A specific document can be retrieved by its primary key value:
|
|
|
243
241
|
```js
|
|
244
242
|
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
|
|
245
243
|
|
|
246
|
-
const client = new SearchClient(
|
|
244
|
+
const client = new SearchClient(
|
|
245
|
+
"<endpoint>",
|
|
246
|
+
"<indexName>",
|
|
247
|
+
new AzureKeyCredential("<apiKey>")
|
|
248
|
+
);
|
|
247
249
|
|
|
248
250
|
async function main() {
|
|
249
251
|
const result = await client.getDocument("1234");
|
|
@@ -260,7 +262,11 @@ You can upload multiple documents into index inside a batch:
|
|
|
260
262
|
```js
|
|
261
263
|
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
|
|
262
264
|
|
|
263
|
-
const client = new SearchClient(
|
|
265
|
+
const client = new SearchClient(
|
|
266
|
+
"<endpoint>",
|
|
267
|
+
"<indexName>",
|
|
268
|
+
new AzureKeyCredential("<apiKey>")
|
|
269
|
+
);
|
|
264
270
|
|
|
265
271
|
async function main() {
|
|
266
272
|
const uploadResult = await client.uploadDocuments([
|
|
@@ -284,7 +290,11 @@ To list all results of a particular query, you can use `search` with a search st
|
|
|
284
290
|
```js
|
|
285
291
|
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
|
|
286
292
|
|
|
287
|
-
const client = new SearchClient(
|
|
293
|
+
const client = new SearchClient(
|
|
294
|
+
"<endpoint>",
|
|
295
|
+
"<indexName>",
|
|
296
|
+
new AzureKeyCredential("<apiKey>")
|
|
297
|
+
);
|
|
288
298
|
|
|
289
299
|
async function main() {
|
|
290
300
|
const searchResults = await client.search("wifi -luxury");
|
|
@@ -301,7 +311,11 @@ For a more advanced search that uses [Lucene syntax](https://docs.microsoft.com/
|
|
|
301
311
|
```js
|
|
302
312
|
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
|
|
303
313
|
|
|
304
|
-
const client = new SearchClient(
|
|
314
|
+
const client = new SearchClient(
|
|
315
|
+
"<endpoint>",
|
|
316
|
+
"<indexName>",
|
|
317
|
+
new AzureKeyCredential("<apiKey>")
|
|
318
|
+
);
|
|
305
319
|
|
|
306
320
|
async function main() {
|
|
307
321
|
const searchResults = await client.search('Category:budget AND "recently renovated"^3', {
|
|
@@ -363,7 +377,11 @@ Using the `filter` query parameter allows you to query an index using the syntax
|
|
|
363
377
|
```js
|
|
364
378
|
const { SearchClient, AzureKeyCredential, odata } = require("@azure/search-documents");
|
|
365
379
|
|
|
366
|
-
const client = new SearchClient(
|
|
380
|
+
const client = new SearchClient(
|
|
381
|
+
"<endpoint>",
|
|
382
|
+
"<indexName>",
|
|
383
|
+
new AzureKeyCredential("<apiKey>")
|
|
384
|
+
);
|
|
367
385
|
|
|
368
386
|
async function main() {
|
|
369
387
|
const baseRateMax = 200;
|
|
@@ -390,7 +408,11 @@ main();
|
|
|
390
408
|
```js
|
|
391
409
|
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
|
|
392
410
|
|
|
393
|
-
const client = new SearchClient(
|
|
411
|
+
const client = new SearchClient(
|
|
412
|
+
"<endpoint>",
|
|
413
|
+
"<indexName>",
|
|
414
|
+
new AzureKeyCredential("<apiKey>")
|
|
415
|
+
);
|
|
394
416
|
|
|
395
417
|
async function main() {
|
|
396
418
|
const searchResults = await client.search("WiFi", {
|
|
@@ -429,17 +451,17 @@ import { setLogLevel } from "@azure/logger";
|
|
|
429
451
|
setLogLevel("info");
|
|
430
452
|
```
|
|
431
453
|
|
|
432
|
-
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
454
|
+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).
|
|
433
455
|
|
|
434
456
|
## Next steps
|
|
435
457
|
|
|
436
|
-
- [Go further with search-documents and our samples](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
458
|
+
- [Go further with search-documents and our samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/search/search-documents/samples)
|
|
437
459
|
- [Watch a demo or deep dive video](https://azure.microsoft.com/resources/videos/index/?services=search)
|
|
438
460
|
- [Read more about the Azure Cognitive Search service](https://docs.microsoft.com/azure/search/search-what-is-azure-search)
|
|
439
461
|
|
|
440
462
|
## Contributing
|
|
441
463
|
|
|
442
|
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
464
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
443
465
|
|
|
444
466
|
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit [cla.microsoft.com][cla].
|
|
445
467
|
|