---
title: domainIdentifier()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nscoredatacorespotlightdelegate/domainidentifier()
---

# domainIdentifier()

Returns the domain identifier.

## Declaration

```swift
func domainIdentifier() -> String
```

## Discussion

Discussion The default value is the persistent store’s identifier.

## See Also

### Configuring the Index

- [isIndexingEnabled](coredata/nscoredatacorespotlightdelegate/isindexingenabled.md)
- [indexName()](coredata/nscoredatacorespotlightdelegate/indexname().md)
