Created
January 27, 2022 11:24
-
-
Save parisnakitakejser/528308821089e0aadaf274665bfdc9b6 to your computer and use it in GitHub Desktop.
How to create document into Elasticsearch
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 -XPUT "http://localhost:9200/test-index-1/1" -d"{\"test\":\"hello world\"}" | |
curl -XPUT "http://localhost:9200/test-index-1/2" -d"{\"test\":\"demo world\"}" | |
curl -XPUT "http://localhost:9200/test-index-1/3" -d"{\"test\":\"hello demo\"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment