Skip to content

Instantly share code, notes, and snippets.

View jakwinkler's full-sized avatar
:octocat:
coding stuff

Jakub Winkler jakwinkler

:octocat:
coding stuff
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 ===
@jakwinkler
jakwinkler / magento2 https
Last active September 8, 2020 17:57
nginx #nginx #server
test