VeggieMeat / search_api_elasticsearch

Clone of project at drupal.org/project/search_api_elasticsearch for better CI options than what D.O offers
16 stars 8 forks source link

Setting shards programmatically. #18

Open VeggieMeat opened 10 years ago

VeggieMeat commented 10 years ago

Original issue: https://www.drupal.org/node/2085675

I guess a solution to this could be of benefits to others with similar issues, so here goes ;)

In a project we use elasticsearch in 3 ifferent environments, namely a local for development, and another for testing and of course, for the live site.

What I need, is a way to set the shards up from settings.php, such that my features and code repository can remain synced in all environments. This would've been entirely possible, using variable and the $conf array that is already present, if only the module used variables ;-), but it is a solution similar to this I need.

Is this possible?