Thank you for your answer.
Unfortunately this wouldn't work in my case, as I have no control on the indexing. I'm dealing with already existing indexes controlled by third parties.
You said that my approach "is doable". Do you have any idea how this can be done?
Thank you.
Basically, set the _score to 1 for each matching nested doc, use sum to combine the _score of the nested docs and ask Elasticsearch to retrieve only documents where _score is >= to 2.
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.