Hello. I have following documents:
doc1> transaction:1, initiator:john, info:somedata doc2> transaction:1, info: anotherdata doc3> transaction:1, info: anotherdata
I need to return all documents where transaction id is the same as the transaction id where field initiator is "john".
Is it possible? How?
May be with parent/child feature. Or field collapsing.
But I'd better recommend denormalizing your data.
If the primary object you are searching for is a transaction, index a transaction and not a sub part of a transaction.
My 0.02 cents
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.