Looking on how to use the extracting request handler for the attachments module, it seems that we need to allow a module to abort if there is a failure in constructing documents to index inside function function apachesolr_index_nodes()

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

Simplest approach - allow the callback to throw exceptions

JacobSingh’s picture

Seems okay to me, switching the order of ops (setting $position and firing $callback) is probably fixing a potential bug too, right?

pwolanin’s picture

Title: Allow modules to abort the indexing » Allow modules to abort the building of documents for indexing
pwolanin’s picture

Right - setting those values after the callback runs means we retain the correct stopping point

pwolanin’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Patch (to be ported)

committed to 6.x-1.x

claudiu.cristea’s picture

StatusFileSize
new2.35 KB

Committed to DRUPAL-5--2. Attached the patch.

pwolanin’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new1.85 KB

Here's a version for 6.x-2.x

robertdouglass’s picture

Status: Needs review » Fixed

committed to 6.2.

Status: Fixed » Closed (fixed)

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