@@ -28,7 +28,7 @@ public struct RecommendBaseSearchResponse: Codable, JSONEncodable {
2828 /// Facet counts.
2929 public var facets : [ String : [ String : Int ] ] ?
3030 /// Statistics for numerical facets.
31- public var facetsStats : [ String : RecommendFacetsStats ] ?
31+ public var facetsStats : [ String : RecommendFacetStats ] ?
3232 /// Index name used for the query.
3333 public var index : String ?
3434 /// Index name used for the query. During A/B testing, the targeted index isn't always the index used by the query.
@@ -69,7 +69,7 @@ public struct RecommendBaseSearchResponse: Codable, JSONEncodable {
6969 exhaustiveNbHits: Bool ? = nil ,
7070 exhaustiveTypo: Bool ? = nil ,
7171 facets: [ String : [ String : Int ] ] ? = nil ,
72- facetsStats: [ String : RecommendFacetsStats ] ? = nil ,
72+ facetsStats: [ String : RecommendFacetStats ] ? = nil ,
7373 index: String ? = nil ,
7474 indexUsed: String ? = nil ,
7575 message: String ? = nil ,
@@ -172,7 +172,7 @@ public struct RecommendBaseSearchResponse: Codable, JSONEncodable {
172172
173173 self . facets = dictionary [ " facets " ] ? . value as? [ String : [ String : Int ] ]
174174
175- self . facetsStats = dictionary [ " facetsStats " ] ? . value as? [ String : RecommendFacetsStats ]
175+ self . facetsStats = dictionary [ " facetsStats " ] ? . value as? [ String : RecommendFacetStats ]
176176
177177 self . index = dictionary [ " index " ] ? . value as? String
178178
@@ -264,7 +264,7 @@ public struct RecommendBaseSearchResponse: Codable, JSONEncodable {
264264 self . exhaustiveNbHits = try container. decodeIfPresent ( Bool . self, forKey: . exhaustiveNbHits)
265265 self . exhaustiveTypo = try container. decodeIfPresent ( Bool . self, forKey: . exhaustiveTypo)
266266 self . facets = try container. decodeIfPresent ( [ String : [ String : Int ] ] . self, forKey: . facets)
267- self . facetsStats = try container. decodeIfPresent ( [ String : RecommendFacetsStats ] . self, forKey: . facetsStats)
267+ self . facetsStats = try container. decodeIfPresent ( [ String : RecommendFacetStats ] . self, forKey: . facetsStats)
268268 self . index = try container. decodeIfPresent ( String . self, forKey: . index)
269269 self . indexUsed = try container. decodeIfPresent ( String . self, forKey: . indexUsed)
270270 self . message = try container. decodeIfPresent ( String . self, forKey: . message)
0 commit comments