Modify Index name in Response

Hello!!
I have made some changes to the codebase to modify the index name for certain types of requests. However, I don't want the user to know about any such changes that I have made. So, I want to modify the index name before the response is sent back to the user.
For example, suppose i have made the following modification to the index name bank provided by the user - <prefix_string>_bank. In this case, a response will contain

_index: <prefix_string>_bank

but I want it to still show

_index: bank

How can this be done?

I do not think tehre is anything in Elasticsearch that allows you to do that so you probably need to do that translation in your application.

Christian is correct, you need to handle this in your own code.