Function

SKIndexClose

Closes an index.

Declaration

void SKIndexClose(SKIndexRef inIndex);

Parameters

inIndex

The index to close.

Discussion

When your application no longer needs an index that it has opened or created, call SKIndexClose. Calling this function is equivalent to calling CFRelease on an index.

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

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.

SKIndexGetIndexType

Gets the category of an index.

SKIndexGetTypeID

Gets the type identifier for Search Kit indexes.