All variables have to statically resolve at compile time. Still, you can statically enumerate multiple solrLocators and do stuff like this:
if
{
conditions : [
{ equals { tenant : [foo] } }
]
then : [
{
loadSolr { solrLocator : { collection : collection_foo, zkHost : "127.0.0.1:2181/solr" } }
}
]
else : [
{
loadSolr { solrLocator : { collection : collection_bar, zkHost : "127.0.0.1:2181/solr" } }
}
]
}
Wolfgang.