Is it possible to have "type wide" term facets with [all_terms: true]?

Hi folks.

Is it possible to have "type wide" term facets with [all_terms: true] ?
Because now if I have 2 types of the same index and trying to get facets on
common field elasticsearch returns me index wide terms but I need type
wide. That's happens when the facet term field name intersects in types :frowning:

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Yes it is possible. Facets are calculated on your query results, so you
could just limit your query to a particular type, across multiple indices.
Also, you can further limit a facet using a facet filter.

Perhaps gist what you're doing

--
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.
For more options, visit https://groups.google.com/groups/opt_out.