Terms filter execution mode


(Valery Ayala) #1

I'm trying to understand the different execution modes for the terms
filter.
(http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html#_execution_mode)

And/Or execution modes seem self-explanatory.
The "bool" execution mode says "Generates a term filter (which is cached)
for each term, and wraps those in a bool filter. The bool filter itself is
not cached as it can operate very quickly on the cached term filters."
A bool filter, however, has more than one field for filter expressions
within it. Where do the generated term filters actually go? Into the
"must" section or "should" section? Is this configurable? (
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-bool-filter.html#query-dsl-bool-filter)
Or am I completely misunderstanding something?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/65edf05c-5a53-48a2-9107-6c3f1d9d74ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2