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_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_cursor?: PaginationCursor

    Optionalpost_url_only

    post_url_only?: boolean
    q: string

    The search query. Can be a plain text, or an object ID which will be resolved (eg https://lemmy.world/comment/1 or !fediverse@lemmy.ml).

    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