I have a site with a few channels each with a lot of entries. When retrieving the results from a site search, I’d like to show a paginated list of entries from all sections by default, but then have filters in a sidebar which retrieve only entries from a certain channel, again in a paginated list.
How can I initially show the total number of entries in each channel for a particular search term, without having to actually construct a query for each channel individually which would be really slow?
The behaviour would be identical to the following example where it lists the number of entries for each ‘Material type’ http://explore.bl.uk/primo_library/libweb/action/search.do?dscnt=1&tab=website_tab&dstmp=1461161587439&vl(freeText0)=family&fn=search&vid=BLVU1&mode=Basic&fromLogin=true