ElasticSearch
ElasticSearch max_result_window 설정
파워킴
2020. 11. 10. 16:52
반응형
# ElasticSearch 의 조회 기존 size가 10000 이다.
이보다 큰 사이즈를 가져 올때에는 Elasticsearch 에서 처리를 못하고 이후의 데이터를 조회 하지 못한다.
[ 오류 메시지 ]
Caused by: QueryPhaseExecutionException[Batch size is too large, size must be less than or equal to: [30] but was [1000]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting.] .......
[ 원인 ]
결과 조회값 설정이 안된 경우.
curl -XPUT "http://localhost:9200/menu_prd/_settings" -d '{
"index" : {
"max_result_window" : 500000
}
}'
반응형