This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Rollup : add "count document" aggregation metric #387
Labels
enhancement
An improvement on the existing feature’s functionalities
I'm currently using Rollup on 1.12.0, and I have to create a dummy field on all my documents to be able to count the number of documents from source index.
It would be nice to be able to add this aggregation directly from RollUp configuration without this workaround
Current Workaound with event.count set to 1 on all documents
Source Index
POST sourceindex/_doc/
{
"event.name" : "event1",
"event.category" : "category1",
"event.count" : 1,
"date": "2015-01-01T12:10:30Z"
}
POST sourceindex/_doc
{
"event.name" : "event2",
"event.category" : "category1",
"event.count" : 1,
"date": "2015-01-01T12:10:30Z"
}
POST sourceindex/_doc
{
"event.name" : "event3",
"event.category" : "category2",
"event.count" : 1,
"date": "2015-01-01T12:10:30Z"
}
Target Index workaround : Sum on event.count
The text was updated successfully, but these errors were encountered: