Chapter 2: Managing Mappings
Mapping is a primary concept in Elasticsearch that defines how the search engine should process a document and its fields to be effectively used in search and aggregations.
Search engines perform the following two main operations:
- Indexing: This action is used to receive a document, process it, and store it in an index.
- Searching: This action is used to retrieve the data from the index based on a query.
These two operations are strictly connected; an error in the indexing step leads to unwanted or missing search results.
Elasticsearch, by default, has explicit mapping at the index level. When indexing, if a mapping is not provided, a default one is created and guesses the structure from the JSON data fields that ...
Get Elasticsearch 8.x Cookbook - Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.