Skip to content
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

How to set up SOLR? #20

Open
liquidcms opened this issue Sep 7, 2021 · 1 comment
Open

How to set up SOLR? #20

liquidcms opened this issue Sep 7, 2021 · 1 comment

Comments

@liquidcms
Copy link

Is there any complete documentation how to set up Solr (for use with D8/9 and Search API)? I have a found a few pieces of documentation but nothing current or complete. For example, this page: https://wodby.com/docs/1.0/stacks/solr-drupal/ only states this:

Install Search API Solr module. Go to Home » Administration » Configuration » Search and metadata » Search API, create a new core or edit the default one. In expanded CONFIGURE SOLR BACKEND field set specify:

HTTP protocol: http
Solr host: solr
Solr port: 8983
Solr path: /solr (LEAVE IT BLANK FOR search_api_solr 8.x-3.0 and newer)
Solr core: [NAME OF YOUR CORE]

And above that it states "We automatically create a default solr core named default when no cores found." That in itself is contradictory as it says a core is created by default (it isn't) and then it states to "Go to Home » Administration » Configuration » Search and metadata » Search API, create a new core or edit the default one. " which sounds like you can create a core from the Search aPI UI - which you can't.

So documentation errors aside; i think i need to create a core, on my own (not sure why the docker container wouldn't already have that?). Any idea how to do that? If i go to the solr admin page and try to Add Core, i get:

Error CREATEing SolrCore 'new_core': Unable to create core [new_core] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/opt/solr/server/solr/new_core'

I am sure i am missing something simple here; but very limited documentation that i have found so far and doesn't seem to explain the basics. I guess i could go read up on how to install solr; but isn't that the point of this docker img - so i don't need to do that?

@liquidcms
Copy link
Author

Found it here: https://mykola-veryha.medium.com/how-to-configure-solr-container-in-docker4drupal-for-drupal-8-bfddd78d76a6

Might be good to include this in the docs. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant