jillesvangurp / kt-search

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

[FEAT] Add support for _count endpoint #33

Closed friscoMad closed 1 year ago

friscoMad commented 1 year ago

Describe the enhancement

What would you like changed?

Add support for count queries: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html

Why is this needed?

This allows more complex pagination flows.

How do you think it should be done?

It seems that a count method could be implemented reusing most of the search logic and just changing the endpoint + response handling.

Will you be able to help with a pull request?

I am not planning to do the work at this point in time (if needed I may do it in the future if you don't have time).

friscoMad commented 1 year ago

Closing as duplicated by #2 🤦