i have two fields ,and i want to show them on the Coordinate Map. i remeber someone said that we can't change the field type ,unless changing the index .
those are my two fields ,
"lonlat1" => {
"lat" => "20",
"lon" => "30"
},
"lonlat2" => [
[0] "100",
[1] "10"
],
my index is "pretest*"
yesterday ,they just are struct or array. today,for changing their type to geo_point, i config a template ,and template's name is "pretest*"
"lonlat1": {
"type": "geo_point"
},
"lonlat2": {
"type": "geo_point"
},
and i haven't change the index name ,
and then i found the lonlat1's type has changed to geo_point, but the lonlat2 is conflict ,and i check the past data ,the lonlat1‘s type is geo_point, and lonlat2 is conflict.
why? why the lonlat1 could change ,but lonlat2 couldn't?
and some one said that if i want to change my field ,i should change change my index ,but i haven't change my index ,the lonlat1'type has been changed to geo_point successfully. who to explain it ?
sorry my english is not good , but the question has puzzled me long time ,thank you!!
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.