Skip to content

Instantly share code, notes, and snippets.

@eriky
Created December 10, 2019 08:27
Show Gist options
  • Save eriky/822b8ad66ba85877b0bef29f90db1c73 to your computer and use it in GitHub Desktop.
Save eriky/822b8ad66ba85877b0bef29f90db1c73 to your computer and use it in GitHub Desktop.
curl -XPUT "http://localhost:9200/twitter/_mapping" -H 'Content-Type: application/json' -d'
{
"properties": {
"post_time": { "type": "date" },
"username": { "type": "keyword" },
"message": { "type": "text" }
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment