Elasticsearch:如何在嗾使时得到精确的总hits数

从Elasticsearch 7.0之后,为了提高搜索的性能,在hits字段中返回的文档数有时不是最精确的数值。Elasticsearch限制了最多的数值为10000。 当文档的数值大于10000时,返回的total数值为10000,并在relation中指出gte。   我们可以做如下的一个实验。启动Kibana: 然后选中“Add data”: 这样我们就把Sample flight data
相关文章
相关标签/搜索