Contents

SKIndexGetTermIDForTermString(_:_:)

Gets the ID for a term in an index.

Declaration

func SKIndexGetTermIDForTermString(_ inIndex: SKIndex!, _ inTermString: CFString!) -> CFIndex

Parameters

  • inIndex:

    The index you want to examine.

  • inTermString:

    The term string whose corresponding ID you want.

Return Value

A CFIndex object containing the term ID for a given term in an index. If the term isn’t found, this function returns a value of kCFNotFound.

See Also

Working with Documents and Terms