Skip to content

Commit 2ba6a22

Browse files
committed
API version updates
1 parent 6fd6898 commit 2ba6a22

File tree

6 files changed

+42
-30
lines changed

6 files changed

+42
-30
lines changed

articles/search/search-api-migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Upgrade instructions focus on code changes that get you through breaking changes
2626

2727
We recommend upgrading API versions in succession, working through each version until you get to the newest one.
2828

29-
`2023-07-01-preview` was the first REST API for vector support. *Do not use this API version*. It's now deprecated and you should migrate to either stable or newer preview REST APIs immediately.
29+
`2023-07-01-preview` was the first REST API for vector support. **Do not use this API version**. It's now deprecated and you should migrate to either stable or newer preview REST APIs immediately.
3030

3131
> [!NOTE]
3232
> REST API reference docs are now versioned. For version-specific content, open a reference page and then use the selector located to the right, above the table of contents, to pick your version.
@@ -35,7 +35,7 @@ We recommend upgrading API versions in succession, working through each version
3535

3636
Azure AI Search breaks backward compatibility as a last resort. Upgrade is necessary when:
3737

38-
+ Your code references a retired or deprecated 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-ranking) for semantic ranking, and [`2019-05-06`](#upgrade-to-2019-05-06) for obsolete skills and workarounds.
38+
+ 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-ranking) for semantic ranking, and [`2019-05-06`](#upgrade-to-2019-05-06) for obsolete skills and workarounds.
3939

4040
+ 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.
4141

articles/search/search-api-preview.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ ms.service: cognitive-search
1010
ms.custom:
1111
- build-2024
1212
ms.topic: conceptual
13-
ms.date: 06/11/2024
13+
ms.date: 06/25/2024
1414
---
1515

1616
# Preview features in Azure AI Search
1717

18-
This article identifies all features in public preview. This list is helpful for checking feature status.
18+
This article identifies all data plane and control plane features in public preview. This list is helpful for checking feature status. It also provides usage guidance and reminders to always upgrade to newer preview API versions as they roll out.
1919

2020
Preview features are removed from this list if they're retired or transition to general availability. For announcements regarding general availability and retirement, see [Service Updates](https://azure.microsoft.com/updates/?product=search) or [What's New](whats-new.md).
2121

@@ -52,7 +52,7 @@ Preview features are removed from this list if they're retired or transition to
5252

