我使用qazxsw poi作为qazxsw poi的前端服务。
我正在尝试使用fiddler 4之后的API将文档存储到索引中。
fiddler 4
这是我的样本json作为请求体:
elasticsearch
API:this方法:{ "fruit": "Apple", "size": "Large", "color": "Red" }
{ "fruit": "Apple", "size": "Large", "color": "Red" }
这是回复:
http://localhost:9200/food/fruit
正如他们在POST HTTP/1.1中所提到的,“从Elasticsearch 6.0开始,包含正文的所有REST请求也必须为该正文提供正确的内容类型。”在请求中添加解决了这个问题。
POST HTTP/1.1
doc.