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 hook_preprocess_search_results()
in 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?
hook_preprocess_search_results
works in D8. Please check out this article: fivemilemedia.co.uk/blog/… – Vladislav Apr 5 '18 at 10:47