From f4c0bfd25ba9d9d7e959e0cb89e20cb22c563dfe Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 17 Jan 2023 14:32:30 +0100 Subject: [PATCH] fix(search) hits in search response are now marshalled as 'hits' (#709) --- algolia/search/responses_search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algolia/search/responses_search.go b/algolia/search/responses_search.go index f1ebf723e..c2e3ecc0c 100644 --- a/algolia/search/responses_search.go +++ b/algolia/search/responses_search.go @@ -17,7 +17,7 @@ type QueryRes struct { Extensions map[string]map[string]interface{} `json:"extensions"` Facets map[string]map[string]int `json:"facets"` FacetsStats map[string]FacetStat `json:"facets_stats"` - Hits []map[string]interface{} `json:"Hits"` + Hits []map[string]interface{} `json:"hits"` HitsPerPage int `json:"hitsPerPage"` Index string `json:"index"` IndexUsed string `json:"indexUsed"`