But post-filtering is executed after the query clause finishes, as a means to do an additional filtering step. This is really only useful when you are also running aggregations, and want the aggs to be filtered differently from the search results.
Option 2) is the new syntax for the old filtered query (which is deprecated as well). This is part of the query, so it's execution is interleaved with the other queries, and it filters both the search and the aggregation results
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.