Skip to content

Instantly share code, notes, and snippets.

@parisnakitakejser
Created January 27, 2022 11:24
Show Gist options
  • Save parisnakitakejser/528308821089e0aadaf274665bfdc9b6 to your computer and use it in GitHub Desktop.
Save parisnakitakejser/528308821089e0aadaf274665bfdc9b6 to your computer and use it in GitHub Desktop.
How to create document into Elasticsearch
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