SearchPostsSkeletonQueryParams

constructor(q: String, sort: SearchPostsSkeletonSort? = SearchPostsSkeletonSort.Latest, since: String? = null, until: String? = null, mentions: AtIdentifier? = null, author: AtIdentifier? = null, lang: Language? = null, domain: String? = null, url: Uri? = null, tag: List<String> = emptyList(), viewer: Did? = null, limit: Long? = 25, cursor: String? = null)

Parameters

q

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

sort

Specifies the ranking order of results.

since

Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).

until

Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).

mentions

Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.

author

Filter to posts by the given account. Handles are resolved to DID before query-time.

lang

Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.

domain

Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.

url

Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.

tag

Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.

viewer

DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries.

cursor

Optional pagination mechanism; may not necessarily allow scrolling through entire result set.