Files attached to multiple nodes causes search index failure. Cause by primary key violation.

Comments

bleedev’s picture

StatusFileSize
new621 bytes

Patch to change primary key from fid to fid and nid.

pjcdawkins’s picture

Status: Active » Needs review
StatusFileSize
new959 bytes

I had this problem too.

Try this patch which also includes an update function (note running update.php could fail if you've manually altered the DB to remove the single `nid` index).

wmostrey’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pwolanin’s picture

Status: Closed (fixed) » Active

I'm going to revert this change in favor of the bigger changes needed to fix this module with the new apachesolr module

pwolanin’s picture

Also, the DB updates were not done using the proper API functions.

nick_vh’s picture

Status: Active » Fixed

Should be handled in #1393540: Upgrade apachesolr_attachments to co-operate with latest beta of apachesolr. Please test and re-open when required

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.