Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##elastic search put
- curl -XPUT search-richardes-fjhwfcbqy4ck54p3c4mnp2sffa.us-west-2.es.amazonaws.com/movies/movie/tt0116996 -d '{"directors" : ["Christopher Nolan"],"genres" : ["Drama","Action"],"plot" : "Batman saves the world","title" : "The Dark Knight","actors" : ["Morgan Freeman","Christian Bale","Health Ledger"],"year" : 2011}, {"directors" : ["Tim Burton"],"genres" : ["Comedy","Sci-Fi"],"plot" : "The Earth is invaded by Martians with irresistible weapons and a cruel sense of humor.","title" : "Mars Attacks!","actors" : ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"],"year" : 1996}'
- ## elastic search get
- curl -XGET 'search-richardes-fjhwfcbqy4ck54p3c4mnp2sffa.us-west-2.es.amazonaws.com/movies/_search?pretty' -d ' { "query": { "match": { "genres": "Drama" } }}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement