title: How to put mapping in json files with Elasticsearch
body: <p>i have a lot of JSON documents with this structure :</p>
  
  <pre><code>"positions": [
      {
        "millis": 12959023,
        "lat": 49.01525113731623,
        "lon": 2.4971945118159056,
        "rawX": -3754,
        "rawY": 605,
        "rawVx": 0,
        "rawVy": 0,
        "speed": 9.801029291617944,
        "accel": 0.09442740907572084,
        "grounded": true
      },
      {
        "millis": 12959914,
        "lat": 49.01536940596998,
        "lon": 2.4967825412750244,
        "rawX": -3784,
        "rawY": 619,
        "rawVx": -15,
        "rawVy": 7,
        "speed": 10.841861737855924,
        "accel": -0.09534648619563282,
        "grounded": true
      }
  ...
  }
  </code></pre>
  
  <p>i'm trying to map this JSON document with Elasticsearch by introducing a geo_point field to get document like the one below :</p>
  
  <pre><code>"positions": [
          {
            "millis": 12959023,
            "location" : {
                "lat": 49.01525113731623,
                "lon": 2.4971945118159056,
             }          
            "rawX": -3754,
            "rawY": 605,
            "rawVx": 0,
            "rawVy": 0,
            "speed": 9.801029291617944,
            "accel": 0.09442740907572084,
            "grounded": true
          },
      ...
      }
  </code></pre>
  
  <p>PS : these documents are offered by an API.</p>
  
  <p>Thanks</p>