Created
November 15, 2021 07:09
-
-
Save DarkcoderSe/e2faaf5d2516d602f64aec2b3d6edd7f to your computer and use it in GitHub Desktop.
ESI_HOSPITAL ( hospitals data with coords )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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