Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Rollup : add "count document" aggregation metric #387

Open
pmarjou22 opened this issue Jan 14, 2021 · 0 comments
Open

Rollup : add "count document" aggregation metric #387

pmarjou22 opened this issue Jan 14, 2021 · 0 comments
Labels
enhancement An improvement on the existing feature’s functionalities

Comments

@pmarjou22
Copy link

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
image

@pmarjou22 pmarjou22 added the enhancement An improvement on the existing feature’s functionalities label Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement An improvement on the existing feature’s functionalities
Projects
None yet
Development

No branches or pull requests

1 participant