Tuesday, June 20, 2017

How to query ElasticSearch using curl

curl -H "Content-Type: application/json" -X POST http://localhost:9200/test2/type1 -d '{ "name": "Marina" }' 


curl -H "Content-Type: application/json" -X GET http://localhost:9200/test2/_search 

No comments:

Post a Comment