The proposal would be to add
hook_apachesolr_exclude($env_id, $entity_id, $entity_) { }
hook_apachesolr_ENTITY_exclude($env_id, $entity_id, $entity_type) { }
This would allow for selectively skipping certain nodes for certain environments.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 1536628-12.patch | 6.58 KB | nick_vh |
| #9 | 1536628-9.patch | 6.19 KB | nick_vh |
| #6 | 1536628-6.patch | 5.85 KB | nick_vh |
| #5 | 1536628-3.patch | 3.55 KB | nick_vh |
| #2 | 1536628-2.patch | 1.29 KB | nick_vh |
Comments
Comment #1
nick_vhCritical because of the following :
The current version uses status callbacks, this has a consequence that it is removed from the indexing table. However, if you need to index to multiple environments you can't have it removed form the index table. So therefore we need to add another hook that "skips" the item rather than "sets the status to 0 and remove it"
Comment #2
nick_vhFirst attempt to show what we're aiming at
Comment #3
pwolanin commentedre:
Let's try to be consistent and pass $env_id first to all hooks?
Also, I'm wondering if we should pass the whole $row instead of just entity ID?
Comment #5
nick_vhAdded API docs + fixed typos in the first patch
Comment #6
nick_vhComment #7
nick_vhComment #9
nick_vhWoops, bad variable. Corrected in this patch
Comment #10
nick_vhComment #11
nick_vhCommitted to d7
Comment #12
nick_vhComment #13
nick_vhCommitted to D6