<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSIndexError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Spotlight"
    ],
    "preciseIdentifier" : "s:SC16CSIndexErrorCodeLeV"
  },
  "title" : "CSIndexError"
}
-->

# CSIndexError

Index errors returned by Core Spotlight.

```
struct CSIndexError
```

## Topics

### Getting the error codes

[`indexUnavailableError`](/documentation/CoreSpotlight/CSIndexError/indexUnavailableError)

The indexer is unavailable.

[`indexingUnsupported`](/documentation/CoreSpotlight/CSIndexError/indexingUnsupported)

Indexing isn’t supported on the device.

[`invalidClientStateError`](/documentation/CoreSpotlight/CSIndexError/invalidClientStateError)

The provided client state data is invalid.

[`invalidItemError`](/documentation/CoreSpotlight/CSIndexError/invalidItemError)

The searchable item object is invalid.

[`mismatchedClientState`](/documentation/CoreSpotlight/CSIndexError/mismatchedClientState)

The provided client state did not match the information in the index.

[`quotaExceeded`](/documentation/CoreSpotlight/CSIndexError/quotaExceeded)

The quota for the bundle has been exceeded.

[`remoteConnectionError`](/documentation/CoreSpotlight/CSIndexError/remoteConnectionError)

An error occurred while communicating with the remote process.

[`unknownError`](/documentation/CoreSpotlight/CSIndexError/unknownError)

An unknown error occurred.

### Getting codes for indexing errors

[`CSIndexError.Code`](/documentation/CoreSpotlight/CSIndexError/Code)

Error codes that describe indexing-specific errors.

### Getting the error description

[`errorDomain`](/documentation/CoreSpotlight/CSIndexError/errorDomain)



---

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)