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.
994 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,833 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 28,106 Reputation points Microsoft Employee
    2021-07-21T13:53:43.593+00:00

    Hi @Mandeep Chauhan ,

    Unfortunately, no. Dynamic schemas being loaded on the fly aren't supported. If the fields under "searchable" changes, you'll will need to update the index with the new fields as instructed in Creating complex fields.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.