---
title: CSSearchableItemAttributeSet
framework: corespotlight
role: symbol
role_heading: Class
path: corespotlight/cssearchableitemattributeset
---

# CSSearchableItemAttributeSet

The detailed metadata for a searchable item.

## Declaration

```swift
class CSSearchableItemAttributeSet
```

## Mentioned in

Adding your app’s content to Spotlight indexes Generating summary and priority data for indexed items Searching for information in your app

## Overview

Overview A CSSearchableItemAttributeSet contains an extensive set of attributes that describe your app’s content. Attributes include information such as its title and a brief description. They can also refer to who created the item, what kind of data it represents, when someone created it, and more. During the indexing process, you create CSSearchableItem objects and use a CSSearchableItemAttributeSet to fill in the attributes for that item. During a search, you can query the index for items with attributes that match specific values. When creating a CSSearchableItem, it’s important to fill out as much information in the accompanying CSSearchableItemAttributeSet object as possible. You don’t have to provide values for every attribute. Instead, choose attributes that match the domain of your content. This type divides attributes into groups such as media, documents, events, places, music, images, and more. You can also add custom attributes to describe new types of content. When defining custom attributes, be as specific as possible in your definition, and provide a value for the contentTypeTree property so your custom attribute inherits from a known type. important: Modify a CSSearchableItemAttributeSet object on only one thread at a time. Concurrent access to properties in an attribute set has undefined behavior.

## Topics

### Creating an attribute set

- [init(contentType:)](corespotlight/cssearchableitemattributeset/init(contenttype:).md)
- [init(coder:)](corespotlight/cssearchableitemattributeset/init(coder:).md)

### Accessing custom attributes

- [setValue(_:forCustomKey:)](corespotlight/cssearchableitemattributeset/setvalue(_:forcustomkey:).md)
- [value(forCustomKey:)](corespotlight/cssearchableitemattributeset/value(forcustomkey:).md)

### Adding an indexable app entity

- [associateAppEntity(_:priority:)](corespotlight/cssearchableitemattributeset/associateappentity(_:priority:).md)

### Handling Apple Intelligence prioritization and summarization

- [isPriority](corespotlight/cssearchableitemattributeset/ispriority.md)
- [textContentSummary](corespotlight/cssearchableitemattributeset/textcontentsummary.md)
- [transcribedTextContent](corespotlight/cssearchableitemattributeset/transcribedtextcontent.md)

### Providing item representations

- [providerDataTypeIdentifiers](corespotlight/cssearchableitemattributeset/providerdatatypeidentifiers.md)
- [providerFileTypeIdentifiers](corespotlight/cssearchableitemattributeset/providerfiletypeidentifiers.md)
- [providerInPlaceFileTypeIdentifiers](corespotlight/cssearchableitemattributeset/providerinplacefiletypeidentifiers.md)

### 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)
- [domainIdentifier](corespotlight/cssearchableitemattributeset/domainidentifier.md)
- [weakRelatedUniqueIdentifier](corespotlight/cssearchableitemattributeset/weakrelateduniqueidentifier.md)

### Describing document content

- [audiences](corespotlight/cssearchableitemattributeset/audiences.md)
- [contentDescription](corespotlight/cssearchableitemattributeset/contentdescription.md)
- [creator](corespotlight/cssearchableitemattributeset/creator.md)
- [encodingApplications](corespotlight/cssearchableitemattributeset/encodingapplications.md)
- [fileSize](corespotlight/cssearchableitemattributeset/filesize.md)
- [fontNames](corespotlight/cssearchableitemattributeset/fontnames.md)
- [identifier](corespotlight/cssearchableitemattributeset/identifier.md)
- [kind](corespotlight/cssearchableitemattributeset/kind.md)
- [pageCount](corespotlight/cssearchableitemattributeset/pagecount.md)
- [pageHeight](corespotlight/cssearchableitemattributeset/pageheight.md)
- [pageWidth](corespotlight/cssearchableitemattributeset/pagewidth.md)
- [securityMethod](corespotlight/cssearchableitemattributeset/securitymethod.md)
- [subject](corespotlight/cssearchableitemattributeset/subject.md)
- [theme](corespotlight/cssearchableitemattributeset/theme.md)

### Describing user involvement

- [userCreated](corespotlight/cssearchableitemattributeset/usercreated.md)
- [userCurated](corespotlight/cssearchableitemattributeset/usercurated.md)
- [userOwned](corespotlight/cssearchableitemattributeset/userowned.md)

### Describing events

