Multi platform kotlin client for Elasticsearch & Opensearch
KT Search Manual | Previous: Creating Data Streams | Next: Extending the Json DSLs |
Github | © Jilles van Gurp |
Migrating from the old es-kotlin-client is quite easy but it is going to involve a bit of work:
RestHighLevelClient
is no longer used, the kotlin APIs have changed. And that of course includes model classes for API responses that can no longer rely or depend on the old Java classes that came with the java client.suspend
functions close to 100 api end points in the RestHighLevelClient
, Kt Search only includes a handful of APIs for indexing, document crud, and of course searching. We have no intention to support the REST API in its entirety at this point. It’s easy to support more of the REST API yourself using the RestClient
.kt-search
are suspend only. Supporting blocking IO is not a priority and this gets rid of a lot of code duplication.KT Search Manual | Previous: Creating Data Streams | Next: Extending the Json DSLs |
Github | © Jilles van Gurp |