问题描述
Elasticsearch 版本:7.6.2
JVM:13.0.2
操作系统版本:centeros7
这是我的代码
POST recommend_index/_update_by_query
{
"script": {
"source": "ctx._source.rec_doctor_id = 1"
},"query": {
"bool": {
"must": [{
"terms": {
"id": ["22222"]
}
}]
}
}
}
{
"error": {
"root_cause": [
{
"type": "exception","reason": "Trying to create too many scroll contexts. Must be less than or equal to: [5000]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
],"type": "search_phase_execution_exception","reason": "Partial shards failure","phase": "query","grouped": true,"Failed_shards": [
{
"shard": 1,"index": "recommend_index","node": "XXX","reason": {
"type": "exception","reason": "Trying to create too many scroll contexts. Must be less than or equal to: [5000]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
}
]
},"status": 500
}
我确定当前滚动为 0
当我用_UPDATE替换_UPDATE_BY_QUERY时,它会正常更新
ES从上周五开始就没有任何变化,突然报错
未对 ES 服务器进行任何配置更改