YapDatabaseSearchResultsViewOptions

@interface YapDatabaseSearchResultsViewOptions
    : YapDatabaseViewOptions <NSCopying>

Note: This class extends YapDatabaseViewOptions.

  • Allows you to filter which groups in the parentView are used to create the union’d search results.

    This is especially powerful if the parentView is rather large, but you’re only displaying a few groups from it. That way the YapDatabaseSearchResults ignores all but the given groups when performing the merge.

    Note: This property only applies if using a parentView.

    The default value is nil.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        YapWhitelistBlacklist *allowedGroups;

    Swift

    var allowedGroups: YapWhitelistBlacklist? { get set }
  • Set this option to include snippets with the search results.

    The default value is nil.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        YapDatabaseFullTextSearchSnippetOptions *snippetOptions;

    Swift

    @NSCopying var snippetOptions: YapDatabaseFullTextSearchSnippetOptions? { get set }