We are using SI4T and Solr to provide search on our site.
We are successfully publishing Dynamic Component Presentations to our Solr index, and have now moved on to publishing binary files.
When publishing Dynamic Component Presentations we were able to add custom fields to the Solr documents created. We did this by adding new elements to the xml generated by SI4T.
When we publish pdf's we can see the binary_content field, and the other default fields, but we can't see an obvious way to add custom fields to these documents.
Whats the best way to extend SI4T to add custom fields when publishing binary files using SI4T?
UPDATE
The PDF is part of a multimedia component (based on a download schema) with various metadata fields.
The download component has a dynamic CT associated with it, which contains the SI4T TBBs + a TBB to publish the PDF file.
Using this approach we end up with 2 documents in Solr. One for the download component and our custom fields (but not the content of the PDF) and one for the PDF itself (containing the PDF content, but no custom fields)