Retrospectively populate a bucket

I think i'm looking for something that does not exist, and I will simply have to write each query by hand.