Skip to content

Instantly share code, notes, and snippets.

@clement-tourriere
Created August 31, 2015 08:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clement-tourriere/8d06a0985f859666ae53 to your computer and use it in GitHub Desktop.
Save clement-tourriere/8d06a0985f859666ae53 to your computer and use it in GitHub Desktop.
Reproduce RemoteTransportException with geo_point
DELETE test_point
PUT test_point
{
"mappings": {
"point": {
"properties": {
"point": {
"type": "geo_point"
}
}
}
}
}
# You can index multiple points
POST test_point/point
{
"point": {
"lat": 2,
"lon": 3
}
}
# Need to have at least two nodes for seeing the exception
GET test_point/point/_search
{
"fielddata_fields": ["point"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment