Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building a search engine using Elasticsearch or Opensearch
Rating: 4.5 out of 5(3 ratings)
79 students

Building a search engine using Elasticsearch or Opensearch

Become a search engine expert by acquiring both the theoretical and practical knowledge require to build one
Last updated 9/2025
English
English

What you'll learn

  • Understand how a search engine works
  • Understand how scoring works
  • Implement basic end-to-end full text search with Elasticsearch/Opensearch
  • Implement different forms of querying
  • Implement facetting
  • Implement auto-completion
  • Index data into Elasticsearch/Opensearch including using bulk API
  • Writing a focused crawler/scrapper to populate your search index

Course content

6 sections • 27 lectures • 5h 16m total length
  • Introduction12:54

    Learn to build a search engine in Java using Elasticsearch or OpenSearch, covering indexing, analysis, querying, aggregations, and autocomplete with a Docker-based hands-on setup.

  • Hands-on: Setup6:47

    Set up a docker-based single-node Elasticsearch or OpenSearch environment, connect with Cerebro, and configure a minimal Maven pom with Jackson, HTTP client, logging, and tests to index and verify.

  • Search Basics3:16

    Learn how search systems tokenize text, analyze tokens, and build an inverted index, then query with tokenized terms and score documents by term frequency and importance.

  • Hands-on: Our First Index5:46

    Index data in Elasticsearch or OpenSearch by first posting raw json, then using pojos with an object mapper to serialize to json, validating hits and document sources.

Requirements

  • Minimal programming capabilities
  • Understanding of data, data structures and querying
  • Minimal Java knowledge
  • Minimal frontend knowledge (html, css, javascript)

Description

With this course you will gain an in depth understanding of how a search engine works and how to implement it using Elasticsearch (or it's fork: OpenSearch). Not only will you learn the theory behind search and analytics, but we will also go through, step by step, how to concretely implement these concepts in ElasticSearch.

We will explore many topics around search and you will learn to setup your own search engine with advanced capabilities such as full text search, live auto-completion, content recommendation, geo-spatial data querying.

From a practical perspective we will:

  • properly setting up our analyzers

  • implement different forms of data extraction and indexing into Elastic

  • explore Elastic's numerous querying capabilities, including full text search

  • explore Elastic's numerous analytics capabilities, in particular aggregation

  • build a faceted search engine in Java

  • explore Geo-Spatial querying

  • see how to properly configure our search engine for scalability

After this course, these topics will no longer be mysterious and you'll have the fundamental understanding allowing you to efficiently implement them. Furthermore, have this understanding will open the door to the world's not only of search, but also high volume data analytics, and artificial intelligence, as they share common mathematical backgrounds.

This course is not just about learning a technology, Elasticsearch, but also about building a strong background to use it properly.

Who this course is for:

  • Software developers in general even if this courses targets Java
  • Learners looking to go into depth in their understanding of search engines
  • Learners looking to mix knowledge and hands-on