2016-11-26 20 views
0

中正常工作,如圖所示;這些參數,'limit','offset',意味着'from'和'size'在ElasticSearch中。我搜索730000+的結果,當我設置'限制'< 10000,我得到正確的結果,但是當我設置'限制'> = 10000時,它不能工作。我找不出原因。爲什麼這個「from」params無法在ElasticSearch

'from' < 10000 ,has result

'from' == 10000, no result

+0

這個答案應該有所幫助:http://stackoverflow.com/questions/35206409/elasticsearch-2-1-result-window-is-too-large-index-max-result-window – Val

回答

0

我所知,max_result_window默認的10000,從該+大小不能超過max_result_window。

捲曲-XPUT http://127.0.0.1:9200/my_index/_settings -d「{ 「索引」:{ 「max_result_window」:億}}

所以這個問題得到解決。