Open saily opened 10 years ago
You can set the connection properties in your buildout file: https://github.com/collective/collective.solr#solr-connection-configuration-in-zcml
Unfortunately this does not seem to work all the time. I haven't had time to look into that though. In my opinion we should get rid of the option to configure the Solr connection TTW altogether.
Ii already tried that one, but did not work for me.
In my opinion we should get rid of the option to configure the Solr connection TTW altogether.
+100, absolutly. Configuration through buildout would be my prefered approach.
It seems collective.solr tries to connect with the zcml connection params first and if that doesn't work fall back to the control panel params:
Try to pdb into that code block to see what goes wrong. I would be open to amend the code to always use the zcml params when they have been specified (and then maybe entirely remove the control panel params later on).
cc @csenger
Hi, We're using integration and deployment servers with different solr servers. When transporting a project to our integration system let's say: 'A', we have to use Solr 'A', when transporting to deployment server 'B' we should use Solr 'B'.
Unfortunately
collective.solr
always sets the connection properties. When setting the connection properties in a custom profile i have to maintain 2 different solr profiles for integration/deployment.I'd like to see a more comfortable solution here, any ideas?