Does the pitfall of the and filter apply to the terms filter, too?

This question is about querying documents from the whole index using a
"filtered" query (and not about filtering further down some query results).

the "and" filter is a very bad choice to query from all documents, because
it does not use a BitSet but just walks through all documents and checks
the conditions.

Does this also apply to a terms filter with "execution": "and" and
"execution": "or", too?

If yes, that would mean if I want the terms to be AND-ed, I should use
"execution": "bool" instead of "execution": "and". If I want the terms to
be OR-ed but cached separetely, I'm out of luck with the "terms" filter,

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
To view this discussion on the web visit
For more options, visit