遇见的问题:
Failed to execute phase [query], all shards failed; shardFailures {[eo918sbJQ8-luXJZR5LyVQ]
[todayonduty][0]: RemoteTransportException[[node-1][192.168.10.113:9300]
[indices:data/read/search[phase/query]]]; nested: IllegalArgumentException[Inner result window
is too large, the inner hit definition's [null]'s from + size must be less than or equal to: [100] but
was [1000]. This limit can be set by changing the [index.max_inner_result_window] index level
setting.]; }{[eo918sbJQ8-luXJZR5LyVQ][todayonduty][1]: RemoteTransportException[[node-1]
[192.168.10.113:9300][indices:data/read/search[phase/query]]]; nested:
IllegalArgumentException[Inner result window is too large, the inner hit definition's [null]'s from +
size must be less than or equal to: [100] but was [1000]. This limit can be set by changing the
[index.max_inner_result_window] index level setting.]; }{[eo918sbJQ8-luXJZR5LyVQ]
[todayonduty][2]: RemoteTransportException[[node-1][192.168.10.113:9300]
[indices:data/read/search[phase/query]]]; nested: IllegalArgumentException[Inner result window
is too large, the inner hit definition's [null]'s from + size must be less than or equal to: [100] but
was [1000]. This limit can be set by changing the [index.max_inner_result_window] index level
setting.]; }{[eo918sbJQ8-luXJZR5LyVQ][todayonduty][3]: RemoteTransportException[[node-1]
[192.168.10.113:9300][indices:data/read/search[phase/query]]]; nested:
IllegalArgumentException[Inner result window is too large, the inner hit definition's [null]'s from +
size must be less than or equal to: [100] but was [1000]. This limit can be set by changing the
[index.max_inner_result_window] index level setting.]; }{[eo918sbJQ8-luXJZR5LyVQ]
[todayonduty][4]: RemoteTransportException[[node-1][192.168.10.113:9300][indices:data/read/search[phase/query]]]; nested: IllegalArgumentException[Inner result window
is too large, the inner hit definition's [null]'s from + size must be less than or equal to: [100] but
was [1000]. This limit can be set by changing the [index.max_inner_result_window] index level
setting.]; }文章来源:https://www.toymoban.com/news/detail-404032.html
解决办法:文章来源地址https://www.toymoban.com/news/detail-404032.html
PUT */_settings?preserve_existing=true
{
"max_result_window": "2000000000"
}
#查询子嵌套结果扩容
PUT */_settings?preserve_existing=true
{
"max_inner_result_window": "2000000000"
}
到了这里,关于elasticsearch 数据库扩容的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!