I tried to use the function for the 'relevanssi_hits_filter' hook described here . I see that it does return an array with count of results for each post_type.
But what I want is that if user search for 'term', so to have display all 'term' results of post_type X grouped together , and then below to have all 'term' results of post_type Y together, etc.
Is is possible to achieve and display results in such a way?
Thanks