c语言sscanf函数的用法是什么
290
2022-09-16
Elasticsearch 入门
0.下载Elasticsearch,启动Elasticsearch
略
1. 插入数据
curl -H "Content-Type: application/json" -XPUT "-d' { "title": "The Godfather", "director": "Francis Ford Coppola", "year": 1972, "genres": ["Crime", "Drama"] }' curl -H "Content-Type: application/json" -XPUT "-d' { "title": "Lawrence of Arabia", "director": "David Lean", "year": 1962, "genres": ["Adventure", "Biography", "Drama"] }' curl -H "Content-Type: application/json" -XPUT "-d' { "title": "To Kill a Mockingbird", "director": "Robert Mulligan", "year": 1962, "genres": ["Crime", "Drama", "Mystery"] }' curl -H "Content-Type: application/json" -XPUT "-d' { "title": "Apocalypse Now", "director": "Francis Ford Coppola", "year": 1979, "genres": ["Drama", "War"] }' curl -H "Content-Type: application/json" -XPUT "-d' { "title": "Kill Bill: Vol. 1", "director": "Quentin Tarantino", "year": 2003, "genres": ["Action", "Crime", "Thriller"] }' curl -H "Content-Type: application/json" -XPUT "-d' { "title": "The Assassination of Jesse James by the Coward Robert Ford", "director": "Andrew Dominik", "year": 2007, "genres": ["Biography", "Crime", "Drama"] }'
2.搜索
curl -H "Content-Type: application/json" -XPOST "-d' { "query": { "query_string": { "query": "kill" } } }'
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~