Contents

SKIndexMoveDocument(_:_:_:)

Changes the parent of a document URL object (of type Skdocument) in an index.

Declaration

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

Parameters

  • inIndex:

    The index containing the document URL object you want to move.

  • inDocument:

    The document URL object you want to move.

  • inNewParent:

    The new parent document URL object for the document URL object you want to move.

Return Value

A Boolean value of true for a successful move, or false on failure.

Discussion

When your application moves 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