---
title: "reindexEntities(for:indexDescription:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/indexedentityquery/reindexentities(for:indexdescription:)"
---

# reindexEntities(for:indexDescription:)

Reindexes a specific subset of app entities within an index.

## Declaration

```swift
func reindexEntities(for identifiers: [Self.Entity.ID], indexDescription: CSSearchableIndexDescription) async throws
```

## Parameters

- `identifiers`: The identifiers of app entities to reindex. Use these identifiers to fetch the entities from your app’s data store.
- `indexDescription`: An object that describes the characteristics of the searchable index. Use the information in this type to determine which of your app’s doc://com.apple.documentation/documentation/CoreSpotlight/CSSearchableIndex instances to update.

## Discussion

Discussion The system calls this method when it needs you to reindex only some of the app entities in one of your app’s searchable indexes. In your implementation of this method, use the identifiers parameter to fetch the app entities again and donate them to the index.
