A query builder java library for parsing web query into an elastic client Query object

I am building an elastic client Java application that users will enter a search query from the browser. I am looking for an open source Java library that can take the user inputs and parse them into an elasticsearch client Query or QueryBuilders object that I can send it to elasticsearch server. The user inputs would be something like "(site:mysite AND name:Jim) OR (filetype:pdf AND author:john)"


You don't really need something like this. A Simple Query String query will do that automatically.