How to get Drupal 7 to search attached PDF and Word documents
To help you, you've this nice module Apache Solr Attachments. If you download the module you'll have a README.txt that give you some clues how to help you install and configure Tika.