Contents

attributeSet(for:)

Returns the searchable attributes for the specified managed object.

Declaration

func attributeSet(for object: NSManagedObject) -> CSSearchableItemAttributeSet?

Parameters

  • object:

    The managed object to index.

Return Value

An instance of CSSearchableItemAttributeSet that provides the searchable item’s attributes.

Discussion

To prevent Core Spotlight from indexing a specific managed object, override this method and return nil for that object.

See Also

Managing the Index