遇见的问题:
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.]; }
解决办法:
PUT */_settings?preserve_existing=true
{
"max_result_window": "2000000000"
}
#查询子嵌套结果扩容
PUT */_settings?preserve_existing=true
{
"max_inner_result_window": "2000000000"
}