---
title: text
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/spotlightsearchtool/contentdomain/items-swift.struct/text
---

# text

Attributes queried for content keywords. Default: textContent

## Declaration

```swift
var text: [SearchableItemAttribute]?
```

## See Also

### Getting the domain attributes

- [created](corespotlight/spotlightsearchtool/contentdomain/items-swift.struct/created.md)
- [modified](corespotlight/spotlightsearchtool/contentdomain/items-swift.struct/modified.md)
- [title](corespotlight/spotlightsearchtool/contentdomain/items-swift.struct/title.md)
