Mappings and Analyzers: Why 'deployed' Finds 'deploy'

8 min
Audience
beginner who did the CRUD of lesson 02
Duration
30 min
Module
2/7
Target skill
read and write a mapping, choose between text and keyword, and predict what an analyzer does with a sentence

In One Picture

A mapping is the librarian's inventory card: for each field, they decide whether to store the value as is (a label, keyword) or to split it into words to fill the alphabetical index at the back of the room (text). When you drop off a book without a card, they improvise: "this looks like a date, this looks like a number, this looks like text". It often works, and you pay for it later: once the card is written, the type of a field is never changed again. The analyzer is the splitting rule for the alphabetical index: in French, it removes "les" and "en", and it brings "déployés" and "déployer" back to the same root, deploy. That is why your search finds the course even though you did not type the exact word.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Elasticsearch: Index and Find Documents” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one