If the expectation is that this data won't be accessed often, you could also do post-processing. For example, you could store the rollup as a compressed string of delimited doc_ids.
If the expectation is that this data won't be accessed often, you could also do post-processing. For example, you could store the rollup as a compressed string of delimited doc_ids.