Elasticsearch:如何在嗾使時得到精確的總hits數

從Elasticsearch 7.0之後,爲了提高搜索的性能,在hits字段中返回的文檔數有時不是最精確的數值。Elasticsearch限制了最多的數值爲10000。 當文檔的數值大於10000時,返回的total數值爲10000,並在relation中指出gte。   我們可以做如下的一個實驗。啓動Kibana: 然後選中「Add data」: 這樣我們就把Sample flight data
相關文章
相關標籤/搜索