Last active
March 14, 2021 18:01
-
-
Save CarlosLannister/6fef8849ddb2132079fcb752f00d0d3a to your computer and use it in GitHub Desktop.
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 --user elastic:medium -XPUT "localhost:9200/twitter/_doc/1?pretty" -H "Content-Type: application/json" -d' | |
{ | |
"content": "My first tweet", | |
"user_name": "carloslannister", | |
"tweeted_at": "2015-02-20", | |
"likes": 2 | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment