Hi,
  I have an index with data that looks like this:
          {
               "id":"52534",
               "name":"foo",
               "location":{  
                  "lat":39.18552295869955,
                  "lon":-104.34581946342342
               }
            }

I'm attempting to make a mapping for the lat/lon field so I can do 
geospatial filters. However I get a weird error when attempting to make the 
mapping:

PUT http://localhost:9200/foos/foo/_mapping
{
"mappings":
{
    "location" : {
        "properties" : {
            "location" : {
                "type" : "geo_point"
            }
        }
    }
}
}

which results in 
{
error: "MapperParsingException[Root type mapping not empty after parsing! 
Remaining fields: [mappings : 
{location={properties={location={type=geo_point}}}}]]"
status: 400
}

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7c512fd7-cb46-4737-8e87-d8381c9035ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to