#_source指定查询返回的字段信息
#_source指定查询返回的字段信息
GET /lib3/user/_search
{
"from":0,
"size": 2,
"_source": ["address" , "name"] ,
"query": {
"match": {"interests": "changge"}
}
}
#includes查询返回字段包含name address
#excludes查询返回字段不包含age birthday
#includes查询返回字段包含name address
#excludes查询返回字段不包含age birthday
GET /lib3/user/_search
{
"from":0,
"size": 2,
"query": {
"match_all": {}
},
"_source": {
"includes": ["name" , "address"] ,
"excludes": ["age","birthday"]
}
}