Transparent Handling Mixed Language Fields

I have a system working with elastic. we have some fields that may come from various sources including different languages. I need a way that once a document inserted for indexing, transparently elastic try to detect its lang and then use a specif lang analyzer for that. I don't like to change any code as well as schema creation process in the client side. I prefer a solution like re-config elastic or install a plugin. How can you help me. and what is the right way?