Search code examples
couchdbibm-cloudcloudantibm-watson

When retrieving documents from a cloudant database via the web interface, what order do they arrive?


I want to retrieve a large collection of documents from Cloudant via the Web interface, with no sort directive, in 200-document pages (using bookmarks). If I retrieve all of the pages, then retrieve them all again, will the documents in the two collections be in the same order?


Solution

  • for views, native UTF-8 sorting is applied to the key defined in the view function.

    for search indexes, the default sort order is by relevance with the highest scoring matches first.

    without making any changes that would impact the default sort order, subsequent retrievals should be in the same order.