I have a simple repository
@Repository
public interface SurgeryIndexRepository extends ElasticsearchRepository<SurgeryIndexEntity, UUID> {}
When I call the search
method like this surgeryIndexRepository.search(query, pageable)
I get a Page response with totalPages = 1
, numberOfElements=40
, totalElements=7200
.
Something is wrong with the totalPages
, I should have 180
.
My Pageable
is Page request [number: 0, size 40, sort: date: DESC]
I'm using Maven: org.springframework.data:spring-data-elasticsearch:3.0.6.RELEASE