search_api_elasticsearch
search_api_elasticsearch copied to clipboard
Setting shards programmatically.
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?