QueryAll
with sort order other than by id returns duplicate and incomplete search results.
#341
Labels
enhancement
New feature or request
I'm not sure if this is an issue or a feature request but if the query passed to
QueryUtils
applies a sort order other than byid
the search results after the first page will be incomplete and likely include duplicate results.Whilst it is hinted at in the code documentation, there is nothing that explicitly prevents a sort order being added as part of the query which then breaks the assumption here:
commercetools-sdk-java-v2/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/client/QueryAll.java
Line 160 in 615f3c4
For my use case it would be great to be able fetch all results ordered by key.
If the only supported mechanism in the library for querying all entities is when ordered by id it would be great to have that as part of the function name to make it explicit.
The text was updated successfully, but these errors were encountered: