results = indexClient.Documents.Search<Hotel>("budget", parameters);
在搜索服务资源管理器中,它类似于:
&facet=Group
结果:
{
"@odata.context": "https://xxx-dev.search.windows.net/indexes('influencers')/$metadata#docs",
"@search.facets": {
"Group@odata.type": "#Collection(Microsoft.Azure.Search.V2017_11_11.QueryResultFacet)",
"Group": [
{
"count": 426,
"value": "Gaming"
},
{
"count": 388,
"value": "Action Sports"
},
{
"count": 379,
"value": "Music"
},
{
"count": 378,
"value": "Sport"
}
]
},
"value": [
{
"@search.score": 1,
"id": "fc4b1200-fb91-4fe0-a251-beb351ee2988",
"FirstName": "Chase",
"LastName": "Powell",
"Mobile": "500-0545772",
"Country": "Sweden",
"Group": "Music",
"SubGroups": [
"Jazz",
"Electronic Dance",
"Rock Music",
"Pop",
"Techno",
"Indie Rock",
"Dubstep"
]
},
{
"@search.score": 1,
"id": "131f3d54-9b36-4b60-bb38-4d412bcc1682",
"FirstName": "Ian",
"LastName": "Bryant",
"Mobile": "236-3224487",
"Country": "Denmark",
"Group": "Gaming",
"SubGroups": [
"World of Warcraft ",
"Counter-Strike",
"League of Legends"
]
}