---
title: "init(uniqueIdentifier:domainIdentifier:attributeSet:)"
framework: corespotlight
role: symbol
role_heading: Initializer
path: "corespotlight/cssearchableitem/init(uniqueidentifier:domainidentifier:attributeset:)"
---

# init(uniqueIdentifier:domainIdentifier:attributeSet:)

Returns a searchable item associated with the specified identifier, domain identifier, and attribute set.

## Declaration

```swift
init(uniqueIdentifier: String?, domainIdentifier: String?, attributeSet: CSSearchableItemAttributeSet)
```

## Parameters

- `uniqueIdentifier`: The unique identifier for the item. If you specify NULL, an identifier is generated automatically.
- `domainIdentifier`: An identifier for a domain, such as an album, that helps you group items together in a way that makes sense.
- `attributeSet`: A set of properties that specify the metadata you want to display about an item in a search result. See doc://com.apple.corespotlight/documentation/CoreSpotlight/CSSearchableItemAttributeSet for the types of properties you can use.

## Return Value

Return Value A searchable item that’s associated with the specified identifier, domain identifier, and attribute set.

## See Also

### Getting a searchable item

- [init(appEntity:)](corespotlight/cssearchableitem/init(appentity:)-3hv5.md)
- [init(appEntity:)](corespotlight/cssearchableitem/init(appentity:)-89ehq.md)
- [init(appEntity:priority:)](corespotlight/cssearchableitem/init(appentity:priority:)-7h9s.md)
- [init(appEntity:priority:)](corespotlight/cssearchableitem/init(appentity:priority:)-7xlow.md)
- [init(coder:)](corespotlight/cssearchableitem/init(coder:).md)
