SKIndexGetMaximumDocumentID(_:)
Gets the highest-numbered document ID in an index.
Declaration
func SKIndexGetMaximumDocumentID(_ inIndex: SKIndex!) -> SKDocumentIDParameters
- inIndex:
An index.
Return Value
A document ID object containing the highest-numbered document ID in the index.
Discussion
Use this function with SKIndexGetDocumentCount(_:) to determine whether an index is fragmented and in need of compaction. See SKIndexCompact(_:).
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.
Version-Notes
In versions of macOS prior to OS X v10.4, the return type for SKIndexGetMaximumDocumentID was CFIndex. The return type in macOS 10.4 and later is SKDocumentID.
See Also
Managing Indexes
SKIndexAddDocumentWithText(_:_:_:_:)SKIndexAddDocument(_:_:_:_:)SKIndexFlush(_:)SKIndexCompact(_:)SKIndexGetDocumentCount(_:)SKIndexGetMaximumTermID(_:)SKIndexDocumentIteratorCreate(_:_:)SKIndexDocumentIteratorCopyNext(_:)SKIndexDocumentIteratorGetTypeID()SKIndexGetAnalysisProperties(_:)SKIndexMoveDocument(_:_:_:)SKIndexRemoveDocument(_:_:)SKIndexRenameDocument(_:_:_:)SKIndexSetMaximumBytesBeforeFlush(_:_:)SKIndexGetMaximumBytesBeforeFlush(_:)