SearchParams
public struct SearchParams : Sendable
The search parameters.
-
The search query.
Declaration
Swift
public var query: String -
Specify whether to search for only specific type.
Declaration
Swift
public var type: SearchType? -
Attempt WebFinger lookup? Defaults to
false.Declaration
Swift
public var resolve: Bool? -
Only include accounts that the user is following? Defaults to
false.Declaration
Swift
public var following: Bool? -
If provided, will only return posts authored by this account.
Declaration
Swift
public var accountId: Account.ID? -
Filter out unreviewed tags? Defaults to
false. Usetruewhen trying to find trending tags.Declaration
Swift
public var excludeUnreviewed: Bool? -
The search parameters.
Declaration
Swift
public init( query: String, type: SearchType? = nil, resolve: Bool? = nil, following: Bool? = nil, accountId: Account.ID? = nil, excludeUnreviewed: Bool? = nil )Parameters
queryThe search query.
typeSpecify whether to search for only specific type.
resolveAttempt WebFinger lookup? Defaults to
false.followingOnly include accounts that the user is following? Defaults to
false.accountIdIf provided, will only return posts authored by this account.
excludeUnreviewedFilter out unreviewed tags? Defaults to
false. Usetruewhen trying to find trending tags. -
Undocumented
See moreDeclaration
Swift
public enum SearchType : String, Sendable
SearchParams Structure Reference