5353
|Feature                         | Category | Description | Availability |
5454
|---------|------------------|-------------|---------------|
55-
| [**User-assigned managed identity**](search-howto-managed-identities-data-sources.md) | Service | Configures a search service to use a previously created user-assigned managed identity. | [Services - Update](/rest/api/searchmanagement/services/update?view=rest-searchmanagement-2024-03-01-preview&preserve-view=true#identity), 2021-04-01-preview or a later. |
55+
| [**Search service under a user-assigned managed identity**](search-howto-managed-identities-data-sources.md) | Service | Configures a search service to use a previously created user-assigned managed identity. | [Services - Update](/rest/api/searchmanagement/services/update?view=rest-searchmanagement-2024-03-01-preview&preserve-view=true#identity), 2021-04-01-preview or a later. |
5656

5757
## Preview features in Azure SDKs
5858

@@ -73,29 +73,30 @@ The following statements apply to preview features:
7373
+ Preview features might undergo breaking changes if a redesign is required.
7474
+ Sometimes preview features don't make it into a GA release.
7575

76+
If you write code against a preview API, you should prepare to upgrade that code to newer API versions when they roll out. We maintain an [Upgrade REST APIs](search-api-migration.md) document to make that step easier.
77+
7678
## How to call a preview REST API
7779

7880
Preview REST APIs are accessed through the api-version parameter on the URI. Older previews are still operational but become stale over time and aren't updated with new features or bug fixes.
7981

80-
For content operations, [**`2023-10-01-Preview`**](/rest/api/searchservice/search-service-api-versions#2023-10-01-Preview) is the most recent preview version. The following example shows the syntax for [Search POST (preview)](/rest/api/searchservice/documents/search-post?view=rest-searchservice-2023-10-01-preview&preserve-view=true):
82+
For data plane operation on content, [**`2024-05-01-preview`**](/rest/api/searchservice/search-service-api-versions#2024-05-01-Preview) is the most recent preview version. The following example shows the syntax for [Indexes GET (preview)](/rest/api/searchservice/indexes/get?view=rest-searchservice-2024-05-01-preview&preserve-view=true):
8183

8284
```rest
83-
GET {endpoint}/indexes('{indexName}')?api-version=2023-10-01-Preview
85+
GET {endpoint}/indexes('{indexName}')?api-version=2024-05-01-Preview
8486
```
8587

86-
For management operations, [**`2021-04-01-Preview`**](/rest/api/searchmanagement/management-api-versions#2021-04-01-Preview) is the most recent preview version. The following example shows the syntax for Update Service 2021-04-01-preview version.
88+
For management operations on the search service, [**`2024-06-01-preview`**](/rest/api/searchmanagement/services/update?view=rest-searchmanagement-2024-06-01-preview&preserve-view=true) is the most recent preview version. The following example shows the syntax for Update Service 2024-06-01-preview version.
8789

8890
```rest
89-
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}?api-version=2021-04-01-preview
91+
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice?api-version=2024-06-01-preview
92+
9093
{
91-
"location": "{{region}}",
92-
"sku": {
93-
"name": "basic"
94+
"tags": {
95+
"app-name": "My e-commerce app",
96+
"new-tag": "Adding a new tag"
9497
},
9598
"properties": {
96-
"replicaCount": 3,
97-
"partitionCount": 1,
98-
"hostingMode": "default"
99+
"replicaCount": 2
99100
}
100101
}
101102
```

articles/search/search-api-versions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.custom:
1414
- devx-track-python
1515
- ignite-2023
1616
ms.topic: conceptual
17-
ms.date: 04/17/2024
17+
ms.date: 06/24/2024
1818
---
1919

2020
# API versions in Azure AI Search
@@ -27,13 +27,15 @@ See [Azure SDK lifecycle and support policy](https://azure.github.io/azure-sdk/p
2727

2828
## Deprecated versions
2929

30-
**2023-07-01-preview** was deprecated on April 8, 2024 and will be retired on July 8, 2024. This was the first REST API that offered vector search support. Newer API versions have a different vector configuration. We recommend [migrating to a newer version](search-api-migration.md) as soon as possible.
30+
**2023-07-01-preview** was deprecated on April 8, 2024 and won't be supported after July 8, 2024.
31+
32+
This was the first REST API that offered vector search support. Newer API versions have a different vector configuration. You should [migrate to a newer version](search-api-migration.md) as soon as possible.
3133

3234
<a name="unsupported-versions"></a>
3335

34-
## Unsupported versions
36+
## Discontinued versions
3537

36-
Some API versions are discontinued and will be rejected by a search service:
38+
Some API versions are discontinued and are rejected by a search service:
3739

3840
+ **2015-02-28**
3941
+ **2015-02-28-Preview**
@@ -85,4 +87,4 @@ The following table provides links to more recent SDK versions.
8587

8688
## All Azure SDKs
8789

88-
If you are looking for beta client libraries and documentation, [this page](https://azure.github.io/azure-sdk/releases/latest/index.html) contains links to all of the Azure SDK library packages, code, and docs.
90+
If you're looking for beta client libraries and documentation, [this page](https://azure.github.io/azure-sdk/releases/latest/index.html) contains links to all of the Azure SDK library packages, code, and docs.

articles/search/search-monitor-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ When you enable resource logging, the system captures query requests in the **Az
8686
AzureDiagnostics
8787
| project OperationName, Query_s, IndexName_s, Documents_d
8888
| where OperationName == "Query.Search"
89-
| where Query_s != "?api-version=2023-07-01-preview&search=*"
89+
| where Query_s != "?api-version=2023-11-01&search=*"
9090
| where IndexName_s != "realestate-us-sample-index"
9191
```
9292

articles/search/vector-search-filters.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To understand the conditions under which one filter mode performs better than th
4242

4343
For the small and medium workloads, we used a Standard 2 (S2) service with one partition and one replica. For the large workload, we used a Standard 3 (S3) service with 12 partitions and one replica.
4444

45-
Indexes had an identical construction: one key field, one vector field, one text field, and one numeric filterable field. The following index is defined using the 2023-07-01-preview syntax.
45+
Indexes had an identical construction: one key field, one vector field, one text field, and one numeric filterable field. The following index is defined using the 2023-11-03 syntax.
4646

4747
```python
4848
def get_index_schema(self, index_name, dimensions):
@@ -52,18 +52,27 @@ def get_index_schema(self, index_name, dimensions):
5252
{"name": "id", "type": "Edm.String", "key": True, "searchable": True},
5353
{"name": "content_vector", "type": "Collection(Edm.Single)", "dimensions": dimensions,
5454
"searchable": True, "retrievable": True, "filterable": False, "facetable": False, "sortable": False,
55-
"vectorSearchConfiguration": "defaulthnsw"},
55+
"vectorSearchProfile": "defaulthnsw"},
5656
{"name": "text", "type": "Edm.String", "searchable": True, "filterable": False, "retrievable": True,
5757
"sortable": False, "facetable": False},
5858
{"name": "score", "type": "Edm.Double", "searchable": False, "filterable": True,
5959
"retrievable": True, "sortable": True, "facetable": True}
6060
],
61-
"vectorSearch":
62-
{
63-
"algorithmConfigurations": [
64-
{"name": "defaulthnsw", "kind": "hnsw", "hnswParameters": {"metric": "euclidean"}}
65-
]
66-
}
61+
"vectorSearch": {
62+
"algorithms": [
63+
{
64+
"name": "defaulthnsw",
65+
"kind": "hnsw",
66+
"hnswParameters": { "metric": "euclidean" }
67+
}
68+
],
69+
"profiles": [
70+
{
71+
"name": "defaulthnsw",
72+
"algorithm": "defaulthnsw"
73+
}
74+
]
75+
}
6776
}
6877
```
6978

articles/search/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ms.custom:
5353
| [**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. |
5454
| [**2024-03-01-preview Search REST API**](/rest/api/searchservice/search-service-api-versions#2024-03-01-preview) | API | New preview version of the Search REST APIs for the new data types, vector compression properties, and vector storage options. |
5555
| [**2024-03-01-preview Management REST API**](/rest/api/searchmanagement/operation-groups?view=rest-searchmanagement-2024-03-01-preview&preserve-view=true) | API | New preview version of the Management REST APIs for control plane operations. |
56-
| [**2023-07-01-preview deprecation announcement**](/rest/api/searchservice/search-service-api-versions#2023-07-01-preview) | API | Deprecation announced on April 8, 2024. Retirement on July 8, 2024. This was the first REST API that offered vector search support. Newer API versions have a different vector configuration. We recommend [migrating to a newer version](search-api-migration.md) as soon as possible. |
56+
| [**2023-07-01-preview deprecation announcement**](/rest/api/searchservice/search-service-api-versions#2023-07-01-preview) | API | Deprecation announced on April 8, 2024. It becomes unsupported on July 8, 2024. This was the first REST API that offered vector search support. Newer API versions have a different vector configuration. You should [migrate to a newer version](search-api-migration.md) as soon as possible. |
5757

5858
## February 2024
5959

0 commit comments

Comments
 (0)