Property totalHits always 0


I am using Elastic client in our Springboot API (client version 6.5.4).
My application is using 2 different indexes, one is on version 6, the second on version 7.
For the version 6, everything is working fine, for the version 7, the issue is that the totalHits number is always 0.
I read the issue described here: property totalHits is al, and the solution provided is to upgrade the client version to 7. I tried and it is working fine.
Unfortunatly it is not backward compatible, so the index on version 6 is not working anymore.

How is it possible to have both versions working in the same API?

Thanks a lot

I reply, if you have the same issue, you only have to upgrade to version 6.8.3 (fix provided!).

Features/Java High Level REST Client

  • Add rest_total_hits_as_int in HLRC’s search requests #46076 (issue: #43925)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.