getIndexes returns indexes of other buckets

Not much else to add. The issue is with the n1ql query done in

You need to add a WHERE cluster to get the indexes of the specific bucket.

Hey @aterem,

I have opened an issue to track this bug below, I expect that it will be resolved in our next release (which is slated to be released later tonight). I apologize for any inconvenience this may have caused and sincerely appreciate you bringing this to our attention!
https://issues.couchbase.com/browse/JSCBC-396

Cheers, Brett