Description
The bucket management getIndexes method returns indexes from all buckets, not just the specific bucket that you are operating on. It also does not order the indexes in a manner such that primary indexes are given priority (which will affect deferred indexing building, causing errors).