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
SKDocumentCreateWithURL(_:)SKDocumentCreate(_:_:_:)SKDocumentCopyURL(_:)SKDocumentGetName(_:)SKDocumentGetParent(_:)SKDocumentGetSchemeName(_:)SKDocumentGetTypeID()SKIndexCopyDocumentForDocumentID(_:_:)SKIndexCopyInfoForDocumentIDs(_:_:_:_:_:)SKIndexCopyDocumentRefsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentURLsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentIDArrayForTermID(_:_:)SKIndexCopyTermIDArrayForDocumentID(_:_:)SKIndexGetTermIDForTermString(_:_:)SKIndexSetDocumentProperties(_:_:_:)SKIndexCopyDocumentProperties(_:_:)SKIndexGetDocumentState(_:_:)SKIndexGetDocumentTermCount(_:_:)SKIndexGetDocumentTermFrequency(_:_:_:)SKIndexGetTermDocumentCount(_:_:)SKIndexGetDocumentID(_:_:)