<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IndexedEntityQuery/reindexEntities(for:indexDescription:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents18IndexedEntityQueryP15reindexEntities3for16indexDescriptionySay0D0_2IDQZG_So017CSSearchableIndexJ0CtYaKF"
  },
  "title" : "reindexEntities(for:indexDescription:)"
}
-->

# reindexEntities(for:indexDescription:)

Reindexes a specific subset of app entities within an index.

```
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

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)