---
title: contentType
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/spotlightsearchtool/guidanceprofile/contenttype
---

# contentType

A Boolean value that indicates whether to determine matches using an item’s type.

## Declaration

```swift
var contentType: Bool?
```

## Discussion

Discussion Set the value of this property to true to give the model the option to match items based on their CSSearchableItemAttributes/contentType attribute. If you don’t specify a value for this property, the default value is false.

## See Also

### Specifying the supported search techniques

- [dates](corespotlight/spotlightsearchtool/guidanceprofile/dates.md)
- [numericMatch](corespotlight/spotlightsearchtool/guidanceprofile/numericmatch.md)
- [people](corespotlight/spotlightsearchtool/guidanceprofile/people.md)
- [similarityMatch](corespotlight/spotlightsearchtool/guidanceprofile/similaritymatch.md)
- [textMatch](corespotlight/spotlightsearchtool/guidanceprofile/textmatch.md)
