Hi,

Im using SolrCloud (Solr 6.6.6 together with Zookeeper) . I want to use the 
same template/configuration for multiple Solr cores. Each core should use its 
own connectionstring for the data-import-handler (MSSQL). What im trying to do 
is to add the connectionstring as a User-Defined Property in the 
core.properties file while creating the core to reference in the 
data-import-handler, as such:
http://XXXXX:8983/solr/admin/collections?action=CREATE&name=TESTCORE&numShards=1&maxShardsPerNode=2&replicationFactor=3&collection.configName=TESTCORECONFIG&property.connectionstring=sqlserver://server.domain\instance;databaseName=SOMEDBNAME

But when I add the connectionstring like above I get escape an character ('\') 
before ':', '=' and '\'. So the connectionstring in core.properties looks like 
this: 'sqlserver\://server.domain\\instance;databaseName\=SOMEDBNAME'
I've tried to urlencode and escape the characters in different ways (also read 
documentation and googled ofc).
Is there anyway to do this or should I go for a totally different approach 
somehow?

Thanks

Reply via email to