---
title: SKSearchType
framework: Core Services
role: symbol
role_heading: Structure
platforms: [Mac Catalyst 13.0+, macOS 10.3+]
path: coreservices/sksearchtype
---

# SKSearchType

Search Kit ignores the constants in this group. Use asynchronous searching with SKSearchCreate instead, which uses query syntax to determine search type.

## Declaration

```swift
struct SKSearchType
```

## Overview

Overview In releases of macOS prior to version 10.4, these constants specify the category of search to perform. Starting with OS X v10.4, use asynchronous searching with SKSearchCreate instead, which uses query syntax to determine search type. In older versions of macOS, these constants specify the various search types you can use with SKSearchResultsCreateWithQuery. Each of these specifies a set of ranked search hits. The kSKSearchRanked and kSKSearchPrefixRanked constants can be used for all index types. The kSKSearchBooleanRanked and kSKSearchRequiredRanked constants cannot be used for vector indexes.

## Topics

### Constants

- [kSKSearchRanked](coreservices/ksksearchranked.md)
- [kSKSearchBooleanRanked](coreservices/ksksearchbooleanranked.md)
- [kSKSearchRequiredRanked](coreservices/ksksearchrequiredranked.md)
- [kSKSearchPrefixRanked](coreservices/ksksearchprefixranked.md)

### Initializers

- [init(_:)](coreservices/sksearchtype/1449367-init.md)
- [init(rawValue:)](coreservices/sksearchtype/1448964-init.md)

### Instance Properties

- [rawValue](coreservices/sksearchtype/1445786-rawvalue.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
