If there is an attachment in the index that is deleted from drupal a "removed" flag is set
in the apachesolr_attachments_files table.
Then next time cron is run this table is checked and any files marked "removed" are
deleted from the index.
If the index table is cleared while there are "removed" flags in the table they are lost.
Then when cron runs it gets nothing from the table and nothing is removed from the index.
It would be good if when the button is clicked it counts the "removed" rows and if there are
any it throws an error.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 698694-retain-removed-2.patch | 837 bytes | pwolanin |
Comments
Comment #1
pwolanin commentedHmm, good point- or we could just retain those rows.
Comment #2
pwolanin commentedComment #3
pwolanin commentedcommitted to 1.x branch and HEAD
Comment #4
agileware commentedYeah, that's a better solution. Thanks
Comment #5
robertdouglass commentedI just removed a file, ran cron, and can still search for that file in the index. Not sure this is fixed.
Comment #6
pwolanin commenteddid you account for autocommit time?
Comment #7
pwolanin commentedLocal testing, everything looks right to me - Robert, please confirm or provide steps to reproduce.
Comment #8
pwolanin commented