Re: term vs terms filter

2014-01-31 Thread Binh Ly
Matthias, For the terms filter, let's say you do: { "query": { "filtered": { "filter": { "terms": { "a": [ "a", "b" ] } } } } } If you run the above exact query many times, the succeeding calls will be faster si

Re: term vs terms filter

2014-01-31 Thread Matthias Johnson
Thanks Binh. Out of curiosity do you know of performance differences between the 2 choices? it would seem that the terms filter with it's caching may provide better performance? \@matthias On Friday, January 31, 2014 10:34:50 AM UTC-7, Binh Ly wrote: > > Mathias, you're correct in your observat

Re: term vs terms filter

2014-01-31 Thread Binh Ly
Mathias, you're correct in your observations. The only thing you might want to be aware of is the terms filter is automatically cached, whereas an or filter of many term filters is not automatically cached. But the results you will get back should be the same. -- You received this message beca

term vs terms filter

2014-01-31 Thread Matthias Johnson
I'm filtering on terms. it seems that there are 2 choices: term filterand terms filter . In my cas