且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

弹性搜索批量索引超时错误!错误:3000ms后请求超时

更新时间:2023-01-03 12:39:09

只需将requestTimeout放入您的配置。

Just put the requestTimeout to your config.

例如:

new elasticsearch.Client({host:"localhost", requestTimeout : Infinity});

您可以将 Infinity 替换为您所需的限制在'ms'。

You can replace Infinity by your desired limit in 'ms' .