Closed (fixed)
Project:
Apache Solr Attachments
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Jul 2012 at 12:58 UTC
Updated:
19 Jul 2012 at 12:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
nick_vhSeems this is due to the fact that I didn't count on other field names/media :-)
Can you try this patch and see if it works for you?
Comment #2
kevinlabory commentedThank you for your fast answer. The first notice is gone but I get an other one:
Notice : Undefined property: stdClass::$type in apachesolr_attachments_add_file_usage() (line 206 (...)
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'bundle' cannot be null
Comment #3
kevinlabory commentedI found what was wrong with Undefined property: stdClass::$type in apachesolr_attachments_add_file_usage(). I think you changed in apachesolr_attachments.index.inc line 206 from version 1.0 to 1.1:
'bundle' => 'file',with'bundle' => $file->type,This is the problem because property 'type' is not in the file object. Now I get a notice in Apache_Solr_Document.php when I run cron:
Undefined index: path in ApacheSolrDocument->__get() (line 304 (...)
But file indexation works fine. I will stick with the older version of your module.
Comment #4
nick_vhInteresting,
making this work for non-media + media proves quite challenging :-)
I'll work on this small issue asap so we have a global solution for both pathways
Comment #5
nick_vhComment #6
nick_vhcommitted, thanks for reporting