Gets the number of documents containing a given term represented in an index.
- macOS 10.3+
- Core Services
The index containing the text of the documents you want to examine.
The terms whose occurrences you want to know.
CFIndex object containing the number of documents represented in an index that contain a given term.
If you want to know in which documents a term appears across multiple indexes, call this function separately on each index. Before querying each index, get the index-specific term ID using
To ensure that this function takes into account document URL objects (of type
SKDocument) recently added to indexes, call
SKIndex on each index before calling this function.