Interface from web page to Elastic

Using a WordPress site and trying to get data from elasticsearch.

We have been testing several plug-ins,libraries and none of them works ,all index data on MySQL to elastic, but when making a search no data is returned.

What is the simples way to interface from an html page(say this is the most common and general case) to elasticsearch and get some results on it.

Any example?