I'm trying to index some files to a new and empty index called 'envri' but on the first file I'm getting 'illegal_argument_exception' , 'mapper [spatialCoverage] cannot be changed from type [long] to [float]. I understand what the error means but I can't see why it is raised. All data was deleted with DELETE _all and after checking the mapping with GET envri/_mapping it clearly shows an empty mapping. There is the same issue when indexing the same files to a new (and therefore completely empty) index with a different name . It runs fine on one system but gives this error on the other.
I'm using the Elasticsearch Python library.