MessageSearchQueryParams

public final class MessageSearchQueryParams: NSObject, Codable
extension MessageSearchQueryParams: NSCopying

Message search query builder

  • Keyword to search for.

    Declaration

    Swift

    public var keyword: String?
  • Channel url of the channel you want to set as a scope for the search.

    Declaration

    Swift

    public var channelURL: String?
  • Channel custom type you want to set as a scope for the search.

    Declaration

    Swift

    public var channelCustomType: String?
  • Should reverse the queried result list. Default is false

    Declaration

    Swift

    public var reverse: Bool = false
  • Should search as a complete, exact phrase. Default is false

    Declaration

    Swift

    public var exactMatch: Bool = false
  • Starting timestamp to search from. Default is 0

    Declaration

    Swift

    public var messageTimestampFrom: Int64 = 0
  • Ending timestamp to search to. Default is 0

    Declaration

    Swift

    public var messageTimestampTo: Int64 = 0
  • The order method for the search. Default is .score

    Declaration

    Swift

    public var order: MessageSearchQueryOrder = .score
  • The maximum number of SBDBaseMessages per queried page. Default is 20, maximum is 999 (<1000)

    Declaration

    Swift

    public var limit: UInt = 20
  • Whether treat keyword field as advanced query or not

    Since

    3.0.222

    Declaration

    Swift

    public var advancedQuery: Bool = false
  • Array of target fields in message’s data that will be searched with keyword

    Since

    3.0.222

    Declaration

    Swift

    public var targetFields: [String]?
  • Default constructor

    Declaration

    Swift

    public override init()
  • Initializes and returns a newly allocated params object that mutated through builder closure.

    Declaration

    Swift

    public init(builder: (MessageSearchQueryParams) -> Void)

    Parameters

    builder

    The builder closure.

    Return Value

    An initialized params object.

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

Equatable

  • Undocumented

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool

NSCopying

  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any