It says geo_point accept different format. Ex: these two are supported
"location" : "41.12,-71.34"
"location" : {
"lat" : 41.12,
"lon" : -71.34
}
I want to ask if these two are the same?
I'm using ES 0.17.6 and having this problem:
When I index using the (1) format, I can't search with (2) format. If
I use (1) again, it is successful.
How I index:
curl -XPUT 'http://localhost:9200/twitter/pin/1' -d '
{
"pin" : {
"location" : {
lat: 41.12,
lon: -71.34
},
"tag" : ["food", "family"],
"text" : "my favorite family restaurant"
}
}'
It says geo_point accept different format. Ex: these two are supported
"location" : "41.12,-71.34"
"location" : {
"lat" : 41.12,
"lon" : -71.34
}
I want to ask if these two are the same?
I'm using ES 0.17.6 and having this problem:
When I index using the (1) format, I can't search with (2) format. If
I use (1) again, it is successful.
How I index:
curl -XPUT 'http://localhost:9200/twitter/pin/1' -d '
{
"pin" : {
"location" : {
lat: 41.12,
lon: -71.34
},
"tag" : ["food", "family"],
"text" : "my favorite family restaurant"
}
}'
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.