Interesting ES: Solve the problem of limiting the number of results returned by es

  1. es returns a maximum of 10000 results
    1.1 Set the maximum result window globally
PUT _all/_settings
{
	"index.max_result_window": 1000000
}
1.2 查询结果设置最大抓取量
POST index/_search
{
	"track_total_hits": true,
	"query": {
		...
	}
}
  1. es_sql returns a maximum of 1000 results
    POST _sql/?format=json/txt/cbor/csv/tsv
    { “query”: “select * from test”, “fetch_size”: “100000” }


Guess you like

Origin blog.csdn.net/q18729096963/article/details/109290903