How to write post_filter query/script for inner-hits of nested object
click here for more details
How to write post_filter query/script for inner-hits of nested object
click here for more details
The inner hits definition in the main query doesn't know about your query inside the post_filter
part and there therefor doesn't take it into account.
Why don't you move the 'ispresent' query to the nested query inside the main query? Then inner hits can 'ispresent' query take into account
© 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.