- [allDay](corespotlight/cssearchableitemattributeset/allday.md)
- [completionDate](corespotlight/cssearchableitemattributeset/completiondate.md)
- [dueDate](corespotlight/cssearchableitemattributeset/duedate.md)
- [endDate](corespotlight/cssearchableitemattributeset/enddate.md)
- [importantDates](corespotlight/cssearchableitemattributeset/importantdates.md)
- [startDate](corespotlight/cssearchableitemattributeset/startdate.md)

### Describing places

- [altitude](corespotlight/cssearchableitemattributeset/altitude.md)
- [city](corespotlight/cssearchableitemattributeset/city.md)
- [country](corespotlight/cssearchableitemattributeset/country.md)
- [gpsAreaInformation](corespotlight/cssearchableitemattributeset/gpsareainformation.md)
- [gpsdop](corespotlight/cssearchableitemattributeset/gpsdop.md)
- [gpsDateStamp](corespotlight/cssearchableitemattributeset/gpsdatestamp.md)
- [gpsDestBearing](corespotlight/cssearchableitemattributeset/gpsdestbearing.md)
- [gpsDestDistance](corespotlight/cssearchableitemattributeset/gpsdestdistance.md)
- [gpsDestLatitude](corespotlight/cssearchableitemattributeset/gpsdestlatitude.md)
- [gpsDestLongitude](corespotlight/cssearchableitemattributeset/gpsdestlongitude.md)
- [gpsDifferental](corespotlight/cssearchableitemattributeset/gpsdifferental.md)
- [gpsMapDatum](corespotlight/cssearchableitemattributeset/gpsmapdatum.md)
- [gpsMeasureMode](corespotlight/cssearchableitemattributeset/gpsmeasuremode.md)
- [gpsProcessingMethod](corespotlight/cssearchableitemattributeset/gpsprocessingmethod.md)
- [gpsStatus](corespotlight/cssearchableitemattributeset/gpsstatus.md)
- [gpsTrack](corespotlight/cssearchableitemattributeset/gpstrack.md)
- [headline](corespotlight/cssearchableitemattributeset/headline.md)
- [imageDirection](corespotlight/cssearchableitemattributeset/imagedirection.md)
- [instructions](corespotlight/cssearchableitemattributeset/instructions.md)
- [latitude](corespotlight/cssearchableitemattributeset/latitude.md)
- [longitude](corespotlight/cssearchableitemattributeset/longitude.md)
- [namedLocation](corespotlight/cssearchableitemattributeset/namedlocation.md)
- [speed](corespotlight/cssearchableitemattributeset/speed.md)
- [stateOrProvince](corespotlight/cssearchableitemattributeset/stateorprovince.md)
- [timestamp](corespotlight/cssearchableitemattributeset/timestamp.md)
- [fullyFormattedAddress](corespotlight/cssearchableitemattributeset/fullyformattedaddress.md)
- [postalCode](corespotlight/cssearchableitemattributeset/postalcode.md)
- [subThoroughfare](corespotlight/cssearchableitemattributeset/subthoroughfare.md)
- [thoroughfare](corespotlight/cssearchableitemattributeset/thoroughfare.md)

### Describing media

