Created
August 31, 2015 08:15
-
-
Save clement-tourriere/8d06a0985f859666ae53 to your computer and use it in GitHub Desktop.
Reproduce RemoteTransportException with geo_point
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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