liveBook · Manning

Typeless endpoint

As explained in Elasticsearch in Action, Second Edition

A typeless endpoint is an Elasticsearch URL that addresses documents without including a legacy document type.

A typeless endpoint addresses an Elasticsearch document without a legacy document type in the URL. Beginning with version 7.0.0, use the permanent `_doc` endpoint instead of a custom type. section 3.2.1

Indexing a car document

Use `PUT cars/_doc/1` to index document 1 in the `cars` index. The older `PUT cars/car/1` form includes the `car` document type and produces a warning on pre-8.x versions. Keep one particular data shape in each index. section 3.2.1

Warning using pre-version-8 typed document indexing

Review the warning associated with typed document indexing on pre-version-8 Elasticsearch. section 3.2.1

How Elasticsearch in Action, Second Edition covers it

How deep it goes
Defines the URL change and recommends one document shape per index, without detailing broader endpoint operations.
Examples
Uses car indexing with `PUT cars/_doc/1` and contrasts it with `PUT cars/car/1`.
What it assumes
Assumes JSON documents and indexes, while establishing the one-shape-per-index modeling principle.
What you can do after
Operate Elasticsearch indexing with the `_doc` endpoint and recognize deprecated typed URL syntax.
How it connects
Connects Elasticsearch indexes with JSON documents and legacy document types.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Elasticsearch in Action, Second Edition. The section links point to the parts of the book it draws on.