SearchPostsV2QueryParams

data class SearchPostsV2QueryParams(val cursor: String? = null, val limit: Long? = 25, val query: String? = null, val sort: SearchPostsV2Sort? = null, val authors: List<AtIdentifier>? = null, val mentions: List<AtIdentifier>? = null, val domains: List<String>? = null, val urls: List<Uri>? = null, val embeddedAtUris: List<AtUri>? = null, val hashtags: List<String>? = null, val excludeAuthors: List<AtIdentifier>? = null, val excludeMentions: List<AtIdentifier>? = null, val excludeDomains: List<String>? = null, val excludeUrls: List<Uri>? = null, val excludeEmbeddedAtUris: List<AtUri>? = null, val excludeHashtags: List<String>? = null, val since: String? = null, val until: String? = null, val allTime: Boolean? = null, val languages: List<Language>? = null, val excludeLanguages: List<Language>? = null, val hasMedia: Boolean? = null, val hasVideo: Boolean? = null, val replyParentUri: AtUri? = null, val threadRootUri: AtUri? = null, val excludeReplies: Boolean? = null, val repliesOnly: Boolean? = null, val following: Boolean? = null, val 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.

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Optional pagination cursor.

Link copied to clipboard

Include posts that link to any of these domains.

Link copied to clipboard

Include posts that embed any of these AT URIs.

Link copied to clipboard

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

Link copied to clipboard

Exclude posts that link to any of these domains.

Link copied to clipboard

Exclude posts that embed any of these AT URIs.

Link copied to clipboard

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

Link copied to clipboard

Exclude posts whose language matches any of these language codes.

Link copied to clipboard

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

Link copied to clipboard

Exclude replies from results. Mutually exclusive with repliesOnly.

Link copied to clipboard

Exclude posts that link to any of these URLs.

Link copied to clipboard

Include only posts from accounts followed by the viewer.

Link copied to clipboard

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

Link copied to clipboard

Include only posts with media.

Link copied to clipboard

Include only posts with video.

Link copied to clipboard

Include posts whose language matches any of these language codes.

Link copied to clipboard
val limit: Long?

Maximum number of results to return.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Include only replies. Mutually exclusive with excludeReplies.

Link copied to clipboard

Include only direct replies to this parent post URI.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val urls: List<Uri>?

Include posts that link to any of these URLs.

Functions

Link copied to clipboard