FileSource
A search source that retrieves indexed metadata from files and directories visible to Spotlight.
Declaration
struct FileSourceMentioned in
Overview
Use this type to search the metadata of your app’s custom file types. Configure the source with one or more directories for the tool to search. During a query, the Spotlight considers only the previously indexed files in those directories. When it finds a match, the tool delivers the item and any attributes you specify in the fetchAttributes property to the model for consideration.
For more information about indexing your app’s files, see CSImportExtension.