This question already has an answer here:
I have some fields (say, pictures or whatever) in my custom
content-type and I want them to appear in search results. How do I do that?
I know how to edit template files such as
search-result.tpl.php provided by the search module. In this page, there is a single variable called
$snippet which contains search result but as a rendered HTML output. How do I modify it/show my custom fields in search results?
I would like to have full control to contents of the files, rather than just rendered HTML for them. My Search display page requires customization a lot, so without getting each field individually, I won't be able to produce desired output.