简体   繁体   中英

What is the sort order of returned results for search.get_indexes() in google app engine?

I am using the search.get_indexes() function as documented here , to get the list of search indexes that I have stored. From a few test cases, it seems that the returned list is sorted alphabetically on the Index name. Is it known or documented that this behaviour is guaranteed? I might have missed something, but I couldn't find it explicitly mentioned in the docs. Thanks in advance.

If the sort order is not specified in the documentation, it is not guaranteed, and the implementation may change going forward. I suggest that you sort them in your code - the performance penalty is negligible, especially if the indexes are already sorted using the same criteria that you apply.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM