How to define a field when pushing the same document to multiple indexes?

Thank you, Shaoranlaos!
I really appreciate your answers.