I am using Drupal 8 default search and I don't want to use search api module. Default search is working fine. But I Want to modify it. I want to categorize search result and get count of that category. Also I want to add class of that category so that On click of that category, I can hide other results.
There was hook
7 but in
8 I think they have removed.
So is there any alternate hook available? Is there any other way around without using search api and facet api?