SKIndexRemoveDocument(_:_:)
Removes a document URL object (of type Skdocument) and its children, if any, from an index.
Declaration
func SKIndexRemoveDocument(_ inIndex: SKIndex!, _ inDocument: SKDocument!) -> BoolParameters
- inIndex:
The index from which you want to remove the document URL object (SKDocumentRef).
- inDocument:
The document URL object to remove.
Return Value
A Boolean value of true on success, or false on failure.
Discussion
When your application deletes a document, use this function to update the index to reflect the change.
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
Managing Indexes
SKIndexAddDocumentWithText(_:_:_:_:)SKIndexAddDocument(_:_:_:_:)SKIndexFlush(_:)SKIndexCompact(_:)SKIndexGetDocumentCount(_:)SKIndexGetMaximumDocumentID(_:)SKIndexGetMaximumTermID(_:)SKIndexDocumentIteratorCreate(_:_:)SKIndexDocumentIteratorCopyNext(_:)SKIndexDocumentIteratorGetTypeID()SKIndexGetAnalysisProperties(_:)SKIndexMoveDocument(_:_:_:)SKIndexRenameDocument(_:_:_:)SKIndexSetMaximumBytesBeforeFlush(_:_:)SKIndexGetMaximumBytesBeforeFlush(_:)