Skip to content

Commit 62591cc

Browse files
Merge pull request #5871 from haileytap/miscellaneous
[Azure Search] Create search-how-to-manage-index.md
2 parents 615c472 + 7fa347a commit 62591cc

File tree

11 files changed

+532
-1
lines changed

11 files changed

+532
-1
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
manager: nitinme
3+
author: haileytap
4+
ms.author: haileytapia
5+
ms.service: azure-ai-search
6+
ms.topic: include
7+
ms.date: 07/03/2025
8+
---
9+
10+
After you [create an index](../../search-how-to-create-search-index.md), you can use the [Azure portal](https://portal.azure.com) to access its statistics and definition or remove it from your search service.
11+
12+
This article describes how to manage an index without affecting its content. For guidance on modifying an index definition, see [Update or rebuild an index in Azure AI Search](../../search-howto-reindex.md).
13+
14+
## Limitations
15+
16+
The pricing tier of your search service determines the maximum number and size of your indexes, fields, and documents. For more information, see [Service limits in Azure AI Search](../../search-limits-quotas-capacity.md).
17+
18+
Otherwise, the following limitations apply to index management:
19+
20+
+ You can't take an index offline for maintenance. Indexes are always available for search operations.
21+
22+
+ You can't directly copy or duplicate an index within or across search services. However, you can use the backup and restore sample for [.NET](https://github.com/Azure-Samples/azure-search-dotnet-utilities/blob/main/index-backup-restore) or [Python](https://github.com/Azure/azure-search-vector-samples/tree/main/demo-python/code/utilities/index-backup-restore) to achieve similar functionality.
23+
24+
## View all indexes
25+
26+
To view all your indexes:
27+
28+
1. Sign in to the [Azure portal](https://portal.azure.com) and select your search service.
29+
30+
1. From the left pane, select **Search management** > **Indexes**.
31+
32+
:::image type="content" source="../../media/search-how-to-manage-index/indexes-page.png" alt-text="Screenshot of the indexes page in the portal." border="true" lightbox="../../media/search-how-to-manage-index/indexes-page.png":::
33+
34+
By default, the indexes are sorted by name in ascending order. You can sort by **Name**, **Document count**, **Vector index quota usage**, or **Total storage size** by selecting the corresponding column header.
35+
36+
## View an index's statistics
37+
38+
On the index page, the portal provides the following statistics:
39+
40+
+ Number of documents in the index.
41+
+ Storage space used by the index.
42+
+ Vector storage space used by the index.
43+
+ Maximum storage space for each index on your search service, which [depends on your pricing tier](../../search-limits-quotas-capacity.md). This value doesn't represent the total storage currently available to the index.
44+
45+
:::image type="content" source="../../media/search-how-to-manage-index/index-statistics.png" alt-text="Screenshot of the index statistics in the portal." border="true" lightbox="../../media/search-how-to-manage-index/index-statistics.png":::
46+
47+
## View an index's definition
48+
49+
Each index is defined by fields and optional components that enhance search capabilities, such as analyzers, normalizers, tokenizers, and synonym maps. This definition determines the index's structure and behavior during indexing and querying.
50+
51+
On the index page, select **Edit JSON** to view its complete definition.
52+
53+
:::image type="content" source="../../media/search-how-to-manage-index/edit-json-button.png" alt-text="Screenshot of the Edit JSON button in the portal." border="true" lightbox="../../media/search-how-to-manage-index/edit-json-button.png":::
54+
55+
<!--
56+
> [!NOTE]
57+
> The portal doesn't support synonym map definitions. You can use the portal to view existing synonyms, but you can't create them or assign them to fields. For more information, see [Add synonyms in Azure AI Search](../../search-synonym.md).
58+
-->
59+
60+
## Delete an index
61+
62+
> [!WARNING]
63+
> You can't undo an index deletion. Before you proceed, make sure that you want to permanently remove the index and its documents from your search service.
64+
65+
On the index page, select **Delete** to initiate the deletion process.
66+
67+
:::image type="content" source="../../media/search-how-to-manage-index/delete-button.png" alt-text="Screenshot of the Delete button in the portal." border="true" lightbox="../../media/search-how-to-manage-index/delete-button.png":::
68+
69+
The portal prompts you to confirm the deletion. After you select **Delete**, check your notifications to confirm that the deletion was successful.
70+
71+
:::image type="content" source="../../media/search-how-to-manage-index/delete-confirmation.png" alt-text="Screenshot of the deletion confirmation in the portal." border="true" lightbox="../../media/search-how-to-manage-index/delete-confirmation.png":::
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
manager: nitinme
3+
author: haileytap
4+
ms.author: haileytapia
5+
ms.service: azure-ai-search
6+
ms.topic: include
7+
ms.date: 07/03/2025
8+
---
9+
10+
After you [create an index](../../search-how-to-create-search-index.md), you can use the [Azure AI Search REST APIs](/rest/api/searchservice/) to access its statistics and definition or remove it from your search service.
11+
12+
This article describes how to manage an index without affecting its content. For guidance on modifying an index definition, see [Update or rebuild an index in Azure AI Search](../../search-howto-reindex.md).
13+
14+
## Limitations
15+
16+
The pricing tier of your search service determines the maximum number and size of your indexes, fields, and documents. For more information, see [Service limits in Azure AI Search](../../search-limits-quotas-capacity.md).
17+
18+
Otherwise, the following limitations apply to index management:
19+
20+
+ You can't take an index offline for maintenance. Indexes are always available for search operations.
21+
22+
+ You can't directly copy or duplicate an index within or across search services. However, you can use the backup and restore sample for [.NET](https://github.com/Azure-Samples/azure-search-dotnet-utilities/blob/main/index-backup-restore) or [Python](https://github.com/Azure/azure-search-vector-samples/tree/main/demo-python/code/utilities/index-backup-restore) to achieve similar functionality.
23+
24+
## View all indexes
25+
26+
Use [Indexes - List (REST API)](/rest/api/searchservice/indexes/list) to retrieve all indexes on your search service.
27+
28+
```http
29+
### List all indexes
30+
GET https://[service name].search.windows.net/indexes?api-version=[api version]
31+
Content-Type: application/json
32+
api-key: [admin key]
33+
```
34+
35+
## View an index's statistics
36+
37+
Use [Indexes - Get Statistics (REST API)](/rest/api/searchservice/indexes/get-statistics) to retrieve the document count, storage usage, and vector storage usage of an index.
38+
39+
```http
40+
### Get index statistics
41+
GET https://[service name].search.windows.net/indexes/[index name]/stats?api-version=[api version]
42+
Content-Type: application/json
43+
api-key: [admin key]
44+
```
45+
46+
## View an index's definition
47+
48+
Each index is defined by fields and optional components that enhance search capabilities, such as analyzers, normalizers, tokenizers, and synonym maps. This definition determines the index's structure and behavior during indexing and querying.
49+
50+
Use [Indexes - Get (REST API)](/rest/api/searchservice/indexes/get) to retrieve the JSON definition of an index.
51+
52+
```http
53+
### Get index definition
54+
GET https://[service name].search.windows.net/indexes/[index name]?api-version=[api version]
55+
Content-Type: application/json
56+
api-key: [admin key]
57+
```
58+
59+
## Delete an index
60+
61+
> [!WARNING]
62+
> You can't undo an index deletion. Before you proceed, make sure that you want to permanently remove the index and its documents from your search service.
63+
64+
Use [Indexes - Delete (REST API)](/rest/api/searchservice/indexes/delete) to permanently delete an index.
65+
66+
```http
67+
### Delete an index
68+
DELETE https://[service name].search.windows.net/indexes/[index name]?api-version=[api version]
69+
Content-Type: application/json
70+
api-key: [admin key]
71+
```
72+
73+
If the index was deleted successfully, you should receive an `HTTP/1.1 204 No Content` response.

0 commit comments

Comments
 (0)