π Nested documents
A document can contain a nested document, or an array of them.
There are two distinct ways to map and index the contents of nested documents.
documentβ
Default dynamic mapping behavior, flattens nested documents into βarraysβ of values on main document.

embeddedDocumentsβ
Attribute pattern elemMatch-like matching, more nuanced and expensive than document type flattening.
See also: https://www.mongodb.com/docs/atlas/atlas-search/field-types/embedded-documents-type/
WARNING: Each nested document mapped as as embeddedDocuments counts as an additional "index object".
"children": {
"type": "embeddedDocuments",
"dynamic": true
}
