I am new into lucene. Currently I am stuck in one query search implementation, we store some mail information into lucene as by number documents. One mail can have 5-6 docs . Added below a sample structure of data,
This is to get mail 1 info(1-6 docs for mail 1) . But above query fails to return result because attachment, mid and domain in different docs. Is there any way that we can span AND condition to multiple docs? or is there anyway that we can join query on a field like doc1.id = doc2.id. I request you all to provide your suggestions or help to solve this issue.