[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

相关推荐
Elasticsearch2 小时前
在 Elasticsearch 中改进 Agentic AI 工具的实验
elasticsearch
Elastic 中国社区官方博客2 小时前
在 Elasticsearch 中改进 Agentic AI 工具的实验
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索
Apifox.18 小时前
Apifox 9 月更新| AI 生成接口测试用例、在线文档调试能力全面升级、内置更多 HTTP 状态码、支持将目录转换为模块
前端·人工智能·后端·http·ai·测试用例·postman
ellis197020 小时前
LuaC API知识点汇总
unity·lua
羽_羊1 天前
Elasticsearch 之分页查询
elasticsearch·scroll·search_after
IDOlaoluo2 天前
Postman-win64-8.6.2-Setup安装教程(附详细步骤,Win64版Postman下载安装指南)
测试工具·postman
运维小菜鸟h2 天前
利用wxpython开发API接口调试工具,类似postman
测试工具·postman
深思慎考2 天前
【新版】Elasticsearch 8.15.2 完整安装流程(Linux国内镜像提速版)
java·linux·c++·elasticsearch·jenkins·框架
By北阳2 天前
Less resolver error:‘~antd/es/style/themes/index.less‘ wasn‘t found.
前端·elasticsearch·less
K_i1343 天前
GitOps实战:Helm一键部署ArgoCD
大数据·elasticsearch·搜索引擎