Your best bet (on pure Solr), would probably be a DataImportHandler with nested entities.
The external processor would be XPathEntityProcessor and within that, you can put TikaEntityProcessor with appropriate data source. Use the variables to construct/pass URL to the inner entity.
Remember to mark the outer (XPath) entity as rootEntity=false to ensure that Solr documents are created for the inner entities.