I would like to generate multiple scripted fields for the whole index (per each document in the index), for
post_filter and aggregate (with filter) by those dynamic values.
As I understand, at the moment the only solution to get the scripted value through all the documents in the index to use score, but it has limitations of:
- it's not possible to use in the post_filter
- it's not allowed to have multiple scores
What should I do in such case?