Skip to content

Instantly share code, notes, and snippets.

@danielef
Created September 30, 2019 03:10
Show Gist options
  • Save danielef/e806f236381123d1277a6eaff4297963 to your computer and use it in GitHub Desktop.
Save danielef/e806f236381123d1277a6eaff4297963 to your computer and use it in GitHub Desktop.
Elastic / Add field mapping
curl -XPUT -H 'Content-Type: application/json' http://localhost:9201/foo/_mapping -d '
{
"properties": {
"position":{"type":"geo_point"}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment