jillesvangurp / kt-search

Multi platform kotlin client for Elasticsearch & Opensearch with easily extendable Kotlin DSLs for queries, mappings, bulk, and more.
MIT License
95 stars 23 forks source link

adds key_as_string for boolean aggregation result. #138

Closed AnyRoad closed 1 month ago

AnyRoad commented 1 month ago

From "Boolean field type" docs: Aggregations like the terms aggregation use 1 and 0 for the key, and the strings "true" and "false" for the key_as_string.

https://www.elastic.co/guide/en/elasticsearch/reference/current/boolean.html

Sorry for many PRs at once 🙏 we recently started to use the library actively and have found out few parts which can be improved.

jillesvangurp commented 1 month ago

Thanks!