How to retrieve a "Null" facet from the @search.facets result?

Nico Guedes 1 Reputation point
2022-12-02T00:33:43.2+00:00

I've got a faceted field which value is not required, so some records will have it assigned to null.

I am able to search and get all the records that have it set to null by using

$filter=country eq null

However, @検索君 .facets will only return the values that are assigned:

"country": [
{
"count": 43,
"value": "Brazil"
},
{
"count": 120,
"value": "Canada"
}
]

Could I get a response like that?
"country": [
{
"count": 43,
"value": "Brazil"
},
{
"count": 120,
"value": "Canada"
},
{
"count": 350,
"value": null
},
]

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,062 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.