Skip to content

xBIT geographic location data schema in elastic

bstsnail edited this page Aug 4, 2016 · 4 revisions
PUT xbit
{
  "mappings": {
    "geoData": {
       "_all": {
          "enabled": false
       },
       "_source": {
          "enabled": true
      },
      "properties": {
        "key": {
          "type": "string"
        },
        "@timestamp": {
          "type": "date",
          "format": "strict_date_optional_time||epoch_millis",
          "doc_values": true
        },
       "location": { 
          "properties": {
             "latitude": {
                "type": "double",
                "index": "no",
                "doc_values": true
              },
              "longitude": {
                  "type": "double",
                  "index": "no",
                  "doc_values": true
               },
              "altitude": {
                  "type": "double",
                  "index": "no",
                  "doc_values": true
               },
              "accuracy": {
                  "type": "double",
                  "index": "no",
                  "doc_values": true
               }
            }
         }
        
      }
    }
  }
}
  • uid: user id.
  • time: geographic location collected timestamp.
  • location: the longitude and latitude of user location. lat_lon set true means lat and lon fields will be indexed separately and can be used for searching.
  • speed: the user speed

Clone this wiki locally