CRUD Operations on Documents in Dev Tools

8 min
Audience
beginner who can read GET cours/_doc/C0001 (lesson 01)
Duration
30 min
Module
2/7
Target skill
create, read, modify, version, and delete documents with the right HTTP verbs, and understand why a written document is not yet visible in a search

In One Picture

Think of an order pad in a restaurant. The waiter writes each order on a numbered ticket (the document and its _id), can cross it out to change a dish (partial update), tear it up (deletion), and each crossing-out is counted (_version). But the kitchen does not read the tickets continuously: it picks up the pile every few seconds. Between the moment the waiter puts the ticket down and the moment the kitchen picks up the pile, the order does exist (you can find it by its number) but it is not yet "in service". This periodic pickup is Elasticsearch's refresh, and it is the source of the most frequent misunderstanding among beginners.

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