Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
echo "\n Delete old index"
curl -X DELETE 'http://localhost:9200/bands'
echo "\n Create Index Mapping"
curl -X POST 'http://localhost:9200/bands/' -d '{
"mappings" : {
"documents" : {
"properties" : {