<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSSearchableItem/init(uniqueIdentifier:domainIdentifier:attributeSet:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Spotlight"
    ],
    "preciseIdentifier" : "c:objc(cs)CSSearchableItem(im)initWithUniqueIdentifier:domainIdentifier:attributeSet:"
  },
  "title" : "init(uniqueIdentifier:domainIdentifier:attributeSet:)"
}
-->

# init(uniqueIdentifier:domainIdentifier:attributeSet:)

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

```
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 [`CSSearchableItemAttributeSet`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet) for the types of properties you can use.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)