我是一个新手,并在此处遵循AWS示例:https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-gsg-upload-data.html构建我的第一个Elasticsearch应用程序。
我正在使用Postman进行curl命令POST,以追加新文档和索引,如下所示。但是,似乎该语法在Postman中高亮显示不正确,因此请查看是否支持更正,谢谢!
最佳答案
如果要发布到_bulk
URL,则第1到6行应该在一行上,没有换行符。第7行和第8行相同。您需要在末尾添加一个换行符。像这样:
{ "index": {"_index": "movies", "_type": "movie", "_id": "2" }}
{ "director": "...", ...} + add a new line at the end of this line
关于json - Postman中Elasticsearch的不正确curl语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51605109/