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-how-to-index-markdown-blobs.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -466,16 +466,17 @@ This method uses a soft-delete to delete documents associated with a specific bl
466
466
467
467
#### Option 2. Use the delete API
468
468
469
-
Before re-indexing a modified Markdown file, explicitly delete the existing documents associated with that file using the [https://learn.microsoft.com/en-us/rest/api/searchservice/delete-documents](https://learn.microsoft.com/en-us/rest/api/searchservice/preview-api/add-update-delete-documents). You can either:
469
+
Before re-indexing a modified Markdown file, explicitly delete the existing documents associated with that file using the [delete API](https://learn.microsoft.com/rest/api/searchservice/preview-api/add-update-delete-documents). You can either:
470
470
471
471
* Manually indentify individual stale documents by identifying duplicates in the index to be deleted. This may be feasible for small, well-understood changes but can be time-consuming.
472
472
* (**Recommended**) Remove all documents generated from the same parent file before re-indexing. This ensures a clean slate and avoids inconsistencies.
473
473
474
474
1. Identify the id of the documents associated with the file. Use a query like the one below to retrieve the document key IDs (e.g., `id`, `chunk_id`, etc.) for all documents tied to a specific file. Replace `metadata_storage_path` with the appropriate field in your index that maps to the file path or blob URI. Note that this field must be a key.
475
-
```
476
-
GET https://<search-service>.search.windows.net/indexes/<index-name>/docs?api-version=2025-05-01-preview
477
-
Content-Type: application/json
478
-
api-key: [admin key]
475
+
```http
476
+
GET https://[service name].search.windows.net/indexes/[index name]/docs?api-version=2025-05-01-preview
0 commit comments