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 delete the "dev" Solr core created on installation #28

Closed
gitressa opened this issue Jun 26, 2023 · 13 comments · Fixed by #29
Closed

How to delete the "dev" Solr core created on installation #28

gitressa opened this issue Jun 26, 2023 · 13 comments · Fixed by #29

Comments

@gitressa
Copy link
Contributor

Just go to this URL in your browser, replace <PROJECT> with your project name:

http://<PROJECT>.ddev.site:8983/solr/admin/cores?action=UNLOAD&core=dev&deleteInstanceDir=true

@gitressa
Copy link
Contributor Author

This is mostly just to document it, so closing.

@rfay
Copy link
Member

rfay commented Jun 26, 2023

Do you think it should be added to docs? Why did you want to delete it? You can also delete the related docker volume, and ddev delete will also delete it.

@gitressa
Copy link
Contributor Author

Thanks for sharing extra methods of removing it @rfay. ddev delete I can understand, but how would I delete the related docker volume you mention?

I guess it could be added to the README ... I deleted it because I prefer my development configuration to match production the closest, so I set the Solr core name to that, and deleted dev Solr core to clean things up.

Could the Solr core pull its name automagically from the folder name, like the DDEV configuration does? That would be the ideal solution for me.

@gitressa gitressa reopened this Jun 26, 2023
@rfay
Copy link
Member

rfay commented Jun 26, 2023

I'd rather have you move on to the up-and-coming https://github.com/mkalkbrenner/ddev-solr - would you be willing to go test that one? It will soon be promoted... and with that one you don't have the magic "dev" core setup and such.

@rfay
Copy link
Member

rfay commented Jun 26, 2023

BTW, you could easily have deleted the core using the web UI couldn't you?

@gitressa
Copy link
Contributor Author

I am not sure how to move the set up to production (like I wrote here: A missing piece in the puzzle ...) so I'll probably stick to this for now. It would be a waste of time to set it up, and not be able to use it.

I don' know if it's possible via web UI?

@rfay
Copy link
Member

rfay commented Jun 26, 2023

All you have to do is open the solr UI (port 8983, shown by ddev describe) to try it out.

@gitressa
Copy link
Contributor Author

Ah yes, there's an "Unload" button under "Core Admin" at http://PROJNAME.ddev.site:8983/solr/#/~cores/dev which removes it. I had already removed dev so I tried removing my customname core. But now it wouldn't recreate after a ddev restart. I had to ddev delete to restore it. There are many ways to skin this goat :)

@gitressa
Copy link
Contributor Author

gitressa commented Jun 26, 2023

I created a PR which adds a line about this to the README.

@rfay rfay closed this as completed in #29 Jun 26, 2023
@rfay
Copy link
Member

rfay commented Jun 26, 2023

Thanks, and please don't forget to check out #28 (comment)

https://github.com/mkalkbrenner/ddev-solr

@gitressa
Copy link
Contributor Author

Thanks and yes, I am following the repo now. I hope deployment to server steps will be added, otherwise it's not that useful IMO.

@rfay
Copy link
Member

rfay commented Jun 26, 2023

Please open an issue in https://github.com/mkalkbrenner/ddev-solr with your request. I don't think people typically deploy local solr stuff to server.

@gitressa
Copy link
Contributor Author

Sorry if I didn't word it precisely enough.

The classic way of installing Solr on a server, creating a core, moving the config in place, etc. is very well documented in the README under Setting up Solr (single core) - the classic way.

I can follow these steps and successfully get a single core Solr Classic instance running on a production server.

My problem is that I don't know how to similarly set up Solr Cloud on a server.

There is an existing issue drupal.org issue Add more details on how to set up Solr Cloud on a server in README which I have updated with links to the new https://github.com/mkalkbrenner/ddev-solr repo as well as updated the Issue Summary, since I now see that there actually are sections about setting up Solr Cloud.

But they are very basic, and could use some more detail, for them to be useful.

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

Successfully merging a pull request may close this issue.

2 participants