We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b98ea commit 2254dafCopy full SHA for 2254daf
src/main/scala/algoliasearch/recommend/RecommendationsHit.scala
@@ -54,6 +54,7 @@ object RecommendationsHitSerializer extends Serializer[RecommendationsHit] {
54
json match {
55
case value: JObject if value.obj.exists(_._1 == "facetName") && value.obj.exists(_._1 == "facetValue") =>
56
Extraction.extract[TrendingFacetHit](value)
57
+ case value: JObject if value.obj.exists(_._1 == "objectID") => Extraction.extract[RecommendHit](value)
58
case _ => throw new MappingException("Can't convert " + json + " to RecommendationsHit")
59
}
60
0 commit comments