Reputation: 762
Can anybody please tell me what is the correct way of mapping a geo_point in elasticsearch, i also want to index lats and longs seperately, from below two declarations which is correct
location : {"type":"geo_point", "lat_lon": "true"},
OR
location : {"type":"geo_point", "lat_lon": "true"
lat: { type:"double"},
lon: { type: "double"}
},
Upvotes: 0
Views: 130