# SearchReviewsOptions

    struct SearchReviewsOptions

    extension SearchReviewsOptions : Equatable, Sendable, SendableMetatype

The options to use when searching through a place's reviews.
- `


  ### [==(_:_:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/SearchReviewsOptions#/s:17GooglePlacesSwift20SearchReviewsOptionsV2eeoiySbAC_ACtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (a: SearchReviewsOptions, b: SearchReviewsOptions) -> Bool

- `


  ### [init(query:rankPreference:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/SearchReviewsOptions#/s:17GooglePlacesSwift20SearchReviewsOptionsV5query14rankPreferenceACSSSg_AA0de4RankI0Otcfc)


  ` Initializes a new instance of `SearchReviewsOptions`.

  #### Declaration

  Swift

      init(query: String? = nil, rankPreference: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/SearchReviewsRankPreference.html = .unspecified)

  #### Parameters

  |---|---|
  | ` query ` | The query to use when searching through a place's reviews. |
  | ` rankPreference ` | The preferred order of the returned reviews. Defaults to `.unspecified`. |

- `


  ### [query](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/SearchReviewsOptions#/s:17GooglePlacesSwift20SearchReviewsOptionsV5querySSSgvp)


  ` The query to use when searching through a place's reviews.

  #### Declaration

  Swift

      var query: String?

- `


  ### [rankPreference](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/SearchReviewsOptions#/s:17GooglePlacesSwift20SearchReviewsOptionsV14rankPreferenceAA0de4RankH0Ovp)


  ` The preferred order of the returned reviews.

  #### Declaration

  Swift

      var rankPreference: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/SearchReviewsRankPreference.html