Using Leaflet with Elasticsearch

Hi all, I’ve been looking for examples on how to use Elasticsearch as a data source for a Leaflet map. I understand that Kibana uses leaflet so I am hoping there some code snippets out there that I can reuse. Anyone know of any resources that I can look at?

Thanks, but I looked at that. From what I can tell it's only dealing with point feature types. I need something for all feature types.