- just storing result of search query in index
- store result of aggregation (specially pipeline) query in index.
- Is any way to filter aggregated results based on some conditions into index
You would normally do that on the client side by a separate request.
I'm now exaxtly sure what is the ask here but maybe pipeline aggregations, more specifically the bucket selector aggregation can help here.