文章40 | 阅读 24060 | 点赞0
#_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"]
}
}
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/ywl470812087/article/details/104876419
内容来源于网络,如有侵权,请联系作者删除!