Index on nested array inside a traditional array VS Index on a nested array inside object_pairs

only one array index key per index.Index selection is based on predicate. Above query must use primary index.

I would recommend read through documentation first

Array Indexing | Couchbase Docs

Check slides 43-60 https://www.slideshare.net/Couchbase/utilizing-arrays-modeling-indexing-and-querying