diff --git a/src/main/scala/algoliasearch/recommend/RecommendHit.scala b/src/main/scala/algoliasearch/recommend/RecommendHit.scala index 0eed8b98..4067796f 100644 --- a/src/main/scala/algoliasearch/recommend/RecommendHit.scala +++ b/src/main/scala/algoliasearch/recommend/RecommendHit.scala @@ -49,7 +49,7 @@ case class RecommendHit( snippetResult: Option[Map[String, SnippetResult]] = scala.None, rankingInfo: Option[RankingInfo] = scala.None, distinctSeqID: Option[Int] = scala.None, - score: Double, + score: Option[Double] = scala.None, additionalProperties: Option[List[JField]] = None ) extends RecommendationsHitTrait diff --git a/src/main/scala/algoliasearch/recommend/TrendingFacetHit.scala b/src/main/scala/algoliasearch/recommend/TrendingFacetHit.scala index 7716e181..98a9cbd4 100644 --- a/src/main/scala/algoliasearch/recommend/TrendingFacetHit.scala +++ b/src/main/scala/algoliasearch/recommend/TrendingFacetHit.scala @@ -41,7 +41,7 @@ package algoliasearch.recommend * filter will be returned. */ case class TrendingFacetHit( - score: Double, + score: Option[Double] = scala.None, facetName: String, facetValue: String ) extends RecommendationsHitTrait