Skip to content

Instantly share code, notes, and snippets.

View denvit's full-sized avatar
🎯
Focusing

Denis Veg denvit

🎯
Focusing
  • Gornja Radgona, Slovenia
  • 07:01 (UTC +02:00)
View GitHub Profile
@jakwinkler
jakwinkler / ghosts.sh
Created May 13, 2025 05:26
Remove Ghost Indexes From ElasticSuite - Magento Open Source
#!/bin/bash
ES_HOST="http://localhost:9200" # Replace with your ES host
INDEX_PATTERN="magento2_default_catalog_product_*"
# Get all aliases (used indexes) ===
echo "Fetching all aliases in use..."
USED_INDEXES=$(curl -s "$ES_HOST/_cat/aliases?h=index" | sort | uniq)
# Get all indexes matching the pattern ===