Back to Developer Roadmap

Flattened Data Type

src/data/roadmaps/elasticsearch/content/[email protected]

4.0832 B
Original Source

Flattened Data Type

The flattened data type in Elasticsearch allows you to index an entire JSON object as a single field. This is useful when you have objects with many fields, but you only need to search or aggregate on a small subset of them. Instead of mapping each individual field, the flattened type indexes the entire object as a string, enabling you to query specific values within the object using specialized queries.

Visit the following resources to learn more: