Any way to restrict msearch done by any client for any index

I want to restrict an msearch made by a client for a specific index in elastic search . Is there any possible approach available in elasticsearch to skip a search right away ?

You can use Shield to restrict access to the endpoint, but otherwise there isn't a way within ES itself.

Thanks for your response.What I was thinking is if I can write a plugin where I can define a rest filter and update the IndicesRequest with specific index and skip the other index.Can you please review this approach if it will be fine to achieve it