[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

相关推荐
CNRio6 小时前
Day 51:Git的高级技巧:使用Git的reflog恢复丢失的提交
大数据·git·elasticsearch
fredricen6 小时前
Openwrt21.02实现文件列表展示并下载文件
lua·openwrt
oMcLin6 小时前
如何在 Ubuntu 22.04 服务器上搭建并优化 Elasticsearch 集群,支持实时日志分析
服务器·ubuntu·elasticsearch
阿猿收手吧!6 小时前
【Elasticsearch】Elasticsearch:高性能分布式搜索与分析引擎
大数据·分布式·elasticsearch
Albert Edison1 天前
【Git】分支管理
大数据·git·elasticsearch
愤怒的苹果ext1 天前
Flink CDC MySQL同步到Elasticsearch
mysql·elasticsearch·flink·cdc·同步数据
CNRio1 天前
Day 43:Git的高级技巧:使用Git的rebase简化提交历史
大数据·git·elasticsearch
何中应1 天前
ES可视化连接工具的使用
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客1 天前
Elasticsearch:在 Streams 中使用 ML 自动化 log 解析
大数据·运维·elk·elasticsearch·搜索引擎·自动化·全文检索
oMcLin1 天前
如何在Debian 11服务器上部署并优化高性能Elasticsearch集群,处理PB级数据?
服务器·elasticsearch·debian