Is there a reason why using the index API like this does not convert data?

Hello

If I create a new index from scratch and make the mapping, it understands the data, so the data isnt the issue.

But if I do something like this:

POST _reindex
{
  "source": {
"index": "myindex-2021.03.21"
  },
  "dest": {
"index": "myindex-2021.03.21-temp"
  }
}


DELETE /myindex-2021.03.21


PUT /myindex-2021.03.21
{
  "mappings": {
"properties": {
  "geoip": {
    "properties": {
      "location": { "type": "geo_point" }
    }
  }
}
  }
}

POST _reindex
{
  "source": {
"index": "myindex-2021.03.21-temp"
  },
  "dest": {
"index": "myindex-2021.03.21"
  }
}

DELETE /myindex-2021.03.21-temp

It doesnt work

What does mean "it does not work"?

Any error message? Any chance we can reproduce?

1 Like

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