jillesvangurp / kt-search

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

adds key_as_string for boolean aggregation result. #138

Closed AnyRoad closed 6 months ago

AnyRoad commented 6 months 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 6 months ago

Thanks!