我们有很多记录要在Elasticsearch中建立索引。对于POC,我们正在运行本地Elasticsearch集群,例如localhost:9200
。
我们在config/elasticsearch.yml
中启用了集群压缩支持,但添加了http.compression: true
当记录大小增加时,Elasticsearch会引发错误
"statusCode":413,"response":"{\"Message\":\"Request size exceeded 10485760 bytes\"}
是否可以通过gzip压缩在_bulk
查询中发送的数据?仅在node.js
中寻找解决方案。
Elasticsearch.js
目前不支持。我logged an issue和他们在一起。