lemmy-js-client
    Preparing search index...

    Type Alias Search

    Searches the site, given a search term, and some optional filters.

    type Search = {
        community_id?: CommunityId;
        community_name?: string;
        creator_id?: PersonId;
        disliked_only?: boolean;
        liked_only?: boolean;
        limit?: number;
        listing_type?: ListingType;
        page_back?: boolean;
        page_cursor?: PaginationCursor;
        post_url_only?: boolean;
        q: string;
        show_nsfw?: boolean;
        sort?: SearchSortType;
        time_range_seconds?: number;
        title_only?: boolean;
        type_?: SearchType;
    }
    Index

    Properties

    community_id?: CommunityId
    community_name?: string
    creator_id?: PersonId
    disliked_only?: boolean
    liked_only?: boolean
    limit?: number
    listing_type?: ListingType
    page_back?: boolean
    page_cursor?: PaginationCursor

    Optionalpost_url_only

    post_url_only?: boolean
    q: string
    show_nsfw?: boolean

    If true, then show the nsfw posts (even if your user setting is to hide them)

    time_range_seconds?: number

    Filter to within a given time range, in seconds. IE 60 would give results for the past minute.

    title_only?: boolean
    type_?: SearchType