Geo Point configuration


(Mohsen Haghaieghshenasfard) #1

Hi, I want to upload a CSV file into Elasticsearch which has been attached.

dataset

The config file is:

However, nothing is uploaded with no error.

Would you please guide me?


(Mark Walkom) #2

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.


(Mohsen Haghaieghshenasfard) #3

I found the solution. In fact, I had to add the following template to the Elasticsearch via Kibana's Dev Tools section.

PUT _template/geo_template
{
"template": "XXXX",
"mappings": {
"logs" : {
"properties" : {
"location" : {
"type" : "geo_point"
}
}
}
}
}
where "XXXX" is the name of index in the config file.

There is also no need to the line No. 17 and it should be deleted.


(Mark Walkom) #4

Yeah, Elasticsearch doesn't automap geo stuff natively unfortunately.


(system) #5

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