查询数量过多会报:
co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/search] failed: [search_phase_execution_exception] all shards failed
解决:
java
PUT knowledge/_settings
{
"max_result_window" : 20000000
}