Spring Data Elasticsearch

I'm using Elasticsearch 7.1.0 and I want to create a spring-boot application and connect with elastic search using spring data elastic search. But I have not found a solution to use query and aggregation. HELP please

I think you need to use HighLevel Rest API instead of Spring Data.
To best of my knowledge ES 6.x is the latest version that supports Spring Data so with ES 7.x you need to migrate to REST API.

Anyone that can confirm this or correct me?