Ahmed
11/13/2024, 2:09 PMjson
serialization/de-serialization and one of my usecase requires me to POST
nd-json
format (multi-query search on elastic search). Any hint or idea on how I can achieve the behaviour?Daniel Pitts
11/14/2024, 5:43 PMDaniel Pitts
11/14/2024, 5:43 PMAhmed
11/14/2024, 7:29 PMDaniel Pitts
11/14/2024, 8:28 PMAhmed
11/20/2024, 9:23 AMsource
query param. The passed param conforms to application/x-ndjson
. The workaround is
List<JsonObject>.joinToString("\n", suffix = "\n", transform = { jsonObject -> jsonObject.toString() })
This yields the string as
{ "index": "…"}
{ /* query or aggs */ }
{ "index": "…"}
{ /* query or aggs */ }
Definitely not ideal, but works ..