ParseQueryScorable

public protocol ParseQueryScorable

Conform to this protocol to add the required properties to your ParseObject for using QueryConstraint.matchesText() and Query.sortByTextScore().

Note

In order to sort you must use Query.sortByTextScore(). To retrieve the weight/rank, access the “score” property of your ParseObject.
  • The weight/rank of a QueryConstraint.matchesText().

    Declaration

    Swift

    var score: Double? { get }