我有一些像这样的查询
GET _search
{
"size":6,
"query":{
"filtered":{
"query":{
"query_string":{
"query":"some keyword",
"fields":["title","content"]}
},
"filter":{
"match":{
"channel.SiteName":"Photo Video"}}
}
},
"sort":[
{"_score":{"order":"asc"},
"date":{"order":"desc"}}
],
"aggs":{"SiteNames":{"terms":{"field":"channel.SiteName"}}}
}
它有效,
但我只是从查询中获取抽象值
我希望从每个SiteName =照片和视频中获取3个值