Geopoint Help


I am trying to create some dummy data. I want to add a geopoint using the dev tools but I am struggling.

I am using the below api:

PUT my_index/_doc/1
  "text": "Geo-point as an object",
  "location": { 
    "lat": 41.12,
    "lon": -71.34

and i get two numeric values with the lat and lon co-ordinates but there is no geopoint....

am I missing something?!?

Thanks in advance,

Hi @AmyMCollins

Yup missing the mapping which defines the geo_point type.:slight_smile:

Look at the example here

You need to create a mapping first.. then add the doc.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.