AzureSearch - query for missing/null json elements

Deanna Delapasse 1 Reputation point
2021-11-03T12:57:03.453+00:00

I have indexed documents with a "MetadataFields" key whose values are json.

"MetadataFields": "{\"continent\":\"north america\",\"country\":\"united states\",\"region\":\"x34\",\"tagnumber\":\"abc-123\"}

I'm able to search for a specific match in Search Explorer using
MetadataFields/tagnumber:abc-123

But I cannot figure out how to find documents where this attribute is null or missing. Is this possible? What is the proper syntax?

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.