Contents

SKIndexGetDocumentTermCount(_:_:)

Gets the number of terms for a document in an index.

Declaration

func SKIndexGetDocumentTermCount(_ inIndex: SKIndex!, _ inDocumentID: SKDocumentID) -> CFIndex

Parameters

  • inIndex:

    The index containing the text of the document whose term count you want.

  • inDocumentID:

    The ID of the document URL object whose term count you want. Obtain a document ID by calling 1444437 Skindexgetdocumentid.

Return Value

A CFIndex object containing the number of terms in a document.

Discussion

In versions of macOS prior to OS X v10.4, the parameter type for inDocumentID was CFIndex. In macOS 10.4 and later, the parameter type is SKDocumentID.

See Also

Working with Documents and Terms