Elasticsearch Kotlin Client Manual
- Getting Started
- Using the IndexRepository
- Bulk Indexing made easy
- Kotlin Query DSL
- Asynchronous IO with Co-routines
- Extending and Customizing the Kotlin DSLs
- Example: Building a Recipe Search Engine
- About this manual
The official Java client provides client functionality for essentially everything exposed by their REST API. The Elasticsearch Kotlin Client makes using this functionality more Kotlin friendly.
It does this through extension functions that add many useful features and shortcuts. It adds Kotlin DSLs for querying, defining mappings, and bulk indexing. To facilitate the most common use cases, this library also provides a Repository abstraction that enables the user to interact with an index in a way that is less boilerplate heavy.
Additionally, it provides co-routine friendly versions of the asynchronous clients in the Java library. This enables the user to write fully reactive code in e.g. Ktor or Spring Boot. This makes this library the easiest way to do this currently.