-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Plone5.2-rc2/Python3.6] collective.solr 8.0.0a1 - SolrConnectionException #237
Comments
@NicolasGoeddel this seems to be an issue with your Solr installation that has nothing to do with c.solr directly. How do you set up Solr? Have you tried to access Solr directly to see if you properly loaded a Solr core configuration? |
@tisto I have no experience with Solr. It's the first time I use it. I am able to go to the webinterface and I can see there the core with the name What configuration do I need to load? Creating a fresh core is not enough? |
@NicolasGoeddel you need to load a proper Solr core configuration that contains a schema that fits to Plone and what c.solr expects. Here is an example: https://github.com/kitconcept/kitconcept.recipe.solr/tree/master/config You don't need to use kitconcept.recipe.solr to set up Solr. Though, you need the Solr core config. |
I copied over schema.xml, solrconfig.xml and mapping-FoldToASCII.xml and started Solr again. Then c.solr was able to make a reindex, clear the index. Now I have to found out more about the whole configuration thing. When I change a document it gets reindexed and when I search for a certain term in top right search bar also Solr is used. That's fine. I really would appreciate a small documentation to better get into the whole thing. Thank you for the example. |
@NicolasGoeddel I am aware that we are missing documentation here. It took us a huge effort to migrate c.solr to Python 3 and Plone 5.2 and so far we did not had time to write down these things. Maybe you could imagine to help us with a "getting started" document that helps people that use Solr for the first time? Feel free to create a pull request updating the existing README (which is definitely out-of-date). |
Hi.
I installed a fresh Plone5.2-rc2 via UnifiedInstaller with Python 3.6 and Postgresql as Relstorage, added collective.solr=8.0.0a1 to the eggs in
buildout.cfg
, started the instance, added the extension from the control-panel and changed the base path to/solr/mycore
in the@@solr-controlpanel
view.Then I downloaded Apache Solr 8.2.0 to the same machine, started it and created a core using the command line
solr create -c mycore
. I then can access the Solr instance through its webinterface and I get an empty search result as JSON when openinghttp://server:8983/solr/mycore/select
in the browser.Now when I click on the button
Solr Reindex
within the solr-controlpanel I get this error:Solr shows this message in its log file:
What is
schema.xml
and where should it come from? Is it the reason for the connection error?Thank you.
The text was updated successfully, but these errors were encountered: