Skip to content

Instantly share code, notes, and snippets.

@DarkcoderSe
Created November 15, 2021 07:09
Show Gist options
  • Save DarkcoderSe/e2faaf5d2516d602f64aec2b3d6edd7f to your computer and use it in GitHub Desktop.
Save DarkcoderSe/e2faaf5d2516d602f64aec2b3d6edd7f to your computer and use it in GitHub Desktop.
ESI_HOSPITAL ( hospitals data with coords )
curl -X PUT 'http://localhost:9200/hospitals-index-name?pretty' -H 'Content-Type: application/json' -d '{
"mappings": {
"properties": {
"address" : {
"type" : "text"
},
"city" : {
"type" : "keyword"
},
"emergency_services" : {
"type" : "keyword"
},
"facility_id" : {
"type" : "keyword"
},
"facility_name" : {
"type" : "text"
},
"hospital_overall_rating" : {
"type" : "keyword"
},
"hospital_type" : {
"type" : "keyword"
},
"id" : {
"type" : "long"
},
"location" : {
"type" : "geo_point"
},
"phone_number" : {
"type" : "keyword"
},
"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