As a part of the learning strategy was trying to build an API in Kotlin that interacts with ElasticSearch. Found a library for this purpose
https://github.com/jillesvangurp/es-kotlin-wrapper-client
It connected to my dev server with no issues. Also, there’s a good manual and a demo project called “Recipe Search Engine” built on top of Ktor framework