From ff58e61f98ed57f07b294d0cb0f7ce7672f3ddd6 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Fri, 17 Jun 2016 12:37:54 -0700 Subject: [PATCH] Lets use Float32Nullable so that we can re-enable MaxScore in Hits. Originally commented in e7e1c02. --- lib/coresearch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/coresearch.go b/lib/coresearch.go index 0d83c9c9..03e69149 100644 --- a/lib/coresearch.go +++ b/lib/coresearch.go @@ -189,9 +189,9 @@ func (s *SearchResult) String() string { } type Hits struct { - Total int `json:"total"` - // MaxScore float32 `json:"max_score"` - Hits []Hit `json:"hits"` + Total int `json:"total"` + MaxScore Float32Nullable `json:"max_score"` + Hits []Hit `json:"hits"` } func (h *Hits) Len() int {