邮递员在对Elasticsearch进行POST请求时出错

时间:2020-05-24 12:08:53

标签: elasticsearch postman

迈出Elasticsearch第一步并阅读文章 https://www.elastic.co/blog/a-practical-introduction-to-elasticsearch 我尝试在邮递员中发送请求,但出现错误:

“错误”:“ Content-Type标头[multipart / form-data; boundary = -------------------------- 039246746046020007284747]是不支持”, “状态”:406

我在邮递员中填了2个标签:
https://imgur.com/a/yCxhOJL

https://imgur.com/a/v5VXGdu

我错过了哪些选择?

谢谢!

1 个答案:

答案 0 :(得分:2)

将正文作为原始JSON发送:

enter image description here

您选择了form-data,它在ES中不受支持。这是JSON输入,JSON输出。