Terms_stats facet & script_field?

Unlike the "terms" facet, the "terms_stats" facet doesn't appear to support
using a "script_field" instead of a "key_field". Is this simply a missing
feature, or is this not practical (or is there a better way to accomplish
this)?

I'm trying to use a facet to average numeric values either by hour-of-day,
day-of-week or by month-of-year.

--

Maybe this facet plugin can help
you? GitHub - bleskes/elasticfacets: A set of facets and related tools for ElasticSearch

On Wednesday, December 5, 2012 1:09:09 AM UTC+1, Eric Jain wrote:

Unlike the "terms" facet, the "terms_stats" facet doesn't appear to
support using a "script_field" instead of a "key_field". Is this simply a
missing feature, or is this not practical (or is there a better way to
accomplish this)?

I'm trying to use a facet to average numeric values either by hour-of-day,
day-of-week or by month-of-year.

--

On Tue, Dec 4, 2012 at 11:22 PM, Valentin pletzer@gmail.com wrote:

Maybe this facet plugin can help you?
GitHub - bleskes/elasticfacets: A set of facets and related tools for ElasticSearch

I don't think so (need to get e.g. the average value of a field across
all Mondays), but thanks.

--