[elasticsearch]使用postman来查询数据

最近需要debug程序,debug的时候需要查找elasticsearch里面的数据是否正确。

第一步建立一个post请求,并按照图下的方式填上ur和参数:

发送post请求,url为:

复制代码
http://ip:port/index_name/_search

我这里查询的是title字段。

复制代码
{
   "query":{
      "query_string":{
         "query":"基于半监督学习的客户流失预测......",
         "fields": ["title" ]
      }
   }
}

如果需要用户名和密码,需要这样填写:

填写用户名和密码:

然后点击send就可以获取数据啦。

参考文献

elasticsearch_search_apis.htm

使用postman访问带密码的elastic

相关推荐
努力努力再努力wz18 小时前
【Lua进阶系列】Lua 调试机制详解:从虚拟机调用栈、错误传播到 debug 库
junit·单元测试·lua
Elasticsearch21 小时前
对 OpenTelemetry Kafka 接收器的两项改动,避免一个缓慢的租户拖住其他租户
elasticsearch
全栈陈序员2 天前
Git】从入门到精通(八)—— git log:查看提交历史
大数据·git·elasticsearch
Percep_gan2 天前
Linux中安装gitea,很详细
linux·elasticsearch·gitea
光谱SpectrAI3 天前
打开 Postman 会改 Codex?Windows 上 4 处都没有
postman
木棉软糖3 天前
5 步确认 TiDB 历史抽数的 Logstash 有没有真的写进 ES
elasticsearch·oracle·tidb
炸薯条!3 天前
博客系统测试报告
开发语言·lua
yz_aiks3 天前
Postman 自动给 Claude Code、Codex、Cursor 装插件怎么查和卸载:本机实测 5 处痕迹(Postman 12.34)
安全·postman·ai编程·开发工具·claude code
全栈陈序员3 天前
【Git】从入门到精通(十一)—— git reset 三种模式详解
git·elasticsearch
Elasticsearch3 天前
Elasticsearch:稠密向量字段类型
elasticsearch