---
title: "SKIndexGetIndexType(_:)"
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.3+]
path: coreservices/1442236-skindexgetindextype
---

# SKIndexGetIndexType(_:)

Gets the category of an index.

## Declaration

```swift
func SKIndexGetIndexType(_ inIndex: SKIndex!) -> SKIndexType
```

## Parameters

- `inIndex`: The index whose category you want to know.

## Return Value

Return Value The category of the index. See the SKIndexType enumeration for a list of the various index categories. On failure, returns a value of kSKIndexUnknown.

## Discussion

Discussion As described in SKIndexType, Search Kit offers four categories of index, each optimized for one or more types of searching. Search Kit is thread-safe. You can use separate indexing and searching threads. Your application is responsible for ensuring that no more than one process is open at a time for writing to an index.

## See Also

### Creating, Opening, and Closing Indexes

- [SKIndexCreateWithURL(_:_:_:_:)](coreservices/1446111-skindexcreatewithurl.md)
- [SKIndexCreateWithMutableData(_:_:_:_:)](coreservices/1447500-skindexcreatewithmutabledata.md)
- [SKIndexOpenWithData(_:_:)](coreservices/1446398-skindexopenwithdata.md)
- [SKIndexOpenWithMutableData(_:_:)](coreservices/1444201-skindexopenwithmutabledata.md)
- [SKIndexOpenWithURL(_:_:_:)](coreservices/1449017-skindexopenwithurl.md)
- [SKIndexClose(_:)](coreservices/1442401-skindexclose.md)
- [SKIndexGetTypeID()](coreservices/1450223-skindexgettypeid.md)
