
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.
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.
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.
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.
Explore document analysis for elastic search, turning text into tokens through tokenization, stop-word removal, and limitization, guided by analyzers and mappings.
The code base used in this course is v available here: https://gitlab.com/habegger-learning/elastic-java-course/
Explore advanced text analysis techniques for search engines, including stemming, n-grams and shingles, and learn how synonyms and analysis timing affect matching and autocomplete.
Explore how stemming, snowball, n-grams, synonyms, and shingles shape tokenization and search results through query-time and index-time analysis.
Discover indexing in elastic search by mapping field types—text, keyword, geo, numeric, and vectors—and learn to design queries, analyses, mappings, and re-indexing strategies for embedding-based similarity and geospatial search.
Build a focus crawler and scrapper to extract Wikipedia country data, including population, flag, and structured content with sections and subsections, then index it in Elasticsearch with a mapped model.
Learn how search scoring ranks documents using term frequency and inverted document frequency, forming tf-idf and BM25 scores, with boosting and normalization to improve relevance.
Explore scoring in practice by comparing TFIDF, BM25, and DFR similarities in Elasticsearch or OpenSearch. Run tests on a single shard to observe per-shard scoring behavior and validate results.
Master searching and aggregating with Elasticsearch or OpenSearch, using text and geospatial queries, boolean logic and boosting, and bucket and metric aggregations for distributed analytics.
Explore and compare Elasticsearch query types, build and test indexes with slug ids, and master must, should, must not, filter, and phrase queries to refine search results.
Explore how to join data in Elasticsearch or OpenSearch, including client-side joins, denormalization, nested and parent-child models, and how shard placement affects performance in distributed data.
Explore how Elasticsearch handles joins: lists, nested fields, and join fields with parent-child relationships; learn indexing, routing, and query implications for search and retrieval.
Learn how to build a search engine workflow by crawling web pages, scraping and structuring HTML into JSON, and indexing it with Elasticsearch or OpenSearch via a scalable queue architecture.
Learn to build a robust crawler that harvests country and city data, index them with Elasticsearch or OpenSearch, using a three-queue pipeline (fetch, scrape, index) and a geo point.
Learn how index templates define settings and mappings for indices via patterns, how aliases enable index switching and queries, and how shards, replication, and green, yellow, and red statuses matter.
Learn to re-index a full elasticsearch index by creating a timestamped new index, swapping aliases, and updating mappings while preserving data and enhancing info box extraction.
Design a rest api for a search engine by exposing a business layer over indices, documents, and ngrams for city and country auto-completion, with elastic queries and agnostic responses.
Bootstrap the backend of your search engine with a minimal java http server, a query endpoint, and a static resource handler that proxies to elastic and renders HTML or JSON.
Build a search engine GUI with full text search, autocomplete (keyword suggestions or partial-token results), facetting, highlighting, and explicit scores to explain why results appear.
Develop a full search experience by adding highlighting, autocomplete, and dynamic facets with a fixed-range, logarithmic population filter, using a renderer and Elasticsearch or Opensearch suggest features.
Learn how batching with the bulk api improves elasticsearch and opensearch indexing performance by processing documents in batches, using a json lines payload, and balancing delay and batch size.
Explore batching index updates in Elasticsearch using the bulk API and ndjson, building a batch worker that collects cities and sends them in a single bulk request.
Wraps up the course by recapping building a search engine with Elasticsearch or OpenSearch, including crawling, scrapping, indexing, analysis, scoring, queries, api use, and a ux with facets and autocomplete.
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.