The filter only works in the context of the document. so if a document has that value on the field, it will be included in the aggregation. The solution would be not to have a nested field, something like:
contentepisodes_ref.english_title: "..."
contentepisoded_ref.hindi_title:"..."
and then just do the aggregation on the specific language field or to split the initial documents into 2 documents, one with the hindi and another with the english title.
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.