Cognitive search index on all subfields of a Edm.ComplexType

Mandeep Chauhan 41 Reputation points
2021-07-20T12:32:34.463+00:00

As part of Azure Cognitive Search, I am trying to create an index on CosmosDB container where my documents are in following format.

{
    "id": "123456789",
    "layerid": 39,
    "searchable": {
        "Asset_Id": "P0004",
        "SAP_Id": "A001-BCD"
    }
}

I am able to create a simple index by specifying a particular field e.g. make "layerid" searchable, retrievable etc.
What I need is to index all subfields of the field "searchable" without specifying the name of the subfield itself.
In the scenario that I am working on, the subfields of "searchable" field is not fixed however the structure is fixed.
Is there a way in Cognitive search to cater this scenario?

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.
834 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,583 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful