ECMS-3920: Pagination information is wrong in the search results

Fix description: adapt startIndex result with the number of pages