For ElasticSearch Structure , I forked "https://github.com/doganalak/ElasticProject" project as an example. Then, I added this project to custom Data-Source and Custom Filtering options.
This is a simple ElasticSearch project that working for filtering cities by custom parameters.
For adding city list u can use this API Project :