update_solr_config.sh: no more drush dre materio_sapi (I0)

Uninstalling materio_sapi removed the search block, the role permissions and
six fields of the database index from the active config, and put back ASCII
field types older than config/sync. The configset is now generated from the
active config. solr_cores_stage worktree removed: solr_cores is on stage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
This commit is contained in:
2026-11-17 09:43:22 +01:00
co-authored by Claude Opus 5.5
parent 05b3e23770
commit d8b555c7c3
2 changed files with 5 additions and 6 deletions
-1
View File
@@ -10,7 +10,6 @@ var_solr/*
ressources/xdebug.ini ressources/xdebug.ini
ressources/*.sql.gz ressources/*.sql.gz
ai-docs/ ai-docs/
solr_cores_stage/
AGENTS.md AGENTS.md
.vibe/ .vibe/
var_solr8/ var_solr8/
+5 -5
View File
@@ -2,8 +2,8 @@
# Régénère la config Solr depuis Drupal (search_api_solr) et l'écrit dans un arbre du dépôt solr_cores, # Régénère la config Solr depuis Drupal (search_api_solr) et l'écrit dans un arbre du dépôt solr_cores,
# puis recharge les cores (RELOAD, sans restart). # puis recharge les cores (RELOAD, sans restart).
# #
# bin/update_solr_config.sh -> solr_cores (branche prod, Solr 8, :8985) # bin/update_solr_config.sh -> solr_cores (Solr 9 local, :8985)
# bin/update_solr_config.sh solr_cores_stage http://localhost:8986/solr -> worktree stage (Solr 9, après make solr9) # (solr_cores sur la branche stage pendant le projet IA ; plus de worktree solr_cores_stage)
# #
# Les modifications restent à relire / committer dans l'arbre visé (git diff). # Les modifications restent à relire / committer dans l'arbre visé (git diff).
@@ -15,9 +15,9 @@ CORES="materio_base materio_autocomplete"
[ -d "$TREE/materio_base/conf" ] || { echo "arbre $TREE invalide" >&2; exit 1; } [ -d "$TREE/materio_base/conf" ] || { echo "arbre $TREE invalide" >&2; exit 1; }
docker exec -i materiod8-php-1 drush cdel search_api_solr.solr_field_type.text_edgestring_ascii_und_6_0_0 # Généré depuis la config active : la garder alignée sur config/sync (drush cim) avant de lancer.
docker exec -i materiod8-php-1 drush cdel search_api_solr.solr_field_type.text_string_ascii_und_6_0_0 # Pas de « drush dre materio_sapi » : la désinstallation retire le bloc de recherche, les permissions
docker exec -i materiod8-php-1 drush dre materio_sapi # et des champs de l'index database, et remet les types ASCII de config/install, plus anciens que ceux de config/sync.
docker exec -i materiod8-php-1 drush solr-gsc database_search_autocomplete config.zip || exit 1 docker exec -i materiod8-php-1 drush solr-gsc database_search_autocomplete config.zip || exit 1
mkdir -p ressources/solr/ mkdir -p ressources/solr/
mv public_html/web/config.zip ressources/solr/ || exit 1 mv public_html/web/config.zip ressources/solr/ || exit 1