Want to introduce our experimental library for bui...
# feed
a
Want to introduce our experimental library for building search queries to Elasticsearch: https://github.com/anti-social/elasticmagic-kt Some documentation: https://anti-social.github.io/elasticmagic-kt/ Feel free to ask questions and suggest ideas
K 6
j
Very interesting. I maintain the https://github.com/jillesvangurp/es-kotlin-client and I've actually been thinking of creating a multiplatform client as well lately. My current client piggybacks on the Java client. But with opensearch emerging as a standalone fork that isn't compatible with the ES Java client, it is tempting to invest in multiplatform. Especially now ktor native servers are also becoming a thing. Plus having a client ready to go for kotlin-js and wasm would be nice too. Looks like we have similar ideas about providing nice DSLs but slightly different approaches. I try to stay close to the json DSL by essentially mirroring that with Kotlin type safe constructs. I rely a lot on interface delegation to Map objects for this.
a
I've seen your project before started my own. And its true I had slightly different vision on the Elasticsearch query API. I originally didn't want to use Java rest client as it can be incompatible even between major versions (this is what we suffered with Python client).
My company has a monolithic web-application that heavily uses Elasticsearch. And we made a decision to separate search functionality into a microservice. I insisted it should be written in Kotlin ))) As pythonistas we all really like
SQLAlchemy
so this greatly influenced our project.
👍 1
s
Just curious, is this api inspired by exposed ?
a
Mostly I was inspired by
SQLAlchemy
when wrote elasticsearch query api for Python. But yes, I looked at
exposed
too )))
👍 1