1. query string search(搜索全部信息)
1.1 GET elasticsearch/student/_search
返回:
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 4,
"max_score": 1,
"hits": [
{
"_index": "elasticsearch",
"_type": "student",
"_id": "2",
"_score": 1,
"_source": {
"name": "zhangsan",
"clazz": "0115bigdata",
"description": "we are family"
}
},
{
"_index": "elasticsearch",
"_type": "student",
"_id": "4",
"_score": 1,
"_source": {
"name": "zhaoliu",
"clazz": "0115bigdata",
"description": "we are family"
}
},
{
"_index": "elasticsearch",
"_type": "student",
"_id": "1",
"_score": 1,
"_source": {
"name": "lisi",
"clazz": "0115bigdata",
"description": "we are family"
}
},
{
"_index": "elasticsearch",
"_type": "student",
"_id": "3",
"_score": 1,
"_source": {
"name": "wangwu",
"clazz": "0115bigdata",
"description": "we are fami