Currently drush integration only provides the command "solr-mark-all" to reindex all nodes at once (optionally filtered by content type). Marking a single node for reindexing is currently not possible.

The attached patch adds the command "solr-mark", taking a node id as argument. The patch is written in a way that should make a port to d7 straight-forward.

CommentFileSizeAuthor
apachesolr-drush-cmd-reindex-one-1.patch1.31 KBciss

Comments

ciss’s picture

Status: Active » Patch (to be ported)
ciss’s picture

Status: Patch (to be ported) » Needs review

Sorry, wrong status.

nick_vh’s picture

Hmm, I'd prefer to see this as a small contrib module. I don't really see a lot of animo for this functionality and we'd like to keep it simple. Hopefully you're not too offended and you understand this decision. But in any case, thanks a lot the contribution!

(maybe this can be something for an apachesolr_bonus module?)

nick_vh’s picture

Status: Needs review » Closed (won't fix)
ciss’s picture

To be honest, I can't even remember what I needed it for. I'm perfectly fine with this decision, although I don't think such a small addition alone would justify a module. Maybe someone else will pick this up.