Hey folks! Wanted to see if anybody here had tried...
# serialization
t
Hey folks! Wanted to see if anybody here had tried implementing a JsonpMapper for elasticsearch-java using kotlinx. Jackson and jsonb come out of the box, but for kotlinx I'd need to implement the interface myself. https://github.com/elastic/elasticsearch-java/blob/356bdf81732f85be80ecd91cdd69b57[…]a-client/src/main/java/co/elastic/clients/json/JsonpMapper.java Has anybody tried this and could point me to the right direction?
j
Not sure I follow what this is about. I maintain kt-search, which is my multiplatform kotlin client for Elasticsearch (and Opensearch). so would be interested in understanding what your requirements are for this and why this is needed.
t
Well there was no straightforward way to pass kotlinx json serializer to the elasticsearch transport to handle the serialization, but it would require a bit more implementing. Just wanted to see if somebody had done something like this with elasticsearch-java