magento2: Search REST API returns wrong total_count

Preconditions

  1. Magento 2.2.2

Steps to reproduce

  1. Make a request to endpoint GET /V1/search and provide searchCriteria[pageSize].
  2. Repeat the previous point with searchCiteria[currentPage] = 2

Expected result

  1. You will get a response with number of items equals searchCriteria[pageSize] in the first time
  2. You will get a response with number of items <= searchCriteria[pageSize] in the second time
  3. The total_count is the same on both requests

Actual result

The value of total_count equals searchCriteria[pageSize] not the total count of the search result items.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@mohamed-karam , thank you for your report . We’ve acknowledged the issue and added to our backlog.