Opens an existing, named index for searching only.
- macOS 10.3+
- Core Services
The index to open.
The name of the index. Can be
NULL, in which case this function attempts to open the index with the default name of
The named index, or
NULL on failure.
An index opened by
SKIndex can be searched but not updated. To open an index for updating, use
in does not contain an index with the default name, this function returns
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.
A call to
SKIndex retains the opened index. When your application no longer needs the index, dispose of it by calling
You cannot use