Somehow a type mapping for my index automatically changed from geo_point to float properties representing lat, lon. Using ES 6. No reindex operation was performed, but the type somehow got changed. Is there any way to prevent this and determine how it happened?
Most likely when you reindexed in a new index, you did not provide the mapping so elasticsearch applied the default dynamic templates.
You need first to create the index with the proper mapping before running reindex.
Thank you, but I didn't create new index or reindex. The index was created months ago with the proper mapping for geo_point. The geo_point was certainly defined and working for geo distance queries that are run thousands of times per day. The only thing unusual was high CPU and JVM memory pressure around the time that the mapping changed.
Oh, I read it wrong.
The index was created months ago with the proper mapping for geo_point.
Then a mapping can not change normally.
Not sure what happened then.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.