Skip to content

Instantly share code, notes, and snippets.

@quoeamaster
Created December 8, 2019 04:22
Show Gist options
  • Select an option

  • Save quoeamaster/5eaa72af0fc7fb84f12d86d8f34e6ef6 to your computer and use it in GitHub Desktop.

Select an option

Save quoeamaster/5eaa72af0fc7fb84f12d86d8f34e6ef6 to your computer and use it in GitHub Desktop.
# mappings (tbl_publisher records)
PUT blog_enrich_publisher
{
"mappings": {
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
}
}
# ingestion
POST blog_enrich_publisher/_bulk
{"index":{}}
{"id":"pub_001","name":"Packt Publishing Limited"}
{"index":{}}
{"id":"pub_002","name":"Sams Publishing"}
{"index":{}}
{"id":"pub_003","name":"Manning Publications"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment