@ctrl/plex
    Preparing search index...

    Interface SmartCollectionSearchOptions

    interface SmartCollectionSearchOptions {
        filters?: AdvancedSearchFilters;
        includeGuids?: boolean;
        libtype?:
            | "track"
            | "artist"
            | "album"
            | "movie"
            | "show"
            | "season"
            | "episode"
            | "trailer"
            | "comic"
            | "person"
            | "picture"
            | "clip"
            | "photo"
            | "photoalbum"
            | "playlist"
            | "playlistFolder"
            | "collection"
            | "optimizedVersion"
            | "userPlaylistItem";
        limit?: number;
        sort?: string
        | string[]
        | FilteringSort
        | FilteringSort[];
        where?: Record<string, SearchFilterValue>;
    }

    Hierarchy

    Index

    Advanced nested and/or filters.

    includeGuids?: boolean

    Include Plex GUID metadata in the persisted search.

    libtype?:
        | "track"
        | "artist"
        | "album"
        | "movie"
        | "show"
        | "season"
        | "episode"
        | "trailer"
        | "comic"
        | "person"
        | "picture"
        | "clip"
        | "photo"
        | "photoalbum"
        | "playlist"
        | "playlistFolder"
        | "collection"
        | "optimizedVersion"
        | "userPlaylistItem"

    Media type searched by the smart collection.

    limit?: number

    Maximum number of matching items.

    sort?: string | string[] | FilteringSort | FilteringSort[]

    One or more validated Plex sort fields.

    where?: Record<string, SearchFilterValue>

    Simple field filters such as { year: 2026, genre: 'Comedy' }.