INDEX_ROOT="lawsoc" INDEX_DATE=$(date +%Y-%m-%d) INDEX_NAME="${INDEX_ROOT}_${INDEX_DATE}" curl -XGET "http://localhost:9200/${INDEX_NAME}/_settings"