December 2017
Intermediate to advanced
434 pages
10h 29m
English
The second step involves defining the mappings for the type of product. This step is executed because the type catalog did not exist before the first document was indexed. Remember the analogy of type with a relational database table. The table needs to exist before any row can be inserted. When a table is created in an RDBMS, we define the fields (columns) and their datatypes in the CREATE TABLE statement.
When the first document is indexed within a type that doesn't yet exist, Elasticsearch tries to infer the datatypes of all the fields. This feature is called the dynamic mapping of types. By default, the dynamic mapping of types is enabled in Elasticsearch.
To see the mappings of the product ...
Read now
Unlock full access