magento2: Search REST API returns wrong total_count
Preconditions
- Magento 2.2.2
Steps to reproduce
- Make a request to endpoint
GET /V1/search
and providesearchCriteria[pageSize]
. - Repeat the previous point with
searchCiteria[currentPage]
= 2
Expected result
- You will get a response with number of items equals
searchCriteria[pageSize]
in the first time - You will get a response with number of items <=
searchCriteria[pageSize]
in the second time - 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)
@mohamed-karam , thank you for your report . We’ve acknowledged the issue and added to our backlog.