Function

SKIndexGetTypeID

Gets the type identifier for Search Kit indexes.

Declaration

CFTypeID SKIndexGetTypeID(void);

Return Value

A CFTypeID object containing the type identifier for the SKIndexRef opaque type.

Discussion

Search Kit represents indexes with the SKIndexRef opaque type. If your code needs to determine whether a particular data type is an index, you can use this function along with the CFGetTypeID function and perform a comparison.

Never hard-code the index type ID because it can change from one release of macOS to another.

See Also

Creating, Opening, and Closing Indexes

SKIndexCreateWithURL

Creates a named index in a file whose location is specified with a CFURL object.

SKIndexCreateWithMutableData

Creates a named index stored in a CFMutableDataRef object.

SKIndexOpenWithData

Opens an existing, named index for searching only.

SKIndexOpenWithMutableData

Opens an existing, named index for searching and updating.

SKIndexOpenWithURL

Opens an existing, named index stored in a file whose location is specified with a CFURL object.

SKIndexClose

Closes an index.

SKIndexGetIndexType

Gets the category of an index.