I'm running Drupal 7.12. I have a requirement to index files attached to nodes. (DOC, PDF, XLS, etc).
After quite a bit of trail and error, reading and searching I have been unable to get any of the attachment file indexing modules to work.
Search API Attachments seems the most promising but after configuring it doesn't seem to index any of the documents. It does call Tika to process attachments to new nodes, but doesn't seem to re-index any existing nodes. Searching on any file contents yields no results.
Any thoughts on what I should investigate to track this down would be greatly appreciated. Anyone running this module successfully? If so how did you configure it.
I followed these instructions: http://permalink.gmane.org/gmane.comp.php.drupal.support/22390
To see if I can track this down:
I configured a fresh installation of Drupal 7.12.
I installed Search API, Search API DB and Search API Attachments
I installed Tika and verified that it is working per instructions.
I created a field called Attachment1 of type File for the "Article" content type: structure -> content types -> article. label: Attachment1 name: field_attachment1, field: File.
I created a search server in Configuration -> Search and metadata -> search api using the database service class.
I then edited the Default Node Index to use the search server I defined and enabled it.
I then went to the Default Node Index fields and using "Add Related Fields" added Attachment1 » The file.
I checked the box next to Attachment1 >> The file and Attachment content: field_attachment1
I created a single Article and attached a word document to it.
I ran the cron service from the admin menu.
In the database I ran select * from search_index and I notice that only the terms from the node content are present, nothing from the document that I uploaded.
I verified that Tika was being called by adding the syslog call prior to shell_exec which yields:
Mar 17 13:32:06 xeon httpd: Calling Tika: java -Dfile.encoding=UTF8 -cp '/usr/local/tika' -jar '/usr/local/tika/tika-app-1.0.jar' -t 'http:///drupal/sites/default/files/Resume_0.doc'
However, if I select to re-index the site by going to Configuration -> Search and metadata -> search settings -> clear index and re-run cron I notice that Tika is NOT being called.
Also I notice that selecting clear index does not affect the search_index table. (Should it?)
I have separately verified that Tika is properly extracting the text from the document by logging it to a file prior to the call.
My feeling is that I'm missing something obvious.