- [comment](corespotlight/cssearchableitemattributeset/comment.md)
- [contentCreationDate](corespotlight/cssearchableitemattributeset/contentcreationdate.md)
- [contentModificationDate](corespotlight/cssearchableitemattributeset/contentmodificationdate.md)
- [contentSources](corespotlight/cssearchableitemattributeset/contentsources.md)
- [copyright](corespotlight/cssearchableitemattributeset/copyright.md)
- [downloadedDate](corespotlight/cssearchableitemattributeset/downloadeddate.md)
- [editors](corespotlight/cssearchableitemattributeset/editors.md)
- [lastUsedDate](corespotlight/cssearchableitemattributeset/lastuseddate.md)
- [participants](corespotlight/cssearchableitemattributeset/participants.md)
- [projects](corespotlight/cssearchableitemattributeset/projects.md)
- [addedDate](corespotlight/cssearchableitemattributeset/addeddate.md)
- [codecs](corespotlight/cssearchableitemattributeset/codecs.md)
- [contactKeywords](corespotlight/cssearchableitemattributeset/contactkeywords.md)
- [deliveryType](corespotlight/cssearchableitemattributeset/deliverytype.md)
- [duration](corespotlight/cssearchableitemattributeset/duration.md)
- [mediaTypes](corespotlight/cssearchableitemattributeset/mediatypes.md)
- [organizations](corespotlight/cssearchableitemattributeset/organizations.md)
- [streamable](corespotlight/cssearchableitemattributeset/streamable.md)
- [totalBitRate](corespotlight/cssearchableitemattributeset/totalbitrate.md)
- [audioBitRate](corespotlight/cssearchableitemattributeset/audiobitrate.md)
- [version](corespotlight/cssearchableitemattributeset/version.md)
- [videoBitRate](corespotlight/cssearchableitemattributeset/videobitrate.md)
- [contributors](corespotlight/cssearchableitemattributeset/contributors.md)
- [languages](corespotlight/cssearchableitemattributeset/languages.md)
- [publishers](corespotlight/cssearchableitemattributeset/publishers.md)
- [rights](corespotlight/cssearchableitemattributeset/rights.md)
- [role](corespotlight/cssearchableitemattributeset/role.md)
- [contentRating](corespotlight/cssearchableitemattributeset/contentrating.md)
- [coverage](corespotlight/cssearchableitemattributeset/coverage.md)
- [director](corespotlight/cssearchableitemattributeset/director.md)
- [genre](corespotlight/cssearchableitemattributeset/genre.md)
- [information](corespotlight/cssearchableitemattributeset/information.md)
- [local](corespotlight/cssearchableitemattributeset/local.md)
- [originalFormat](corespotlight/cssearchableitemattributeset/originalformat.md)
- [originalSource](corespotlight/cssearchableitemattributeset/originalsource.md)
- [performers](corespotlight/cssearchableitemattributeset/performers.md)
- [playCount](corespotlight/cssearchableitemattributeset/playcount.md)
- [producer](corespotlight/cssearchableitemattributeset/producer.md)
- [rating](corespotlight/cssearchableitemattributeset/rating.md)
- [ratingDescription](corespotlight/cssearchableitemattributeset/ratingdescription.md)
- [url](corespotlight/cssearchableitemattributeset/url.md)

### Describing music

- [album](corespotlight/cssearchableitemattributeset/album.md)
- [artist](corespotlight/cssearchableitemattributeset/artist.md)
- [audioChannelCount](corespotlight/cssearchableitemattributeset/audiochannelcount.md)
- [audioEncodingApplication](corespotlight/cssearchableitemattributeset/audioencodingapplication.md)
- [audioSampleRate](corespotlight/cssearchableitemattributeset/audiosamplerate.md)
- [audioTrackNumber](corespotlight/cssearchableitemattributeset/audiotracknumber.md)
- [composer](corespotlight/cssearchableitemattributeset/composer.md)
- [keySignature](corespotlight/cssearchableitemattributeset/keysignature.md)
- [lyricist](corespotlight/cssearchableitemattributeset/lyricist.md)
- [musicalGenre](corespotlight/cssearchableitemattributeset/musicalgenre.md)
- [recordingDate](corespotlight/cssearchableitemattributeset/recordingdate.md)
- [tempo](corespotlight/cssearchableitemattributeset/tempo.md)
- [timeSignature](corespotlight/cssearchableitemattributeset/timesignature.md)
- [generalMIDISequence](corespotlight/cssearchableitemattributeset/generalmidisequence.md)
- [musicalInstrumentCategory](corespotlight/cssearchableitemattributeset/musicalinstrumentcategory.md)
- [musicalInstrumentName](corespotlight/cssearchableitemattributeset/musicalinstrumentname.md)

### Describing images

- [isoSpeed](corespotlight/cssearchableitemattributeset/isospeed.md)
- [acquisitionMake](corespotlight/cssearchableitemattributeset/acquisitionmake.md)
- [acquisitionModel](corespotlight/cssearchableitemattributeset/acquisitionmodel.md)
- [aperture](corespotlight/cssearchableitemattributeset/aperture.md)
- [bitsPerSample](corespotlight/cssearchableitemattributeset/bitspersample.md)
- [cameraOwner](corespotlight/cssearchableitemattributeset/cameraowner.md)
- [colorSpace](corespotlight/cssearchableitemattributeset/colorspace.md)
- [flashOn](corespotlight/cssearchableitemattributeset/flashon.md)
- [focalLength](corespotlight/cssearchableitemattributeset/focallength.md)
- [focalLength35mm](corespotlight/cssearchableitemattributeset/focallength35mm.md)
- [layerNames](corespotlight/cssearchableitemattributeset/layernames.md)
- [lensModel](corespotlight/cssearchableitemattributeset/lensmodel.md)
- [orientation](corespotlight/cssearchableitemattributeset/orientation.md)
- [pixelCount](corespotlight/cssearchableitemattributeset/pixelcount.md)
- [pixelHeight](corespotlight/cssearchableitemattributeset/pixelheight.md)
- [pixelWidth](corespotlight/cssearchableitemattributeset/pixelwidth.md)
- [whiteBalance](corespotlight/cssearchableitemattributeset/whitebalance.md)
- [exifgpsVersion](corespotlight/cssearchableitemattributeset/exifgpsversion.md)
- [exifVersion](corespotlight/cssearchableitemattributeset/exifversion.md)
- [exposureMode](corespotlight/cssearchableitemattributeset/exposuremode.md)
- [exposureProgram](corespotlight/cssearchableitemattributeset/exposureprogram.md)
- [exposureTime](corespotlight/cssearchableitemattributeset/exposuretime.md)
- [exposureTimeString](corespotlight/cssearchableitemattributeset/exposuretimestring.md)
- [fNumber](corespotlight/cssearchableitemattributeset/fnumber.md)
- [hasAlphaChannel](corespotlight/cssearchableitemattributeset/hasalphachannel.md)
- [maxAperture](corespotlight/cssearchableitemattributeset/maxaperture.md)
- [meteringMode](corespotlight/cssearchableitemattributeset/meteringmode.md)
- [profileName](corespotlight/cssearchableitemattributeset/profilename.md)
- [redEyeOn](corespotlight/cssearchableitemattributeset/redeyeon.md)
- [resolutionHeightDPI](corespotlight/cssearchableitemattributeset/resolutionheightdpi.md)
- [resolutionWidthDPI](corespotlight/cssearchableitemattributeset/resolutionwidthdpi.md)

