Hi,

Is there a way to bypass content queuing and send node updates and inserts to Solr right away (without running cron.php)?

I noticed it works like that when you unpublish or delete the node, but not when you update or insert.

I think that it might be useful for small websites with relatively low number of nodes that run cron once a day or something, especially if they rely on Solr with faceted search to display most recent content (or products).

Thanks

Comments

gansbrest’s picture

I managed to do it from the custom helper module, maybe will be useful for someone else. I think it would be nice to have some kind of UI for that. Open for ideas.

function helper_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch($op) {
  case 'insert':
  case 'update':
    if ($node->type == 'car') {
      module_invoke('apachesolr_search', 'cron');
    }
    break;
  }
}
pwolanin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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