三种方式
1、id查询
http://localhost:9200/blog/hello/1 get方式
2、关键字查询(只能是单个字)
http://localhost:9200/blog/hello/_search post方式
{
"query":{
"term":{
"title":"乐"
}
}
}
3、query_string的方式
http://localhost:9200/blog/hello/_search post方式
{
"query":{
"query_string":{
"default_field":"title",
"query":"小乐言冲压"
}
}
}