meilisearch / meilisearch-java

Java client for Meilisearch

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SearchResult is missing totalPages field

matthiasmoke opened this issue · comments

Description
Hi, it seems that the SearchResult class does not contain the totalPages of the Meilisearch search result
At least I could not find it anywhere 😅
We would need this field in order to display the total pages in our frontend.

Expected state
The totalPages can be retrieved via a getter on the SearchResult

Current state
Means to retrieve the totalPages are not present, neither on the SearchResult class nor on the Searchable interface.

Environment (please complete the following information):

  • Meilisearch version: 1.2
  • meilisearch-java version: 0.11.5

Hello @matthiasmoke

thanks for the report

Any contribution is welcomed ❤️

Update from my side. I found it after all 😄
It's contained in the SearchResultPaginated type. Will close the issue