The document discusses two approaches for modeling relationships between documents in Elasticsearch - parent/child relationships and nested objects. For parent/child relationships, the child documents are stored separately but co-located with the parent document. For nested objects, inner objects are indexed in a way that denormalizes and flattens the structure for faster queries. The document provides examples and explanations of how each approach works for indexing, querying, and sorting capabilities.
Related topics: