Added secondary indexes on linked documents