Skip to content

Commit af2041b

Browse files
authored
Merge pull request #5055 from HeidiSteen/heidist-work
Updates for index description
2 parents aa72928 + 990ced2 commit af2041b

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed
61.9 KB
Loading

articles/search/search-how-to-create-search-index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: HeidiSteen
77
ms.author: heidist
88
ms.service: azure-ai-search
99
ms.topic: how-to
10-
ms.date: 05/08/2025
10+
ms.date: 05/19/2025
1111
---
1212

1313
# Create an index in Azure AI Search
@@ -52,6 +52,8 @@ Use this checklist to assist the design decisions for your search index.
5252

5353
1. Review [supported data types](/rest/api/searchservice/supported-data-types). The data type affects how the field is used. For example, numeric content is filterable but not full text searchable. The most common data type is `Edm.String` for searchable text, which is tokenized and queried using the full text search engine. The most common data type for a vector field is `Edm.Single` but you can use other types as well.
5454

55+
1. Provide a description of the index (preview), 4,000 character maximum. This human-readable text is invaluable when a system must access several indexes and make a decision based on the description. Consider a Model Context Protocol (MCP) server that must pick the correct index at run time. The decision can be based on the description rather than on index name alone. An index Description field is available in the [2025-05-01-preview REST API](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2025-05-01-preview&preserve-view=true), the Azure portal, or a prerelease package of an Azure SDK that provides the feature. For more information, see [Add an index description](search-howto-reindex.md#add-an-index-description-preview).
56+
5557
1. Identify a [document key](#document-keys). A document key is an index requirement. It's a single string field populated from a source data field that contains unique values. For example, if you're indexing from Blob Storage, the metadata storage path is often used as the document key because it uniquely identifies each blob in the container.
5658

5759
1. Identify the fields in your data source that contribute searchable content in the index.

articles/search/search-howto-reindex.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: azure-ai-search
1111
ms.custom:
1212
- ignite-2024
1313
ms.topic: how-to
14-
ms.date: 04/28/2025
14+
ms.date: 05/19/2025
1515
---
1616

1717
# Update or rebuild an index in Azure AI Search
@@ -199,6 +199,7 @@ The index schema defines the physical data structures created on the search serv
199199

200200
The following list enumerates the schema changes that can be introduced seamlessly into an existing index. Generally, the list includes new fields and functionality used during query execution.
201201

202+
+ Add an [index description (preview)]()
202203
+ Add a new field
203204
+ Set the `retrievable` attribute on an existing field
204205
+ Update `searchAnalyzer` on a field having an existing `indexAnalyzer`
@@ -253,6 +254,45 @@ When you create the index, physical storage is allocated for each field in the i
253254

254255
To minimize disruption to application code, consider [creating an index alias](search-how-to-alias.md). Application code references the alias, but you can update the name of the index that the alias points to.
255256

257+
## Add an index description (preview)
258+
259+
Beginning with REST API version 2025-05-01-preview, an `indexdescription` is now supported. This human-readable text is invaluable when a system must access several indexes and make a decision based on the description. Consider a Model Context Protocol (MCP) server that must pick the correct index at run time. The decision can be based on the description rather than on the index name alone.
260+
261+
An index description is a schema update, and you can add it without having to rebuild the entire index.
262+
263+
+ String length is 4,000 characters maximum.
264+
+ Content must be human-readable, in Unicode. Your use-case should determine which language to use.
265+
266+
Support for an index description is provided in the preview REST API, the Azure portal, or in a prerelease Azure SDK package that provides the feature.
267+
268+
### [**Azure portal**](#tab/portal)
269+
270+
The Azure portal supports the latest preview API.
271+
272+
1. Sign in to the Azure portal and find your search service.
273+
274+
1. Under **Search management** > **Indexes**, select an index.
275+
276+
1. Select **Edit JSON**.
277+
278+
1. Insert `"indexDescription"`, followed by the description.
279+
280+
:::image type="content" source="media/search-how-to-index/edit-index-json.png" alt-text="Screenshot of the JSON definition of an index in the Azure portal.":::
281+
282+
1. Save the index.
283+
284+
### [**REST**](#tab/rest)
285+
286+
1. [GET an index definition](/rest/api/searchservice/indexes/get).
287+
288+
1. Copy the JSON.
289+
290+
1. [Formulate an index update PUT request](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2025-05-01-preview&preserve-view=true) using the preview API, providing the *full* JSON of the existing schema, plus the new description field.
291+
292+
1. To confirm the description, issue another [GET using the 2025-05-01-preview REST API](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2025-05-01-preview&preserve-view=true).
293+
294+
---
295+
256296
## Balancing workloads
257297

258298
Indexing doesn't run in the background, but the search service will balance any indexing jobs against ongoing queries. During indexing, you can [monitor query requests](search-monitor-queries.md) in the Azure portal to ensure queries are completing in a timely manner.

articles/search/search-what-is-an-index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: azure-ai-search
1111
ms.custom:
1212
- ignite-2023
1313
ms.topic: conceptual
14-
ms.date: 04/14/2025
14+
ms.date: 05/19/2025
1515
---
1616

1717
# Search indexes in Azure AI Search
@@ -35,6 +35,7 @@ The structure of a document is determined by the *index schema*, as illustrated
3535
```json
3636
{
3737
"name": "name_of_index, unique across the service",
38+
"description" : "Health plan coverage for standard and premium plans for Northwind and Contoso employees."
3839
"fields": [
3940
{
4041
"name": "name_of_field",
@@ -50,7 +51,7 @@ The structure of a document is determined by the *index schema*, as illustrated
5051
"indexAnalyzer": "name_of_indexing_analyzer", (only if 'searchAnalyzer' is set and 'analyzer' is not set)
5152
"normalizer": "name_of_normalizer", (applies to fields that are filterable)
5253
"synonymMaps": "name_of_synonym_map", (optional, only one synonym map per field is currently supported)
53-
"dimensions": "number of dimensions used by an emedding models", (applies to vector fields only, of type Collection(Edm.Single))
54+
"dimensions": "number of dimensions used by an embedding models", (applies to vector fields only, of type Collection(Edm.Single))
5455
"vectorSearchProfile": "name_of_vector_profile" (indexes can have many configurations, a field can use just one)
5556
}
5657
],
@@ -187,6 +188,7 @@ You can get hands-on experience creating an index using almost any sample or wal
187188
But you'll also want to become familiar with methodologies for loading an index with data. Index definition and data import strategies are defined in tandem. The following articles provide more information about creating and loading an index.
188189

189190
+ [Create a search index](search-how-to-create-search-index.md)
191+
+ [Update an index](search-howto-reindex.md)
190192
+ [Create a vector store](vector-search-how-to-create-index.md)
191193
+ [Create an index alias](search-how-to-alias.md)
192194
+ [Data import overview](search-what-is-data-import.md)

articles/search/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Learn about the latest updates to Azure AI Search functionality, docs, and sampl
3333
| [GenAI prompt skill (preview)](cognitive-search-skill-genai-prompt.md) | Skills | A new skill that connects to a large language model (LLM) for information, using a prompt you provide. With this skill, you can populate a searchable field using content from an LLM. A primary use case for this skill is *image verbalization*, using an LLM to describe images and send the description to a searchable field in your index. |
3434
| [Document Layout skill (preview)](cognitive-search-skill-document-intelligence-layout.md)| Skills | New parameters are available for this skill if you use the 2025-05-01-preview API version. New parameters support image offset metadata that improves the image search experience. |
3535
| Import and vectorize data wizard enhancements | Portal | This wizard provides two paths for creating and populating vector indexes: [Retrieval Augmented Generation (RAG)](search-get-started-portal-import-vectors.md) and [Multimodal RAG](search-get-started-portal-image-search.md). Logic apps integration is through the RAG path. |
36-
| [Index "description" support (preview)](/rest/api/searchservice/indexes/create-or-update?view=rest-searchservice-2025-05-01-preview&preserve-view=true#request-body) | REST | The latest preview API adds a description to an index. A description is useful in agentic solutions, where the agent reads the description to decide whether to run a query or move on to another index. |
36+
| [Index "description" support (preview)](search-howto-reindex.md#add-an-index-description-preview) | REST | The latest preview API adds a description to an index. Consider a Model Context Protocol (MCP) server that must pick the correct index at run time. The decision can be based on the description rather than on the index name alone. The description must be human readable and under four thousand characters.|
3737
| [2025-05-01-preview](/rest/api/searchservice/operation-groups?view=rest-searchservice-2025-05-01-preview&preserve-view=true) | REST | New data plane preview REST API version providing programmatic access to the preview features announced in this release. |
3838

3939
## April 2025

0 commit comments

Comments
 (0)