---
title: relatedAppEntityIdentifier
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchableitem/relatedappentityidentifier
---

# relatedAppEntityIdentifier

The identifier of the related indexed entity for this searchable item.

## Declaration

```swift
var relatedAppEntityIdentifier: EntityIdentifier? { get set }
```

## Discussion

Discussion Convenience property that forwards to the item’s attribute set. Use this property to associate a child searchable item such as an attachment or embedded content with its parent IndexedEntity instance. Only an identifier reference is stored. No entity content is embedded in the child item. Setting this property again replaces the previously set identifier.

## See Also

### Associating an entity with an item

- [associateAppEntity(_:priority:)](corespotlight/cssearchableitem/associateappentity(_:priority:)-6h7ym.md)
- [associateAppEntity(_:priority:)](corespotlight/cssearchableitem/associateappentity(_:priority:)-736lx.md)
