I am customizing what fields display in my site's search results. I would like to show the average fivestar rating in the search results as the final field. However, I cannot seem to find/figure out what exactly I need to print in my search_result.tpl.php.

Has anyone tried to print these results? Any suggestions?

It seems in the issues that the questions about how to get rid of the resulted in a patch to the module. See here. I want to do exactly the opposite.

Thanks.

Comments

moonshdw8’s picture

Version: 6.x-1.19 » 7.x-2.0-alpha1

I'm in the exact same situation but for Version 7.

nareshbw’s picture

Issue summary: View changes

I am not able to show star rating on the search page through the use of "fivestar" module. Any suggestion please...............

saurabh.dhariwal’s picture

This might help:

Use Search API module.

You can customize search result using search api module. Add field search api index that need to be displayed, like fivestar add in search api index (i.e.admin/config/search/search_api), then create view for search api and add that field that you need to display.

Let me know in case of any concerns.

Thanks
Saurabh

nareshbw’s picture

Thank you so much for your kind help and reply.I am doing exactly same here . I am customizing search-result--apachesolr-search.tpl.php . But unable to print variable

$variables['result']['node']->rendered . It is showing result on normal search page but for apache solr search I think it has some conflicts. Please refer below case

https://www.drupal.org/node/387050

Please correct me if I am wrong.

init90’s picture

Status: Active » Closed (outdated)
Related issues: +#387050: Apache solr and Votingapi

Comment from related issue: "Closing this issue since we have http://drupal.org/project/apachesolr_votingapi"