How to get the index of sub-document ?KV

How to get the index of sub-document ?KV

this seem to be answered by @chvck already.