Closed (fixed)
Project:
Apache Solr Attachments
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2012 at 15:32 UTC
Updated:
28 May 2012 at 13:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
nick_vhThat's possible, it was still very much a development version.
Are you able to fix it and post a patch on the correct behavior?
Thanks!
Comment #3
stefan freudenberg commentedHere's a patch that correctly indexes the entity-file-relationship for multiple attachment fields.
Comment #4
stefan freudenberg commentedForgot to set the status.
Comment #5
heacu commentedi had just noticed the problem myself, and was going to post a patch, too.
actually, the one above didn't work for me. changing the solr_reindex function was enough: if, for example, a node (with nid=545, for example) had two file fields with files to be indexed, array_merge_recursive would, when confronted with identical numeric keys, simply append 545 to the end, for example making it key 546. so making the change in the solr_reindex function did the trick.
here's the patch that worked for me.
Comment #6
heacu commentedactually let me clarify that for me, the above patch was needed for nodes that have multiple file fields, each of which have indexable files. i guess that's what the first poster was after as well.
Comment #7
nick_vhI'll commit the latter solution. If anyone would ever encounter another problem in regards with the merge code, please re-open
Comment #8
nick_vhCommitted to D7 branch