LisaHJung / Part-4-Running-Aggregations-with-Elasticsearch-and-Kibana

75 stars 55 forks source link

Perhaps do the reindex async? #3

Open sandipb opened 3 years ago

sandipb commented 3 years ago

The reindex operation to change the mapping was timing out. Perhaps we can ask the trainee to do it async? I had to do this to make it work.

Start the import in the background.

POST _reindex?wait_for_completion=false
{
  "source": {
    "index": "imported_ecommerce_data"
  },
  "dest": {
    "index": "ecommerce_data"
  }
}

And then I keep running this from time to time till it showed as completed.

GET _tasks/ikGUJ5jGSbqZeetWtFFEjg:98339
nathanbegbie commented 2 years ago

Thanks @sandipb! I had the same issue and this resolved it :)

mehrezbey commented 3 weeks ago

Thank you @sandipb