SearchPostsV2QueryParams

constructor(cursor: String? = null, limit: Long? = 25, query: String? = null, sort: SearchPostsV2Sort? = null, authors: List<AtIdentifier>? = null, mentions: List<AtIdentifier>? = null, domains: List<String>? = null, urls: List<Uri>? = null, embeddedAtUris: List<AtUri>? = null, hashtags: List<String>? = null, excludeAuthors: List<AtIdentifier>? = null, excludeMentions: List<AtIdentifier>? = null, excludeDomains: List<String>? = null, excludeUrls: List<Uri>? = null, excludeEmbeddedAtUris: List<AtUri>? = null, excludeHashtags: List<String>? = null, since: String? = null, until: String? = null, allTime: Boolean? = null, languages: List<Language>? = null, excludeLanguages: List<Language>? = null, hasMedia: Boolean? = null, hasVideo: Boolean? = null, replyParentUri: AtUri? = null, threadRootUri: AtUri? = null, excludeReplies: Boolean? = null, repliesOnly: Boolean? = null, following: Boolean? = null, queryLanguage: SearchPostsV2QueryLanguage? = null)

Parameters

cursor

Optional pagination cursor.

limit

Maximum number of results to return.

query

Search query string. A query or at least one filter is required.

sort

Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking.

authors

Include posts by any of these authors. Handles are resolved to DIDs before searching.

mentions

Include posts that mention any of these accounts. Handles are resolved to DIDs before searching.

domains

Include posts that link to any of these domains.

urls

Include posts that link to any of these URLs.

embeddedAtUris

Include posts that embed any of these AT URIs.

hashtags

Include posts tagged with any of these hashtags. Do not include the hash (#) prefix.

excludeAuthors

Exclude posts by any of these authors. Handles are resolved to DIDs before searching.

excludeMentions

Exclude posts that mention any of these accounts. Handles are resolved to DIDs before searching.

excludeDomains

Exclude posts that link to any of these domains.

excludeUrls

Exclude posts that link to any of these URLs.

excludeEmbeddedAtUris

Exclude posts that embed any of these AT URIs.

excludeHashtags

Exclude posts tagged with any of these hashtags. Do not include the hash (#) prefix.

since

Include posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD).

until

Include posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD).

allTime

Search the full index instead of the recent-post window.

languages

Include posts whose language matches any of these language codes.

excludeLanguages

Exclude posts whose language matches any of these language codes.

hasMedia

Include only posts with media.

hasVideo

Include only posts with video.

replyParentUri

Include only direct replies to this parent post URI.

threadRootUri

Include only posts in the thread rooted at this post URI.

excludeReplies

Exclude replies from results. Mutually exclusive with repliesOnly.

repliesOnly

Include only replies. Mutually exclusive with excludeReplies.

following

Include only posts from accounts followed by the viewer.

queryLanguage

Language analyzer hint for the query text. If unset, the server auto-detects when possible.