sudo-suhas/elastic-builder

track_total_hits not implemented

lostpebble opened this issue · 2 comments

https://www.elastic.co/guide/en/elasticsearch/reference/7.3/search-request-body.html#request-body-search-track-total-hits

There is a new ability to disable the tracking of total hits when running search. This improves performance loads in certain situations.

I have noticed that I'm not able to set this when using elastic-builder and creating a request body search.

I'll take a look at this tomorrow. Most probably this was a feature added in a recent release of elasticsearch. I'll also try to add support for it in this week. A pull request for the same would be more than welcome.

@sudo-suhas made a pull request and tested out in my project - all seems to be working as expected.