Skip to content

Instantly share code, notes, and snippets.

# Remove old data
curl -XDELETE "http://localhost:9200/index1"
# Create mapping
curl -XPOST localhost:9200/index1/ -d '{
"mappings": {
"people": {
"properties": {
"work_email": {
"type": "string",