- Issue created by @katlion
- Merge request !58Issue #3529563: Add command to fully clear Solr index β (Open) created by Unnamed author
- πΊπ¦Ukraine katlion
katlion β changed the visibility of the branch 3529563-drush-command-to to hidden.
- πΊπ¦Ukraine katlion
katlion β changed the visibility of the branch 3529563-delete-all-items-command to hidden.
- Merge request !59Issue #3529563: Add command to fully clear Solr index β (Open) created by Unnamed author
- π©πͺGermany mkalkbrenner π©πͺ
Thanks for your patch. But the similar command already exists in the search_api_solr_admin submodule:
https://git.drupalcode.org/project/search_api_solr/-/blob/4.x/modules/se... - π©π°Denmark ressa Copenhagen
I think the great functions and commands in Search API Solr Admin (
search_api_solr_admin
) module should be moved into Search API Solr module itself, and available by default, since many users often miss that the feature or commands they are looking for already exist.The
delete-all
command is a crucial tool, and I use it all the time for development and testing, as well as deployment on the server, like this:
drush search-api-solr:delete-all solr_server && drush search-api:index
I know the argumentation why Search API Solr Admin is in its own separate module (to guard the user from making a mistake), but I think it's the responsibility of the user to be careful, when running Drush commands.
After all, you can just as easily do much, much damage, like destroying a Drupal installation with a multitude of commands -- for example simply by running
drush site:install -y
, and Boom!, your web site is now gone.