---
title: domainIdentifier
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchableitemattributeset/domainidentifier
---

# domainIdentifier

An identifier that represents the domain or owner of the item.

## Declaration

```swift
var domainIdentifier: String? { get set }
```

## Mentioned in

Generating summary and priority data for indexed items

## Discussion

Discussion Specify a domain identifier to group items together and make it easier to delete them from the index. For example, to delete a user activity, set this property on the contentAttributeSet property of the NSUserActivity object and then call deleteSearchableItems(withDomainIdentifiers:completionHandler:) on your app’s index.

## See Also

### Describing general attributes

- [alternateNames](corespotlight/cssearchableitemattributeset/alternatenames.md)
- [contentType](corespotlight/cssearchableitemattributeset/contenttype.md)
- [contentTypeTree](corespotlight/cssearchableitemattributeset/contenttypetree.md)
- [contentURL](corespotlight/cssearchableitemattributeset/contenturl.md)
- [darkThumbnailURL](corespotlight/cssearchableitemattributeset/darkthumbnailurl.md)
- [displayName](corespotlight/cssearchableitemattributeset/displayname.md)
- [keywords](corespotlight/cssearchableitemattributeset/keywords.md)
- [metadataModificationDate](corespotlight/cssearchableitemattributeset/metadatamodificationdate.md)
- [path](corespotlight/cssearchableitemattributeset/path.md)
- [rankingHint](corespotlight/cssearchableitemattributeset/rankinghint.md)
- [relatedUniqueIdentifier](corespotlight/cssearchableitemattributeset/relateduniqueidentifier.md)
- [thumbnailData](corespotlight/cssearchableitemattributeset/thumbnaildata.md)
- [thumbnailURL](corespotlight/cssearchableitemattributeset/thumbnailurl.md)
- [title](corespotlight/cssearchableitemattributeset/title.md)
- [weakRelatedUniqueIdentifier](corespotlight/cssearchableitemattributeset/weakrelateduniqueidentifier.md)
