N1QL Conditions support

Just came across this thread. Sorry for my late question.

Expanding on Manik’s reply, I want to do a query like this: “select contacts.name, child from contacts unnest contacts.children as child where child.age > 20”. Is there anyway to create a secondary index child.age? In more general terms, I am looking for ways to create index on object fields inside an array field, something similar to complex keys in MongoDB.