Hi all,
I was curious if it is possible to perform a "count/terms" aggregation in an ingest node/pipeline using a script processor, or if there is any plan to add in support for a processor like that in the future?
To clarify, we have a index that we send raw data to for later querying. However, we have been reading more into ingest nodes, and are curious if anyone has been able to perform the aggregations in an ingest node with a script processor that would allow for the count aggregations to be performed before the data is actually indexed.
Here is the query we used to collect and count term counts:
GET index-name/_search?size=0
{
"aggs": {
"QueryName": {
"terms": {
"script": "doc['FieldName'].values"
}
}
}
}
Thank you.