链接elasticsearch报错,是go/elasticsearch版本的问题吗?
来源:17-10 实现前端展示页面

AlphaTan
2019-08-23
resp, err := h.client.
Search(config.ElasticIndex).
Query(elastic.NewQueryStringQuery(rewriteQueryString(q))).
From(from).
Do(context.Background())
if err != nil {
return result, err
}
模版查询,链接elasticsearch时 报错:json: cannot unmarshal number into Go struct field SearchHits.total of type elastic.TotalHits
写回答
1回答
-
012019-09-05
相似问题