---
title: searchTerms
framework: intents
role: symbol
role_heading: Instance Property
path: intents/insearchformessagesintent/searchterms
---

# searchTerms

The terms to look for in the messages.

## Declaration

```swift
var searchTerms: [String]? { get }
```

## Discussion

Discussion When this property contains one or more NSString objects, your search should return only messages whose contents contain one of the specified strings. Use the operator in the searchTermsOperator property to determine whether to search for messages containing all, some, or none of the specified terms.

## See Also

### Getting the Search Criteria

- [searchTermsOperator](intents/insearchformessagesintent/searchtermsoperator.md)
- [dateTimeRange](intents/insearchformessagesintent/datetimerange.md)
- [attributes](intents/insearchformessagesintent/attributes.md)
