Pipeline Aggregations
Pipeline, Aggregations, (jaise, "avg_bucket", "derivative", "moving_avg") DUSRI, aggregations, ke, OUTPUT, PAR, kaam, karti, HAIN, na, ki, DOCUMENTS, PAR, DIRECTLY.
Pipeline, aggregations, TREND, ANALYSIS, ke, liye, POWERFUL, HAIN — "MONTH-OVER-MONTH, growth" ya, "MOVING, AVERAGE" jaisi, METRICS, DASHBOARDS, ke, liye, ISI, TAREEKE, se, CALCULATE, ki, jaati, HAIN.
GET /sales/_search
{
"size": 0,
"aggs": {
"sales_per_month": { "date_histogram": { "field": "date", "calendar_interval": "month" }, "aggs": { "revenue": { "sum": { "field": "amount" } } } },
"revenue_derivative": { "derivative": { "buckets_path": "sales_per_month>revenue" } }
}
}- Pipeline aggregations dusri aggregations ke output par kaam karte hain
- Trend analysis (month-over-month growth, moving average) ke liye powerful hain
- buckets_path syntax se parent>child path banaya jaata hai
Pipeline, Aggregations, (jaise, "avg_bucket", "derivative", "moving_avg") DUSRI, aggregations, ke, OUTPUT, PAR, kaam, karti, HAIN, na, ki, DOCUMENTS, PAR, DIRECTLY, — jaise, "date_histogram" ke, HAR, bucket, ke, BEECH, ka, "derivative" (RATE, of, CHANGE) nikaalna.
GET /sales/_search
{
"size": 0,
"aggs": {
"sales_per_month": { "date_histogram": { "field": "date", "calendar_interval": "month" }, "aggs": { "revenue": { "sum": { "field": "amount" } } } },
"revenue_derivative": { "derivative": { "buckets_path": "sales_per_month>revenue" } }
}
}Pipeline, aggregations, TREND, ANALYSIS, ke, liye, POWERFUL, HAIN — "MONTH-OVER-MONTH, growth" ya, "MOVING, AVERAGE" jaisi, METRICS, DASHBOARDS, ke, liye, ISI, TAREEKE, se, CALCULATE, ki, jaati, HAIN.