You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-api-migration.md
+32-27Lines changed: 32 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,19 @@ ms.custom:
12
12
- build-2024
13
13
- ignite-2024
14
14
ms.topic: conceptual
15
-
ms.date: 11/19/2024
15
+
ms.date: 02/14/2025
16
16
---
17
17
18
18
# Upgrade to the latest REST API in Azure AI Search
19
19
20
-
Use this article to migrate data plane calls to newer versions of the [**Search REST APIs**](/rest/api/searchservice/) and management plane calls to newer version of the [**Search Management REST APIs**](/rest/api/searchmanagement/)
20
+
Use this article to migrate to newer versions of the [**Search Service REST APIs**](/rest/api/searchservice/) and the [**Search Management REST APIs**](/rest/api/searchmanagement/) for [data plane and control plane](/azure/azure-resource-manager/management/control-plane-and-data-plane) operations.
21
21
22
-
+[`2024-07-01`](/rest/api/searchservice/search-service-api-versions#2024-07-01) is the most recent stable data plane API version.
23
-
24
-
+[`2024-11-01-preview`](/rest/api/searchservice/search-service-api-versions#2024-11-01-preview) is the most recent preview data plane API version.
25
-
26
-
+[`2023-11-01`](/rest/api/searchmanagement/operation-groups?view=rest-searchmanagement-2023-11-01) is the most recent stable management plane API version.
27
-
28
-
+[`2024-03-01-preview`](/rest/api/searchmanagement/operation-groups?view=rest-searchmanagement-2024-03-01-preview) is the most recent preview management plane API version.
22
+
| Targeted operations | REST API | Status |
23
+
|---------------------|----------|--------|
24
+
| Data plane |[`2024-07-01`](/rest/api/searchservice/search-service-api-versions#2024-07-01)| Stable |
25
+
| Data plane |[`2024-11-01-preview`](/rest/api/searchservice/search-service-api-versions#2024-11-01-preview)| Preview |
26
+
| Control plane |[`2023-11-01`](/rest/api/searchmanagement/operation-groups?view=rest-searchmanagement-2023-11-0&preserve-view=true1)| Stable |
27
+
| Control plane |[`2024-03-01-preview`](/rest/api/searchmanagement/operation-groups?view=rest-searchmanagement-2024-03-01-preview&preserve-view=true)| Preview |
29
28
30
29
Upgrade instructions focus on code changes that get you through breaking changes from previous versions so that existing code runs the same as before, but on the newer API version. Once your code is in working order, you can decide whether to adopt newer features. To learn more about new features, see [vector code samples](https://github.com/Azure/azure-search-vector-samples) and [What's New](whats-new.md).
31
30
@@ -40,25 +39,29 @@ We recommend upgrading API versions in succession, working through each version
40
39
41
40
Azure AI Search breaks backward compatibility as a last resort. Upgrade is necessary when:
42
41
43
-
+ Your code references a retired or unsupported API version and is subject to one or more breaking changes. You must address breaking changes if your code targets [`2023-07-10-preview`](#code-upgrade-for-vector-indexes-and-queries) for vectors, [`2020-06-01-preview`](#breaking-change-for-semantic-ranker) for semantic ranker, and [`2019-05-06`](#upgrade-to-2019-05-06) for obsolete skills and workarounds.
42
+
+ Your code references a retired or unsupported API version and is subject to one or more breaking changes. You must address breaking changes if your code targets [`2023-07-10-preview`](#code-upgrade-for-vector-indexes-and-queries) for vectors, [`2020-06-01-preview`](#breaking-changes-for-semantic-ranker) for semantic ranker, and [`2019-05-06`](#upgrade-to-2019-05-06) for obsolete skills and workarounds.
44
43
45
44
+ Your code fails when unrecognized properties are returned in an API response. As a best practice, your application should ignore properties that it doesn't understand.
46
45
47
46
+ Your code persists API requests and tries to resend them to the new API version. For example, this might happen if your application persists continuation tokens returned from the Search API (for more information, look for `@search.nextPageParameters` in the [Search API Reference](/rest/api/searchservice/documents/search-post)).
48
47
49
48
## How to upgrade
50
49
51
-
1. If you are upgrading a data plane version, review the [release notes](/rest/api/searchservice/search-service-api-versions) for the new API version.
50
+
1. If you're upgrading a data plane version, review the [release notes](/rest/api/searchservice/search-service-api-versions) for the new API version.
52
51
53
52
1. Update the `api-version` parameter, specified in the request header, to a newer version.
54
53
55
54
In your application code that makes direct calls to the REST APIs, search for all instances of the existing version and then replace it with the new version. For more information about structuring a REST call, see [Quickstart: using REST](search-get-started-rest.md#set-up-visual-studio-code).
56
55
57
56
If you're using an Azure SDK, those packages target specific versions of the REST API. Package updates might coincide with a REST API update, but each SDK is on its own release schedule that ships independently of Azure AI Search REST API versions. Check the change log of your SDK package to determine whether a package release targets the latest REST API version.
58
57
59
-
1. If you are upgrading a data plane version, review the breaking changes documented in this article and implement the workarounds. Start with the version used by your code and resolve any breaking change for each newer API version until you get to the newest stable or preview release.
58
+
1. If you're upgrading a data plane version, review the breaking changes documented in this article and implement the workarounds. Start with the version used by your code and resolve any breaking change for each newer API version until you get to the newest stable or preview release.
59
+
60
+
## Breaking changes
60
61
61
-
## Breaking change for data plane client code that reads connection information
62
+
The following breaking changes apply to data operations.
63
+
64
+
### Breaking changes for client code that reads connection information
62
65
63
66
Effective March 29, 2024 and applicable to all [supported REST APIs](/rest/api/searchservice/search-service-api-versions):
64
67
@@ -68,9 +71,9 @@ Effective March 29, 2024 and applicable to all [supported REST APIs](/rest/api/s
68
71
69
72
+ If you need to retrieve connection strings of another Azure resource such as Azure Storage or Azure Cosmos DB, use the APIs of that resource and published guidance to obtain the information.
70
73
71
-
## Breaking change for semantic ranker
74
+
###Breaking changes for semantic ranker
72
75
73
-
[Semantic ranker](semantic-search-overview.md) is generally available in `2023-11-01`. Here are the breaking changes for semantic ranker from earlier releases:
76
+
[Semantic ranker](semantic-search-overview.md) is generally available in `2023-11-01`. There are the breaking changes from earlier releases:
74
77
75
78
+ In all versions after `2020-06-01-preview`: `semanticConfiguration` replaces `searchFields` as the mechanism for specifying which fields to use for L2 ranking.
76
79
@@ -125,11 +128,11 @@ If you're upgrading from `2023-10-01-preview`, there are no breaking changes. Ho
125
128
126
129
1. Search your codebase for `vectorFilterMode` references.
127
130
128
-
1. If the property is explicitly set, no action is required. If you used the default, be aware that the new default behavior is to filter before query execution. If you want post-query filtering, explicitly set `vectorFilterMode` to postfilter to retain the old behavior.
131
+
1. If the property is explicitly set, no action is required. If you relied on the default value, the new default behavior is to filter *before* query execution. If you want post-query filtering, explicitly set `vectorFilterMode` to postfilter to retain the old behavior.
129
132
130
133
### Upgrade to 2023-11-01
131
134
132
-
[`2023-11-01`](/rest/api/searchservice/search-service-api-versions#2023-11-01) is a general release. The former preview features are now generally available: semantic ranker, vector index and query support.
135
+
[`2023-11-01`](/rest/api/searchservice/search-service-api-versions#2023-11-01) is a general release. The former preview features are now generally available: semantic rankerand vector support.
133
136
134
137
There are no breaking changes from `2023-10-01-preview`, but there are multiple breaking changes from `2023-07-01-preview` to `2023-11-01`. For more information, see [Upgrade from 2023-07-01-preview](#upgrade-from-2023-07-01-preview).
135
138
@@ -420,22 +423,24 @@ You can update flat indexes to the new format with the following steps using API
420
423
1. Perform a PUT request to update the index to the new format. Avoid changing any other details of the index, such as the searchability/filterability of fields, because changes that affect the physical expression of existing index isn't allowed by the Update Index API.
421
424
422
425
> [!NOTE]
423
-
> It is not possible to manage indexes created with the old "flat" format from the Azure portal. Please upgrade your indexes from the “flat” representation to the “tree” representation at your earliest convenience.
426
+
> It isn't possible to manage indexes created with the old "flat" format from the Azure portal. Upgrade your indexes from the “flat” representation to the “tree” representation at your earliest convenience.
424
427
425
-
## Management plane upgrades
428
+
## Control plane upgrades
426
429
427
-
### Upgrading from 2014-07-31-Preview, 2015-02-28, and 2015-08-19
430
+
**Applies to:**`2014-07-31-Preview`, `2015-02-28`, and `2015-08-19`
428
431
429
-
The `listQueryKeys`operation is deprecated on these API versions. It's recommended to update to the latest stable management plane API versopm to use the `listQueryKeys`operation.
432
+
The `listQueryKeys`GET request on older Search Management API versions is now deprecated. We recommend migrating to the most recent stable control plane API version to use the `listQueryKeys`POST request.
430
433
431
-
1.If you are using a REST request, in addition to changing the `api-version` parameter, it's necessary to switch from `GET` to `POST`
434
+
1.In existing code, change the `api-version` parameterto the most recent version (`2023-11-01`).
432
435
433
-
```
434
-
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys?api-version=2023-11-01
435
-
Authorization: Bearer {{token}}
436
-
```
436
+
1. Refactor the request from `GET` to `POST`:
437
+
438
+
```http
439
+
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys?api-version=2023-11-01
440
+
Authorization: Bearer {{token}}
441
+
```
437
442
438
-
2. If you are using the Azure SDK, it's recommended to update to the latest version.
443
+
1. If you're using an Azure SDK, it's recommended that you upgrade to the latest version.
Copy file name to clipboardExpand all lines: articles/search/search-monitor-enable-logging.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.date: 01/28/2025
13
13
14
14
# Configure diagnostic logging for Azure AI Search
15
15
16
-
Resource-level diagnostic logs provide insight into operations that occur in your Azure AI Search resource. In contrast, activity logs provide an insight into the operations performed on each Azure resource in the subscription from the outside, known as the control plane or managementplane. Activity logging is enabled automatically, and often
16
+
Resource-level diagnostic logs provide insight into operations that occur in your Azure AI Search resource. In contrast, activity logs provide an insight into the operations performed on each Azure resource in the subscription from the outside, known as the [control plane](/azure/azure-resource-manager/management/control-plane-and-data-plane). Activity logging is enabled automatically, and often
17
17
18
18
This article explains how to enable resource-level diagnostic logging and how to find information about system and user operations on an Azure AI Search resource.
Copy file name to clipboardExpand all lines: articles/search/search-security-api-keys.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Visually, there's no distinction between an admin key or query key. Both keys ar
43
43
44
44
API keys are used for data plane (content) requests, such as creating or accessing an index or, any other request that's represented in the [Search REST APIs](/rest/api/searchservice/).
45
45
46
-
You can use either an API key or [Azure roles](search-security-rbac.md) for management plane (service) requests. When you use an API key:
46
+
You can use either an API key or [Azure roles](search-security-rbac.md) for control plane (service) requests. When you use an API key:
47
47
- Admin keys are used for creating, modifying, or deleting objects. Admin keys are also used to GET object definitions and system information.
48
48
- Query keys are typically distributed to client applications that issue queries.
|[Security update addressing information disclosure](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-29063)| API | GET responses [no longer return connection strings or keys](search-api-migration.md#breaking-change-for-data-plane-client-code-that-reads-connection-information). Applies to GET Skillset, GET Index, and GET Indexer. This change helps protect your Azure assets integrated with AI Search from unauthorized access. |
107
+
|[Security update addressing information disclosure](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-29063)| API | GET responses [no longer return connection strings or keys](search-api-migration.md#breaking-changes-for-client-code-that-reads-connection-information). Applies to GET Skillset, GET Index, and GET Indexer. This change helps protect your Azure assets integrated with AI Search from unauthorized access. |
108
108
|[More storage on Basic and Standard tiers](search-limits-quotas-capacity.md#service-limits)| Infrastructure | Basic now supports up to three partitions and three replicas. Basic and Standard (S1, S2, S3) tiers have significantly more storage per partition, at the same per-partition billing rate. Extra capacity is subject to [regional availability](search-limits-quotas-capacity.md#service-limits) and applies to new search services created after April 3, 2024. Currently, there's no in-place upgrade, so you must create a new search service to get the extra storage. |
109
109
|[More quota for vectors](search-limits-quotas-capacity.md#vector-index-size-limits)| Infrastructure | Vector quotas are also higher on new services created after April 3, 2024 in selected regions. |
110
110
|[Vector quantization, narrow vector data types, and a new `stored` property (preview)](vector-search-how-to-configure-compression-storage.md)| Feature | Collectively, these three features add vector compression and smarter storage options. First, *scalar quantization* reduces vector index size in memory and on disk. Second, [narrow data types](/rest/api/searchservice/supported-data-types) reduce per-field storage by storing smaller values. Third, you can use `stored` to opt-out of storing the extra copy of a vector that's used only for search results. If you don't need vectors in a query response, you can set `stored` to false to save on space. |
0 commit comments