Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 Nov 2012 at 10:11 UTC
Updated:
25 Apr 2013 at 03:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
ianthomas_ukFollowing discussion with nick_vh on IRC I have decided to implement this as an option for the existing drush solr-index command, rather than calling apachesolr_cron.
The attached patch also adds environment-id options to the solr-index, solr-delete-index and solr-mark-all commands
Comment #2
ianthomas_ukThe ATTACHED patch...
Comment #3
ianthomas_ukThe earlier patch was missing the extra parameter for apachesolr_index_batch_index_remaining
Comment #4
nick_vhSuper useful
Minor comment but critical enough
breaking api?
Comment #5
ianthomas_ukGood point, I'll look in to that. IIRC $context is added automatically by the batch API, so I can't just add $total_limit it as a third parameter.
Is it OK to change that function signature so long as old code using the batch API still works? (i.e. is the function itself considered part of the API, or only the exposure via batch API)
Comment #6
nick_vhyeah, as long as old code still works I'd be happy :)
Comment #7
nick_vhHmm, I did some searches and the only contrib module that needs altering is apachesolr_parallel
I would even be ok in changing this function as I expect almost no-one to alter the batch process, rather writing their own.
Comment #8
nick_vhRTBC
Comment #9
nick_vhCommitted to 7.x-1.x, should commit to 6.x-3.x
Comment #10
pwolanin commented