for future users: 'key' is promised to appear first in this case because "List results are always returned in UTF-8 binary order." [https://docs.aws.amazon.com/AmazonS3/latest/dev/ListingKeysUsingAPIs.html] so exact match will always be higher than a match as only a prefix for the search term
Imagine you have thousands of other objects like 'keya', 'keyb', 'keyc' that are also returned when you list for prefix 'key'.... are you guaranteed that the object 'key' you are searching for will come on the first request, and that you don't need to paginate through?
Comment
for future users:
'key' is promised to appear first in this case because "List results are always returned in UTF-8 binary order." [https://docs.aws.amazon.com/AmazonS3/latest/dev/ListingKeysUsingAPIs.html]
so exact match will always be higher than a match as only a prefix for the search term
Parent comment
Imagine you have thousands of other objects like 'keya', 'keyb', 'keyc' that are also returned when you list for prefix 'key'.... are you guaranteed that the object 'key' you are searching for will come on the first request, and that you don't need to paginate through?