Is there any counter to elasticsearch API


Is there any way to create any API that could provide me an option against elasticsearch open source search engine. Actually, I have availed a hosting namely elasticsearch cloud hosting, it was their default option. But now, I have some issues with it’s security. I think it is providing a loop hole for some stupid hacker to crack into my site. So, I am looking for the solution to this problem. So, is their anything RAML can do to solve my problem.