How to Find a document with maximum number of fields in ElasticSearch

Hi, we are trying to find a document in elastic index with maximum number of fields , my document is below format . is there any way to get the document or the highest number of fields count in the document.

{
"caseId":1233
"formElements:[{
"header": 123,
"extraobjects":{ ->> this object can more attributes , can be added dynamically
"test1":"test",
"test2":"test"
"test2":"test"
}
}]
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.