---
title: contentURL
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchableitemattributeset/contenturl
---

# contentURL

The file URL of the content to index.

## Declaration

```swift
var contentURL: URL? { get set }
```

## Discussion

Discussion This is an optional property. An app that is also a client of iCloud Drive can set this property to allow Spotlight to deduplicate its searchable items against the iCloud Drive items. In this scenario, Spotlight does not display searchable items from iCloud Drive that have the same contentURL property.

## See Also

### Describing general attributes

- [alternateNames](corespotlight/cssearchableitemattributeset/alternatenames.md)
- [contentType](corespotlight/cssearchableitemattributeset/contenttype.md)
- [contentTypeTree](corespotlight/cssearchableitemattributeset/contenttypetree.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)
