A document type is a legacy Elasticsearch classification for JSON documents with the same data shape. A movie document could use the Movie type, while a car document could use the Car type. section 3.2.1
Relate document types to indexes as follows:
- Store movie documents in a movies index and associate them with the Movie type. section 3.2.1
- Store car documents in a cars index and associate them with the Car type. section 3.2.1
- Before version 5.x, one index could contain multiple document types, including several car-related models. section 3.2.1
Legacy typed collections
A legacy application might place several car-related types in one index: Cars, PerformanceCars, CarItems, CarSales, DealerShowRooms, and UsedCars. This illustrates why older Elasticsearch APIs can expose type names alongside index names. section 3.2.1
Use the warning figure to recognize pre-version-8 typed document-indexing syntax and distinguish it from current Elasticsearch usage. section 3.2.1
