SearchQuery

@objcMembers
@objc(GetSocialSearchQuery)
public final class SearchQuery : NSObject

Describe query to do a global search.

  • Declaration

    Swift

    public static let topic: Int
  • Declaration

    Swift

    public static let group: Int
  • Declaration

    Swift

    public static let user: Int
  • Declaration

    Swift

    public static let activity: Int
  • tag

    Declaration

    Swift

    public static let tag: Int
  • Declaration

    Swift

    public static let label: Int
  • Create a query to find in entities.

    Declaration

    Swift

    @objc(find:)
    public static func find(_ searchTerm: String) -> SearchQuery

    Parameters

    searchTerm

    String to search

    Return Value

    New SearchQuery instance.

  • Create a query to get all entities.

    Declaration

    Swift

    @objc(all)
    public static func all() -> SearchQuery

    Return Value

    New SearchQuery instance.

  • Search in specific entities

    Declaration

    Swift

    @objc(inEntities:)
    public func inEntities(_ entities: [Int]) -> SearchQuery

    Return Value

    New SearchQuery instance.

  • Filters by the specified labels.

    • labels: [String]

    Declaration

    Swift

    @objc(withLabels:)
    public func withLabels(_ labels: [String]) -> SearchQuery

    Return Value

    New SearchQuery instance.

  • Filters by the specified properties.

    • properties: [String: String]

    Declaration

    Swift

    @objc(withProperties:)
    public func withProperties(_ properties: [String : String]) -> SearchQuery

    Return Value

    New SearchQuery instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }