I used elasticsearch-py to move millions of records represented by a Django model from PostgreSQL to Elasticsearch. I used the name of the model for doctype (which was in CamelCase).
I then switched to Elasticsearch DSL and noticed that by default it creates doctypes with lowercase names with underscores (snake_case).
I don't want to redefine doc_type
in my document meta, so I am to rename it in Elasticsearch. What would be the fastest way to do this?