default()
Returns the default on-device index.
Declaration
class func `default`() -> SelfMentioned in
Return Value
The default on-device index.
Discussion
The default index doesn’t protect data or support batch updates, so use it only during prototyping or testing your Spotlight features. In your production code, create named indexes using init(name:) or init(name:protectionClass:) instead of using this index for your content.