当前位置 博文首页 > 使用postman操作ElasticSearch的方法

    使用postman操作ElasticSearch的方法

    作者:ywl470812087 时间:2021-08-20 19:02

    Postman是一款功能强大的网页调试与发送网页HTTP请求的Chrome插件

    Postman背景介绍

    用户在开发或者调试网络程序或者是网页B/S模式的程序的时候是需要一些方法来跟踪网页请求的,用户可以使用一些网络的监视工具比如著名的Firebug等网页调试工具。今天给大家介绍的这款网页调试工具不仅可以调试简单的css、html、脚本等简单的网页基本信息,它还可以发送几乎所有类型的HTTP请求!Postman在发送网络HTTP请求方面可以说是Chrome插件类产品中的代表产品之一。

    Postman的操作环境

    postman适用于不同的操作系统,Postman Mac、Windows X32、Windows X64、Linux系统,还支持postman 浏览器扩展程序、postman chrome应用程序等。

    下面给大家介绍使用postman操作ElasticSearch的方法,具体内容如下所示:

    下载安装好postman之后  

    添加索引blog1(因为ElasticSearch是restful请求所以我们用postman发送http请求给ElasticSearch)

    {
     "mappings":{
     "article":{
      "properties":{
      "id":{
       "type":"long",
       "store":"true",
       "index":"true"
      },
      "title":{
       "type":"text",
       "store":"true",
       "index":"true",
       "analyzer":"standard"
      },
      "context":{
       "type":"text",
       "store":"true",
       "index":"true",
       "analyzer":"standard"
    

          响应成功

    jsjbwy