Using Nifi, it's possible to make this kind of request without destroy the original flowfile ?
curl -XPOST "http://localhost:9200/my_index/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"bool": {
"must": {
"term": {
"user.screen_name": "userName"
}
},
"filter": {
"range": {
"date": {
"gte": "now-3M",
"lte": "now",
"format": "EEE MMM dd HH:mm:ss Z YYYY"
}
}
}
}
},
"aggs": {
"sum_RTs": {
"sum": {
"field": "retweetCount"
}
}
}
}'
Thanks so much