Last active
March 9, 2021 19:19
-
-
Save CarlosLannister/cd922450c5ec4533881d9419d4fb314b to your computer and use it in GitHub Desktop.
Add mapping to index
This file contains 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 --user elastic:medium -X PUT "localhost:9200/twitter/_mapping" -H 'Content-Type: application/json' -d' | |
{ | |
"properties": { | |
"content": { | |
"type": "text" | |
}, | |
"user_name": { | |
"type": "keyword" | |
}, | |
"tweeted_at": { | |
"type": "date" | |
} | |
} | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment