Filtering a single Search module in multiple ways

I have a Search module that returns about 10,000 records and is quite slow. I am needing to filter these bundles in several different ways so that I don’t have to re-run the Search module over and over.

For each filter, I have an Array Aggregator coming from a router after the Search step so that the final operation (updating a Google Sheets file) isn’t done 10,000 times. The path to each Array Aggregator after the router has a filter set up for the criteria I need.

The filters to each Array Aggregator from the router module are seeing the correct number of bundles for each condition coming across from the Search module, but when I try to reference “Total number of bundles” from the Aggregators, it outputs 10,000 and is ignoring the filter results.

Is there another way to do this? Am I missing something?

Thank you

Try using the length () IML function. So try length(array)

2 Likes