---
title: indexes
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsentitydescription/indexes
---

# indexes

An array of fetch index descriptions for the entity.

## Declaration

```swift
var indexes: [NSFetchIndexDescription] { get set }
```

## Discussion

Discussion This value doesn’t form part of the entity’s version hash, and stores that don’t natively support indexing may ignore it. important: Set indexes last in a model. Changing an entity hierarchy in any way that affects the validity of indexes drops all existing indexes for entities in that hierarchy, such as adding or removing superentities or subentities, or adding and removing properties anywhere in the hierarchy.

## See Also

### Configuring indexes and constraints

- [uniquenessConstraints](coredata/nsentitydescription/uniquenessconstraints.md)
- [compoundIndexes](coredata/nsentitydescription/compoundindexes.md)
