โ† Elasticsearch learning path
Elasticsearch ยท Module 4 of 10

Search queries

The Query DSL describes searches in JSON.

๐Ÿ“– Key ideas

  1. match does full-text search on analyzed text.
  2. term does exact matches on keyword fields.
  3. bool combines must, should, must_not and filter clauses.
  4. filter clauses do not affect scoring and can be cached.
  5. range queries handle numbers and dates.
๐Ÿ’ก Real-life example: Like asking a librarian: "books about Python (must), preferably by Indian authors (should), not older than 2020 (filter)".
matchFull-text query on analyzed fields
termExact value query
boolCombines several query clauses
filterYes/no condition with no scoring