Apache solr search result view Drupal 7

136 Views Asked by At

I am working Apache solr search its working fine. But I need to change the search result to my view like title, date, short description and image.

Can you please someone help me. How to override the search result to custom result.tpl page.

1

There are 1 best solutions below

0
EricLavault On

There are several options :

  • Altering/adding template variables for individual search result by implementing hook_preprocess_search_result().
  • Altering the template file itself search-result.tpl.php (first you need to copy the original in your theme's templates folder).
  • The same can be done on the entire set of results (rows per page) using search-results.tpl.php & hook_preprocess_search_results().
  • Add custom CSS or override some rules in your theme.