Closed zhongshuiping closed 4 years ago
The error indicates that you're using a combination of Elasticsearch 6 and elastic v7 or vice versa. The reason for this error is that ES 7.x changed the response structure to return the total hits.
See e.g. https://github.com/olivere/elastic/issues/1007 for a detailed discussion.
Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[ 1] elastic.v6 (for Elasticsearch 6.x)
Please describe the expected behavior
Please describe the actual behavior
Why do I always report errors when I run?
Any steps to reproduce the behavior?