### Describing messages

- [Common Mailbox Identifiers](corespotlight/common-mailbox-identifiers.md)
- [htmlContentData](corespotlight/cssearchableitemattributeset/htmlcontentdata.md)
- [accountHandles](corespotlight/cssearchableitemattributeset/accounthandles.md)
- [accountIdentifier](corespotlight/cssearchableitemattributeset/accountidentifier.md)
- [additionalRecipients](corespotlight/cssearchableitemattributeset/additionalrecipients.md)
- [authorAddresses](corespotlight/cssearchableitemattributeset/authoraddresses.md)
- [authorEmailAddresses](corespotlight/cssearchableitemattributeset/authoremailaddresses.md)
- [authorNames](corespotlight/cssearchableitemattributeset/authornames.md)
- [authors](corespotlight/cssearchableitemattributeset/authors.md)
- [emailAddresses](corespotlight/cssearchableitemattributeset/emailaddresses.md)
- [emailHeaders](corespotlight/cssearchableitemattributeset/emailheaders.md)
- [hiddenAdditionalRecipients](corespotlight/cssearchableitemattributeset/hiddenadditionalrecipients.md)
- [instantMessageAddresses](corespotlight/cssearchableitemattributeset/instantmessageaddresses.md)
- [likelyJunk](corespotlight/cssearchableitemattributeset/likelyjunk.md)
- [mailboxIdentifiers](corespotlight/cssearchableitemattributeset/mailboxidentifiers.md)
- [phoneNumbers](corespotlight/cssearchableitemattributeset/phonenumbers.md)
- [primaryRecipients](corespotlight/cssearchableitemattributeset/primaryrecipients.md)
- [recipientAddresses](corespotlight/cssearchableitemattributeset/recipientaddresses.md)
- [recipientEmailAddresses](corespotlight/cssearchableitemattributeset/recipientemailaddresses.md)
- [recipientNames](corespotlight/cssearchableitemattributeset/recipientnames.md)
- [textContent](corespotlight/cssearchableitemattributeset/textcontent.md)

### Describing containment

- [containerDisplayName](corespotlight/cssearchableitemattributeset/containerdisplayname.md)
- [containerIdentifier](corespotlight/cssearchableitemattributeset/containeridentifier.md)
- [containerOrder](corespotlight/cssearchableitemattributeset/containerorder.md)
- [containerTitle](corespotlight/cssearchableitemattributeset/containertitle.md)

### Describing supporting actions

- [actionIdentifiers](corespotlight/cssearchableitemattributeset/actionidentifiers.md)
- [supportsNavigation](corespotlight/cssearchableitemattributeset/supportsnavigation.md)
- [supportsPhoneCall](corespotlight/cssearchableitemattributeset/supportsphonecall.md)
- [sharedItemContentType](corespotlight/cssearchableitemattributeset/shareditemcontenttype.md)
- [CSActionIdentifier](corespotlight/csactionidentifier.md)

### Deprecated

- [init(itemContentType:)](corespotlight/cssearchableitemattributeset/init(itemcontenttype:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Searchable items

- [CSSearchableItem](corespotlight/cssearchableitem.md)
- [CSCustomAttributeKey](corespotlight/cscustomattributekey.md)
- [CSLocalizedString](corespotlight/cslocalizedstring.md)
- [CSPerson](corespotlight/csperson.md)
