Finally the simple trick was to use an array of aggregators for each
filter category.