Possible to display search results grouped by post type with pagination for each?

Wondering if it is possible to set up search results such that they are grouped by the matching post types with AJAX pagination under each.

Similar to the following but with additional pagination under each block:

I came across How to loop Search Results - #8 by benjamin but the last post there seems to suggest it doesn’t work anymore.