How to compare fields of two indexed document under one index with any parent child relationship between the documents?
I wan to compare fields (userid, username) of doc1 from fields(dummyuserid, dummyusername) from doc2.
Doc1 and doc2 are indexed under my_index.