【发布时间】:2020-11-16 11:22:50
【问题描述】:
当我在 Firefox RESTClient 中调用弹性搜索服务时,似乎没有发送正文,它返回弹性搜索中的所有文档:
但是当我复制 RESTClient 本身创建的 curl 命令并在 bash shell 中执行它时,响应就可以了,它返回了请求的文档。
HTTP/1.1 200 OK
Warning: 299 Elasticsearch-7.8.0-757314695644ea9a1dc2fecd26d1a43856725e65 "[types removal] Specifying types in search requests is deprecated."
content-type: application/json; charset=UTF-8
content-length: 446
{"took":11,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":2,"relation":"eq"},"max_score":0.6931471,"hits":[{"_index":"myindex","_type":"employee","_id":"yNPLjnMBdY381Mciyqch","_score":0.6931471,"_source":{
"name": "ehsan",
"value": 5
}},{"_index":"myindex","_type":"employee","_id":"ydPLjnMBdY381Mci96ee","_score":0.6931471,"_source":{
"name": "ehsan",
"value": 10
}}]}}
这里有什么问题?
【问题讨论】:
标签: elasticsearch firefox