Google Drive SDK - Sort results when requesting a large number of documents

Until it was a few weeks, when using a full text query based on the Drive SDK, the results were returned by default "last modified", but now the results are returned sorted by relevance, and this has a big impact on an application that queries a very large number files (so client-side sorting is not an option).

I don't see any seams to find any documentation regarding parameter sorting, so can anyone help me with that? Are there any sorting options not listed in the docs? Is there a workaround for this? (before Drive SDK, I used the document list API with documented collation)

Also, I've noticed that the developers have been requesting this since mid 2012 and what can we do? Please google tell us if we need to stop using the Drive SDK and switch to a different platform / api.

+3


source to share


1 answer


You are correct, the older version of the Google Documents APIs v2 allowed order by

as one of the default requests parameters .

The current REST API driver (which is similar to the file from google drive) files.list does not have this option for standard query parameters .



You will need to sort it in your code after you return the results from the API

0


source







All Articles