Skip to content

Commit

Permalink
fix: hits.total is float64 in 6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jan 18, 2021
1 parent 44cf579 commit cfa07cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func search(indexName string, query map[string]interface{}) (SearchResult, error

log.WithFields(log.Fields{
"status": res.Status(),
"hits": int(result["hits"].(map[string]interface{})["total"].(map[string]interface{})["value"].(float64)),
"hits": int(result["hits"].(map[string]interface{})["total"].(float64)),
"took": int(result["took"].(float64)),
}).Debug("Response information")

Expand Down

0 comments on commit cfa07cb

Please sign in to comment.