SOLR Snippet with link to PDF I'm using Apache SOLR as search engine. Everything works fine, indexing as I want, showing the data as I want. I only need to show the PDF which belongs to a certain snippet on a search result. Example:

Result 1: Node Title
Snippet1 -&gt; snippet from node
Snippet2 -&gt; snippet found in pdf x on this node
Snippet3 -&gt; snippet found in node


Result 2: Node Title
Snippet1 -&gt; snippet from node
Snippet2 -&gt; snippet found in pdf x on this node
Snippet3 -&gt; snippet found in node


Result : Node Title
Snippet1 -&gt; snippet from node
Snippet2 -&gt; snippet found in pdf x on this node
Snippet3 -&gt; snippet found in node


The idea is, to have a list of snippets which can be either on the node itself or in a pdf (or any other file) which is attached to this node and link to it (in file case).

Tika extension and Apachesolr_attachments are in place and working. 

I get the $vars['snippets'] from hook_apachesolr_search_snippets($vars) and I can modify the output. But I don't see how I could add more information to it. 

Any help appreciated.
you can add extra field to solr.
you need to implement
hook_apachesolr_index_document_build_node(ApacheSolrDocument $document, $node, $env_id) 

and there $document->addField('pdf_field_name', 'your_url');

also you need to implement hook_apachesolr_query_prepare(DrupalSolrQueryInterface $query) 

and add there $query->addParam('fl', 'pdf_field_name');

then in your search-result.tpl.php 
$pdf_field_name should be available (after reindexing)