Exact matching
Find documents using exact values, ranges and field presence. Keyword fields preserve case; text fields are analyzed.
- 1Retrieve all products
- 2Find an exact brand
- 3Match several statuses
- 4Filter a price range
- 5Find rated products
6 lessons with explanations, query examples and diagrams. Follow the course in order or choose a topic.
Loading progress…
Find documents using exact values, ranges and field presence. Keyword fields preserve case; text fields are analyzed.
Combine queries with bool. must contributes to relevance, filter does not; must_not excludes documents. should is optional when must or filter is present unless minimum_should_match is set.
Text fields use the standard analyzer: words are tokenized and lowercased. Match analyzes the input; term does not.
Read theoryControl sorting, pagination and returned fields. Boost changes relevance; scores depend on the corpus and are not probabilities.
Aggregations summarize matching documents. Bucket aggregations form groups; metric aggregations calculate values. Use size: 0 when only statistics are needed.
Combine business logic, relevance, stable API pages and three-level analytics. Five final challenges bring the previous lessons together.