Re: enabling filter cache

2015-04-22 Thread Eddie Kim
I'm a bit confused, is terms filter slower because it has to iterate through a list of bitsets whereas lucene already has access to the list of matching documents via inverted index? Also, if I set cache=true for each individual filter, does it allow me to create any permutation of my bool filter

Re: enabling filter cache

2015-04-22 Thread Nikolas Everett
With term queries I imagine its nanoseconds to a net loss to use the filter cache. You should really test it though because I'm not 100% sure. There was talk of elassticsearch being more intelligent about which filters it decides to cache but I don't know where that's gone. Nik On Wed, Apr 22, 2

Re: enabling filter cache

2015-04-22 Thread Eddie Kim
In terms of performance, we we talking nanoseconds saved by using term filters, or possibly a few milliseconds? Given the performance requirements for this query, even saving a few milliseconds is a lot. Also, it looks like I should cache at the individual filter level, as they will be bundled diff

Re: enabling filter cache

2015-04-22 Thread Nikolas Everett
On Wed, Apr 22, 2015 at 2:41 PM, Ed Kim wrote: > Hi, I have a dynamic query built via java api that assembles a filtered > query depending on the parameter input. I have about a dozen filters > (mostly term filters) that may or may not be used, and had a couple > questions: > > 1. Is it ok to sim

enabling filter cache

2015-04-22 Thread Ed Kim
Hi, I have a dynamic query built via java api that assembles a filtered query depending on the parameter input. I have about a dozen filters (mostly term filters) that may or may not be used, and had a couple questions: 1. Is it ok to simply set the parent boolFilterBuilder cache setting to tr