How to load a apache solr document and send it for reindex after editing is done in drupal 7
When using the apachesolr module, nodes are automatically marked for reindexing after an edit.  So there is nothing you need to do.

If for some reason you need to manually mark a node, the code is

apachesolr_mark_entity('node', $nid);