We're preparing to upgrade to ES 7.x and are considering the type removal.
We've reviewed the suggestions in Removal of mapping types.
Since the 1.x days, we haven't had multiple types in any of our indexes.
We do, however, search many indexes at once. So, currently, we use
_type as a dictionary key to look up the appropriate model in which to deserialize each result. The suggested approach for 7.x is to add a type field to each document. I don't love that approach in that it's inclusion is merely "by convention" and adds yet another field to my documents.
What I'd like to know is why the indexes alias can't be returned instead of, or in addition to, the physical index name? We do name our physical indexes "by convention" which I could use as some sort of "starts with" check to do my deserialization model lookup but, again, that's by convention.
Is this something I should raise as an issue w/ Elastic? Perhaps in ES 8 we could get the alias returned. Other suggestions as to other ways to address?
Raised as an issue in the elastic project.