match, multi_match, term, and the bool query

7 min
Audience
you have completed module 2 (you know how to index and read a document)
Duration
25 to 30 min
Module
3/7
Target skill
write a precise full-text search by combining match, multi_match, term, and bool, and read Elasticsearch's response correctly.

In One Picture

Imagine a library counter. You can ask for "something about Kubernetes": the librarian understands, tolerates your accent, and offers you books ranked from most to least relevant. That is match. You can also ask for "the book whose exact call number is 005.43-KUB": there, no interpretation, it is all or nothing. That is term. And when you specify "about Kubernetes, for beginners, free or cheap, but not in English", you combine a fuzzy request (to rank) with strict criteria (to filter). That is bool. The whole Query DSL revolves around this difference: rank what resembles your request or filter what matches exactly.

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 “Search Like a Pro with Query DSL” 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