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 {