我正在尝试使用elasticsearch批量api将多条记录插入到一个索引中。我的JSON看起来像这样:request json 我在文档的末尾插入了一个新行(\\n),但是我仍然得到了newline error。illegal_argument_exception",
"reason": "The bulk request must be terminated by a newlinetype":
我想在JavaScript中使用Elasticsearch大容量索引,并遵循。基本上,我只是按原样使用它,但它抛出一个异常,即批量请求必须由换行符终止,这似乎是JSON行。我的问题是,如果是这样,我如何将JSON转换成JSON行,然后将其传递给bulk API?还是我在调用client.bulk时遗漏了一些选项?illegal_argument_exception: [illegal_argument_exception] Reason: The bulk request must be terminated by a <
我目前正在使用Apache JMeter工具对Elasticsearch进行基准测试。我正在使用Elasticsearch的批量API将文档张贴到我的索引中并测量结果。我看到我可以使用CSV Data Set Config Config元素,在这里我可以将HTTP请求的正文数据放在CSV文件中。基本上,批量API需要一个接一个地编写元素:
{"index":{"_id":"1"
我正在尝试提高针对ElasticSearch进行测试的套件的性能。 测试需要很长时间,因为Elasticsearch不会在更新后立即更新它的索引。例如,下面的代码运行时不会引发断言错误。from elasticsearch import Elasticsearch
# Asumming that this# results are not populated 目前针对