Your filter would be faster if you used range filters on the start/end
dates instead of using a script.

On Mon, Aug 18, 2014 at 10:52 AM, avacados <kotadia.ak...@gmail.com> wrote:

>                         "_cache": true   // I removed this caching and i
> found significant performance improvement... do you know why ? :-)
>

Yes: when caching a filter, it needs to be evaluated over all documents of
your index in order to be loaded into a bit set. On the other hand, when a
script filter is not cached it will typically only be evaluated on
documents that match the query.

-- 
Adrien Grand

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6q0HJc_-J0i_mLBe%2BGKhkFdBEeTTabuYFGx21VToRVnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to