From ccc790faf82719b7a279bd112e513f3a9017c7c1 Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 3 Jan 2023 11:43:47 +0100 Subject: [PATCH] fix(search) hits in search response are now marshalled as 'hits' --- 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 325824a9e..60d34e5e9 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"`