码迷,mamicode.com
首页 > 其他好文 > 详细

elastastic search

时间:2018-09-05 13:54:49      阅读:428      评论:0      收藏:0      [点我收藏+]

标签:ram   nts   .json   ica   curl   point   last   nbsp   get   

curl -X PUT "10.97.184.40:9200/logstash-2015.05.18" -H ‘Content-Type: application/json‘ -d‘
{
  "mappings": {
    "log": {
      "properties": {
        "geo": {
          "properties": {
            "coordinates": {
              "type": "geo_point"
            }
          }
        }
      }
    }
  }
}


curl -X PUT "10.97.184.40:9200/logstash-2015.05.19" -H ‘Content-Type: application/json‘ -d‘
{
  "mappings": {
    "log": {
      "properties": {
        "geo": {
          "properties": {
            "coordinates": {
              "type": "geo_point"
            }
          }
        }
      }
    }
  }
}

curl -X PUT "10.97.184.40:9200/logstash-2015.05.20" -H ‘Content-Type: application/json‘ -d‘
{
  "mappings": {
    "log": {
      "properties": {
        "geo": {
          "properties": {
            "coordinates": {
              "type": "geo_point"
            }
          }
        }
      }
    }
  }
}



curl -H ‘Content-Type: application/x-ndjson‘ -XPOST ‘10.97.184.40:9200/bank/account/_bulk?pretty‘ --data-binary @accounts.json
curl -H ‘Content-Type: application/x-ndjson‘ -XPOST ‘10.97.184.40:9200/shakespeare/doc/_bulk?pretty‘ --data-binary @shakespeare_6.0.json
curl -H ‘Content-Type: application/x-ndjson‘ -XPOST ‘10.97.184.40:9200/_bulk?pretty‘ --data-binary @logs.jsonl

curl -X GET "10.97.184.40:9200/_cat/indices?v"


elastastic search

标签:ram   nts   .json   ica   curl   point   last   nbsp   get   

原文地址:https://www.cnblogs.com/mhc-fly/p/9591541.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!