结构化查询

查询文档中的所有索引:

[root@centos2 elasticsearch-5.1.2]# curl  -GET  http://192.168.220.130:9200/_search
{"took":68,"timed_out":false,"_shards":{"total":28,"successful":28,"failed":0},"hits":{"total":16,"max_score":1.0,"hits":[{"_index":"1111","_type":"settings","_id":"AV36PZCx1-SKXkmJwEg1","_score":1.0,"_source":{"index":{"number_of_replicas":2}}},{"_index":"7777","_type":"blog","_id":"123","_score":1.0,"_source":{
  
  "title": "My first blog entry",
  "text":  "Just trying this out...",
  "date":  "2014/01/01"
}},{"_index":"1111","_type":"settings","_id":"AV36PirA1-SKXkmJwEg2","_score":1.0,"_source":{"index":{"refresh_interval":"-1"}}},{"_index":"1111","_type":"settings","_id":"AV36Psi01-SKXkmJwEg3","_score":1.0,"_source":{"index":{"refresh_interval":"1"}}},{"_index":"1111","_type":"settings","_id":"AV36QH4V1-SKXkmJwEg6","_score":1.0,"_source":{"index":{"number_of_replicas":1}}},{"_index":"1111","_type":"settings","_id":"AV36QL_Q1-SKXkmJwEg7","_score":1.0,"_source":{"index":{"refresh_interval":"-1"}}},{"_index":"1111","_type":"settings","_id":"AV36QNo91-SKXkmJwEg8","_score":1.0,"_source":{"index":{"refresh_interval":"1"}}},{"_index":"documents","_type":"doc","_id":"2","_score":1.0,"_source":{ "title" : "Document No. 2" }},{"_index":"documents","_type":"doc","_id":"4","_score":1.0,"_source":{ "title" : "Document No. 4" }},{"_index":"gb","_type":"tweet","_id":"AV36KHJc1-SKXkmJwEgx","_score":1.0,"_source":{
   "gb": {
      "mappings": {
         "tweet": {
            "properties": {
               "date": {
                  "type": "date",
                  "format": "strict_date_optional_time||epoch_millis"
               },
               "name": {
                  "type": "string"
               },
               "tweet": {
                  "type": "string"
               },
               "user_id": {
                  "type": "long"
               }
            }
         }
      }
   }
}}]}}[root@centos2 elasticsearch-5.1.2]#

你可能感兴趣的:(结构化查询)