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

allow django management commands to target an arbitrary core #47

Open
thatbudakguy opened this issue Sep 16, 2020 · 0 comments
Open

allow django management commands to target an arbitrary core #47

thatbudakguy opened this issue Sep 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@thatbudakguy
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Solr allows "swapping" cores, which is a convenient mechanism for enacting lengthy updates (e.g. reindexing) without any downtime. If solr_schema and index were able to target a different core, one could easily prepare the second core with the new data and then "swap" it with the production core to make the changes instantaneous.

Describe the solution you'd like
Both solr_schema and index accept a parameter that specifies the name of the core to operate on. Using -c might be a natural choice for parity with the bin/solr command, but -c is already in use to mean "clear" for the index command, so we'll need something else. Perhaps you would just need to write it out, like:

$ python manage.py solr_schema --core ppa
@thatbudakguy thatbudakguy added the enhancement New feature or request label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant