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;
        creator_username?: string;
        limit?: number;
        listing_type?: ListingType;
        post_url_only?: boolean;
        search_term: string;
        show_nsfw?: boolean;
        time_range_seconds?: number;
        title_only?: boolean;
        type_?: SearchType;
    }
    Index

    Properties

    community_id?: CommunityId
    community_name?: string
    creator_id?: PersonId
    creator_username?: string
    limit?: number
    listing_type?: ListingType

    Optionalpost_url_only

    post_url_only?: boolean
    search_term: 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