I'm filtering on terms. it seems that there are 2 choices: term 
filter<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-term-filter.html>and
 terms 
filter<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html>
.

In my case I have a list of terms displayed, from which the user can select 
to be filtered on. This works very well with the terms filter, since it 
have an array. Additionally, the terms filter does just fine with a single 
value in the array.

The terms filter also offers much in terms of flexibility for tweaking the 
execution mode and caching, which the term filter does not.

That makes me wonder about the term filter and where it should be used.

Are there any usage guidelines for one over the other? Seems that passing 
an array to terms would not be a lot different over building an array of 
term filters inside an *or* filter.

\@matthias

-- 
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/7336d8cc-0a6b-4094-969a-61c8de3bb2f1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to