creation of scripts and documents
information about below how to create documents how to retrieve documents how to update documents how to add new fields in existing documents how to update scripts how to update scripts with query param how to see all the documents in the indexes Follow me: Twitter: https://twitter.com/Dheeraj35011639 Instagram: https://www.instagram.com/dheeraj4461/ LinkedIn: https://www.linkedin.com/in/dheeraj-kumar-87646b76/ Facebook: https://www.facebook.com/profile.php?id=100003542003947 YouTube: https://www.youtube.com/channel/UCHyRj31IjkgxKMjqIwJ2moQ Queries ================= GET /airinfo/_search { "query": { "match_all": {} } } POST /airinfo/_update/123 { "script": { "source": "ctx._source.time -=params.number", "params": { "number":5 } } } POST /airinfo/_update/123 { "script": { "source": "ctx._source.time++" } } POST /airinfo/_update/123 { "doc": { "time":9 } } POST /airinfo/_update/123 { "doc": { "destination":"chennai" } } GET /airinfo/_doc/123 POST /airinfo/_doc/123 { "name":"jet-airways", "source":"mumbai", "destination":"pune" } POST /airinfo/_doc { "name":"air-asia", "source":"bangalore", "destination":"delhi" } GET /_cluster/health GET /_cat/nodes?v GET /_cat/shards?v
Download
0 formatsNo download links available.