Skip to content

Instantly share code, notes, and snippets.

@DarkcoderSe
Created November 15, 2021 07:01
Show Gist options
  • Save DarkcoderSe/cd9b1cc60fa7166907c037d6bcde225b to your computer and use it in GitHub Desktop.
Save DarkcoderSe/cd9b1cc60fa7166907c037d6bcde225b to your computer and use it in GitHub Desktop.
ESI_PROCEDURE Index pattern.
curl -X PUT 'http://localhost:9200/procedure-index-name?pretty' -H 'Content-Type: application/json' -d '{
"mappings": {
"properties": {
"id": { "type": "long" },
"facility_id": { "type": "keyword" },
"code": { "type": "keyword" },
"address": { "type": "text" },
"city": { "type": "keyword" },
"code_original": { "type": "keyword" },
"emergency_services": { "type": "keyword" },
"description": { "type": "text" },
"facility_name": { "type": "keyword" },
"hospital_overall_rating": { "type": "keyword" },
"hospital_type": { "type": "keyword" },
"location": { "type": "geo_point" },
"phone_number": { "type": "keyword" },
"price": { "type": "float" },
"state": { "type": "keyword" },
"zip_code": { "type": "keyword" }
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment