FeedSearchPostsInput constructor
- @JsonSerializable(includeIfNull: false)
const
FeedSearchPostsInput(
{ - required String q,
- @FeedSearchPostsSortConverter() FeedSearchPostsSort? sort,
- String? since,
- String? until,
- String? mentions,
- String? author,
- String? lang,
- String? domain,
- String? url,
- List<String>? tag,
- @Default(25) int limit,
- String? cursor,
- Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory FeedSearchPostsInput({
/// Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
required String q,
/// Specifies the ranking order of results.
@FeedSearchPostsSortConverter() FeedSearchPostsSort? sort,
/// 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).
String? since,
/// 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).
String? until,
/// Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.
String? mentions,
/// Filter to posts by the given account. Handles are resolved to DID before query-time.
String? author,
/// Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.
String? lang,
/// Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.
String? domain,
/// Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
String? url,
List<String>? tag,
@Default(25) int limit,
/// Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
String? cursor,
Map<String, dynamic>? $unknown,
}) = _FeedSearchPostsInput;