I didn't look in detail at your query, but you should be able to see a
performance improvement on a larger index (i.e. millions of docs). If you
only have a couple hundred/thousand docs, you may or may not see a
difference (depending on your data and queries of course). Also the
performance improvement will come after the filter is cached and you run
the queries again, i.e., not when you execute your filtered query for the
first time and ES was building the initial cache for your filter condition.
On Wednesday, January 22, 2014 6:36:18 PM UTC+1, Binh Ly wrote:
Camilo,
I didn't look in detail at your query, but you should be able to see a
performance improvement on a larger index (i.e. millions of docs). If you
only have a couple hundred/thousand docs, you may or may not see a
difference (depending on your data and queries of course). Also the
performance improvement will come after the filter is cached and you run
the queries again, i.e., not when you execute your filtered query for the
first time and ES was building the initial cache for your filter condition.
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.