Created
March 2, 2020 11:16
-
-
Save jim-at-jibba/2abde6a562cbcc75edbbf9fdadf3f354 to your computer and use it in GitHub Desktop.
Candide Elastic Search - Add come data
This file contains hidden or 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
PUT my_index/_doc/1 | |
{ | |
"text": "Geo-point as an object", | |
"location": { | |
"lat": 41.12, | |
"lon": -71.34 | |
} | |
} | |
PUT my_index/_doc/2 | |
{ | |
"text": "Geo-point as a string", | |
"location": "41.12,-71.34" | |
} | |
PUT my_index/_doc/3 | |
{ | |
"text": "Geo-point as a geohash", | |
"location": "drm3btev3e86" | |
} | |
PUT my_index/_doc/4 | |
{ | |
"text": "Geo-point as an array", | |
"location": [ -71.34, 41.12 ] | |
} | |
PUT my_index/_doc/5 | |
{ | |
"text": "Geo-point as a WKT POINT primitive", | |
"location" : "POINT (-71.34 41.12)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment