Skip to content

Commit bcb5ea5

Browse files
authored
[Search] Allow nested field names to be specified in select and searchField options (Azure#23627)
1 parent d67dc8d commit bcb5ea5

File tree

14 files changed

+904
-204
lines changed

14 files changed

+904
-204
lines changed

sdk/search/search-documents/CHANGELOG.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 11.3.0-beta.9 (Unreleased)
3+
## 12.0.0-beta.1 (2023-03-07)
44

55
### Features Added
66

@@ -9,13 +9,41 @@
99
### Breaking Changes
1010

1111
- Update `SearchIndexerDataNoneIdentity.odatatype`. [#23495](https://github.com/Azure/azure-sdk-for-js/pull/23495)
12+
- Fix `SearchClient.getDocument` returning documents that contain fields which were not selected [#23627](https://github.com/Azure/azure-sdk-for-js/pull/23627)
13+
- Add type narrowing to returned documents [#23627](https://github.com/Azure/azure-sdk-for-js/pull/23627)
14+
- Add breaking type parameters to these types:
15+
- `AutocompleteOptions`
16+
- `AutocompleteRequest`
17+
- `GetDocumentOptions`
18+
- `SearchIterator`
19+
- `SearchOptions`
20+
- `SearchRequestOptions`
21+
- `SuggestOptions`
22+
- `SuggestRequest`
1223

1324
### Bugs Fixed
1425

26+
- Allow nested field names to be specified in `select` and `searchFields` options [#23627](https://github.com/Azure/azure-sdk-for-js/pull/23627)
27+
- Affects these types:
28+
- `AutocompleteRequest`
29+
- `SearchRequestOptions`
30+
- `SuggestRequest`
1531
- Fix discarded user-defined `onResponse` callback [#24479](https://github.com/Azure/azure-sdk-for-js/pull/24479)
1632

1733
### Other Changes
1834

35+
- Add `object` type constraint to `IndexDocumentsClient` and its dependencies [#23627](https://github.com/Azure/azure-sdk-for-js/pull/23627)
36+
- Affects these types:
37+
- `IndexDocumentsClient`
38+
- `SearchClient`
39+
- `SearchDocumentsPageResult`
40+
- `SearchDocumentsResult`
41+
- `SearchIndexClient.getSearchClient`
42+
- `SearchIndexingBufferedSender`
43+
- `SearchResult`
44+
- `SuggestDocumentsResult`
45+
- `SuggestResult`
46+
1947
## 11.3.0-beta.8 (2022-09-06)
2048

2149
- Added `core-http-compat` dependency

sdk/search/search-documents/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/search/search-documents",
5-
"Tag": "js/search/search-documents_ac717f12fa"
5+
"Tag": "js/search/search-documents_edce456e12"
66
}

sdk/search/search-documents/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/search-documents",
3-
"version": "11.3.0-beta.9",
3+
"version": "12.0.0-beta.1",
44
"description": "Azure client library to use Cognitive Search for node.js and browser.",
55
"sdk-type": "client",
66
"main": "dist/index.js",

sdk/search/search-documents/review/search-documents.api.md

Lines changed: 84 additions & 48 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
export const SDK_VERSION: string = "11.3.0-beta.9";
4+
export const SDK_VERSION: string = "12.0.0-beta.1";

sdk/search/search-documents/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export {
1212
AutocompleteOptions,
1313
CountDocumentsOptions,
1414
DeleteDocumentsOptions,
15+
ExcludedODataTypes,
16+
ExtractDocumentKey,
1517
GetDocumentOptions,
1618
IndexDocumentsAction,
1719
ListSearchResultsPageSettings,
@@ -30,13 +32,18 @@ export {
3032
SuggestOptions,
3133
MergeDocumentsOptions,
3234
MergeOrUploadDocumentsOptions,
35+
NarrowedModel,
3336
UploadDocumentsOptions,
3437
SearchIndexingBufferedSenderOptions,
3538
SearchIndexingBufferedSenderDeleteDocumentsOptions,
3639
SearchIndexingBufferedSenderFlushDocumentsOptions,
3740
SearchIndexingBufferedSenderMergeDocumentsOptions,
3841
SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions,
3942
SearchIndexingBufferedSenderUploadDocumentsOptions,
43+
SearchPick,
44+
SelectFields,
45+
SuggestNarrowedModel,
46+
UnionToIntersection,
4047
} from "./indexModels";
4148
export { SearchIndexingBufferedSender, IndexDocumentsClient } from "./searchIndexingBufferedSender";
4249
export { SearchIndexClient, SearchIndexClientOptions } from "./searchIndexClient";

0 commit comments

Comments
 (0)