Now in master, and will be part of 0.9 is much more enhanced facets
support. On top of the query facet that came with elasticsearch previous
versions, there are now:
- terms facet: The most frequent terms and their counts.
- statistical facet: Numeric field - get statistical information on it,
including min, max, count, total, mean, std.
- histogram facet: my favorite - based on a certain field, break its values
into buckets and provide aggregations within those facets (aggregations can
be on the same field or on another field).
On top of that, all facets can now accept filters that filter even more the
"result set" they operate on. Also, there are new
filters that are faster than the
bool filter, see more here:
The global flag is applicable as well to all facets, controlling if they
will be bounded by the executing query, or run globally (and bounded by the
When you have time, take it for a spin and tell me what you think. Other
facets should be simple to implement (they must be "map reduce-able"), so if
you have an idea for one, just shout.