There are numerous variables that can be set and it would be nice to set/unset those through Drush

Comments

halcyonCorsair’s picture

Status: Active » Needs review
StatusFileSize
new3.63 KB

As it happens, I've created a patch here that adds the drush commands:

 solr-get-env-id       Get the default Apache Solr environment id                                             
 solr-get-env-name     Get the default Apache Solr environment name, uses the default environment by default. 
 solr-get-env-url      Get the default Apache Solr environment url, uses the default environment by default.  
 solr-set-env-url      Set the url for an Apache Solr environment, uses the default environment by default.

Used like so:

example » drush solr-get-env-id
solr
example » drush solr-get-env-name
Production

example » drush solr-get-env-url
http://secondary-solr:8983/solr/drupal-site-example

example » drush solr-set-env-url http://primary-solr:8983/solr/drupal-site-example
example » drush solr-get-env-url
http://primary-solr:8983/solr/drupal-site-example

Status: Needs review » Needs work

The last submitted patch, 1399584-apachesolr-drush-getset.patch, failed testing.

halcyonCorsair’s picture

Status: Needs work » Needs review
StatusFileSize
new3.48 KB

Oops, lets try that again with --relative.

Status: Needs review » Needs work

The last submitted patch, 1399584-apachesolr-drush-getset_2.patch, failed testing.

halcyonCorsair’s picture

StatusFileSize
new2.85 KB

*sigh*, lets try that again, against 7.x-1.x.

halcyonCorsair’s picture

Status: Needs work » Needs review
nick_vh’s picture

Status: Needs review » Needs work

Wow! Great, I love the drupal issue queue! :)

Should we add more commands to set more things such as the configurable options? Read only for example?

halcyonCorsair’s picture

If possible, I would prefer for this patch to be committed as a first step, then perhaps the possibility of other commands could be handled in separate feature requests when people have specific use cases they would like covered.

nick_vh’s picture

Status: Needs work » Needs review

Ok, let's do it that way

nick_vh’s picture

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

Committed to 7.x

nick_vh’s picture

Status: Patch (to be ported) » Fixed

Commited this exact patch to 6.x-3.x

Thanks

nick_vh’s picture

Status: Fixed » Closed (fixed)