git.iko.soy/typeable/bloodhound
on master help sign in
Make score nullable
3bef0d9Michael Xavier
src/Database/Bloodhound/Types.hs+1−1
@@ -1118,7 +1118,7 @@ data SearchResult a =
1118 , searchHits :: SearchHits a
1118 , searchHits :: SearchHits a
1119 , aggregations :: Maybe AggregationResults } deriving (Eq, Show)
1119 , aggregations :: Maybe AggregationResults } deriving (Eq, Show)
1120
1120
1121−type Score = Double
1121+type Score = Maybe Double
1122
1122
1123data SearchHits a =
1123data SearchHits a =
1124 SearchHits { hitsTotal :: Int
1124 SearchHits { hitsTotal :: Int