Skip to content

Instantly share code, notes, and snippets.

@DarkcoderSe
Created February 17, 2022 06:46
Show Gist options
  • Save DarkcoderSe/2508e189ff15709450c19ae26080aefe to your computer and use it in GitHub Desktop.
Save DarkcoderSe/2508e189ff15709450c19ae26080aefe to your computer and use it in GitHub Desktop.
Medications ( Product NDC ) List Index Pattern
curl -X PUT 'http://localhost:9200/medications-v1?pretty' -H 'Content-Type: application/json' -d '{
"mappings": {
"properties": {
"product_ndc": { "type": "text" },
"product_type_name": { "type": "text" },
"proprietary_name": { "type": "text" },
"proprietary_name_suffix": { "type": "text" },
"non_proprietary_name": { "type": "text" },
"id": { "type": "keyword" },
"product_id": { "type": "keyword" },
"dosage_form_name": { "type": "keyword" },
"route_name": { "type": "keyword" },
"start_marketing_date": { "type": "text" },
"end_marketing_date": { "type": "text" },
"marketing_category_name": { "type": "keyword" },
"application_number": { "type": "keyword" },
"labeler_name": { "type": "text" },
"substance_name": { "type": "text" },
"active_numerator_strength": { "type": "keyword" },
"active_ingred_unit": { "type": "keyword" },
"pharm_classes": { "type": "text" },
"dea_schedule": { "type": "text" },
"ndc_exclude_flag": { "type": "keyword" },
"listing_record_certified_through": { "type": "keyword" },
"medicine_name": { "type": "text" }
}
}
}'
@MrShafqatNadeem
Copy link

{
"mappings": {
"properties": {
"id": { "type": "keyword" },
"first_name": { "type": "text" },
"last_name": { "type": "text" },
"company_name": { "type": "text" },
"title": { "type": "text" },
"email": { "type": "keyword" },
"personal_linkedin": { "type": "keyword" },
"company_linkedin": { "type": "keyword" },
"address": { "type": "text" },
"website": { "type": "text" },
"phone": { "type": "keyword" }
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment