Significant_term for other metrics?

Hi,
The significant_term aggregation compares occurance of a term in foreground
population vs. background population. Is there a way to do this for numeric
fields?

The scenario is there is a set of documents matching a filter. The average
value of a field in those documents will be quite different from the
average value of the field over all documents.

Document Type =
{
int filter
int metric
string foo
}

We want to find the foo values in documents where the average value of
metric in the documents matching filter is differentiated from the
average value over the whole set.

Thanks
Darshat

--
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/94aa1be5-e56d-41ef-a335-8555151c3589%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

See the "global" aggregation for how you might derive an unfiltered metric
for use as your "background" stats.

On Friday, February 13, 2015 at 9:24:10 PM UTC, Darshat Shah wrote:

Hi,
The significant_term aggregation compares occurance of a term in
foreground population vs. background population. Is there a way to do this
for numeric fields?

The scenario is there is a set of documents matching a filter. The average
value of a field in those documents will be quite different from the
average value of the field over all documents.

Document Type =
{
int filter
int metric
string foo
}

We want to find the foo values in documents where the average value of
metric in the documents matching filter is differentiated from the
average value over the whole set.

Thanks
Darshat

--
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/484e42dd-a2f4-40b7-b2df-ad41b87c5e68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks Mark. Using that, how can we extract the foo values where the
metric differs significantly?

On Saturday, February 14, 2015 at 3:48:25 AM UTC+5:30, Mark Harwood wrote:

See the "global" aggregation for how you might derive an unfiltered metric
for use as your "background" stats.

On Friday, February 13, 2015 at 9:24:10 PM UTC, Darshat Shah wrote:

Hi,
The significant_term aggregation compares occurance of a term in
foreground population vs. background population. Is there a way to do this
for numeric fields?

The scenario is there is a set of documents matching a filter. The
average value of a field in those documents will be quite different from
the average value of the field over all documents.

Document Type =
{
int filter
int metric
string foo
}

We want to find the foo values in documents where the average value of
metric in the documents matching filter is differentiated from the
average value over the whole set.

Thanks
Darshat

--
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/7b78533a-1eee-4bb5-8e85-0296893006bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Right now you'd have to do that in your client - pairing up the background numbers from the global agg and related numbers in your existing agg to derive growth.
There's a scripted metric too which let's you write map reduce type code but I'm not sure that would work

--
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/1e22ee26-e814-43a8-8665-92aa7a0ccd05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.