Contents

SKIndexRemoveDocument(_:_:)

Removes a document URL object (of type Skdocument) and its children, if any, from an index.

Declaration

func SKIndexRemoveDocument(_ inIndex: SKIndex!, _ inDocument: SKDocument!) -> Bool

Parameters

  • 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