A LIKE '%term%' query works until users misspell words, search in plurals or expect the best match first. Elasticsearch and its open-source fork OpenSearch are built for exactly this: tokenising text, scoring relevance and filtering millions of documents in milliseconds. This course teaches you to model data for search, write queries that return what people meant, and keep a cluster healthy.

What you'll learn

  • How an inverted index works and why search engines differ from databases
  • Elasticsearch and OpenSearch today: licensing, APIs and where they have diverged
  • Mappings and field types: text, keyword, numbers, dates and nested objects
  • Analysers, tokenisers and filters: stemming, synonyms and Hindi and other Indian-language text
  • Query DSL: match, multi_match, bool queries, filters versus queries
  • Relevance: BM25 scoring, boosting, function_score and testing changes with a judgement list
  • Aggregations for faceted navigation: categories, price ranges and counts
  • Autocomplete, search-as-you-type and "did you mean" suggestions
  • Vector and hybrid search: combining BM25 with embeddings
  • Keeping the index in sync with your database, plus shards, replicas, snapshots and monitoring

Who it's for

  • Backend developers adding search to an e-commerce site, documentation site or SaaS product
  • Teams whose database-based search has become slow or unhelpful
  • Developers who inherited an Elasticsearch cluster and need to understand it

Prerequisites

  • Comfortable building REST APIs in any language
  • Basic JSON and HTTP knowledge
  • Docker installed for the local cluster

Outcomes

By the end of this course you will be able to:

  1. Design mappings and analysers that suit your content and languages.
  2. Write queries and aggregations for a full faceted search page.
  3. Measure and improve relevance instead of guessing.
  4. Keep an index in sync with a primary database and operate a small cluster safely.

Projects you'll build

  • Product catalogue search – faceted search with filters, sorting, synonyms and typo tolerance over a few thousand products, practising mappings, bool queries and aggregations.
  • Docs search with autocomplete – instant suggestions and highlighted results for a documentation site, practising edge n-grams and the completion suggester.
  • Hybrid search experiment – compare keyword, vector and hybrid ranking on the same queries with a small judgement list, practising embeddings and relevance evaluation.

Tools you'll use

Elasticsearch 9.x and OpenSearch 3.x in Docker, Kibana and OpenSearch Dashboards, official clients for Python and Node.js.

Course outline

ModuleTopic
1How search engines work
2Elasticsearch versus OpenSearch, and local setup
3Documents, indices and mappings
4Analysers and multilingual text
5Query DSL and filtering
6Relevance scoring and tuning
7Aggregations and faceted search
8Autocomplete and suggestions
9Vector and hybrid search
10Syncing data from your database
11Shards, replicas, snapshots and monitoring
12Project: a complete product search

FAQ

Should I use Elasticsearch or OpenSearch?

They share most of their API and concepts, so the skills transfer. OpenSearch is governed by the OpenSearch Software Foundation and is the default on AWS; Elasticsearch has its own features and licensing options. We teach the common core and point out the differences.

How is this different from the Vector Databases course?

Vector Databases and Semantic Search focuses on embeddings and retrieval for AI apps. This course is mainly about keyword search, relevance and facets, with vector search as one part.

Can't I just use PostgreSQL full-text search?

For small sites, often yes. We compare the two in module 1, and Advanced PostgreSQL covers Postgres search in more depth.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.