Comment From: wilkinsona

This needs to be reverted as there's a binary incompatible change to a method return type (long to Long) that breaks Spring Data Elasticsearch.

We'll pick this change up in a later milestone once there's a Spring Data 2024.1 milestone available.