Illegal_argument_exception on empty index

Hi,
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.

Thanks!

Please stop providing screenshots in favor of code snippets. They are hard to read for everyone and impossible to read for some. Thank you!

That said, the snippet you provided does not contain a delete but an index operation es_index in the screenshot, so it seems you are maybe doing something different than you intend to do.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.