Contents

SKIndexCopyTermStringForTermID(_:_:)

Obtains a term, specified by ID, from an index.

Declaration

func SKIndexCopyTermStringForTermID(_ inIndex: SKIndex!, _ inTermID: CFIndex) -> Unmanaged<CFString>!

Parameters

  • inIndex:

    The index whose terms you are searching.

  • inTermID:

    The ID of the term whose string you want.

Return Value

A CFString containing the term specified by inTermID.

Discussion

When your application has the ID of a term, perhaps as a result of calling SKIndexCopyTermIDArrayForDocumentID(_:_:), use this function to derive the term’s text string.

To perform the inverse operation of deriving a term ID from a term string in a given index, use SKIndexGetTermIDForTermString(_:_:).

See Also

Working with Documents and Terms