---
title: searchRules
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/locale/collation-swift.struct/searchrules
---

# searchRules

A collation used for string search.

## Declaration

```swift
static let searchRules: Locale.Collation
```

## Discussion

Discussion Use this collation only for determining whether to consider two strings as equivalent. Using this collation may modify the string for search purposes. For example, this colloation supresses the contractions in Thai and Lao. Don’t use this collation to determine the relative order of two strings.

## See Also

### Using special-purpose collations

- [standard](foundation/locale/collation-swift.struct/standard.md)
