AlgoViz

Elasticsearch

medium 34 min

Elasticsearch is a distributed search and analytics engine built on Apache Lucene.

Where it shows up

The same pattern appears across everyday software.

  • Wikipedia and MediaWiki

    The CirrusSearch extension gives MediaWiki search through Elasticsearch or, since MediaWiki 1.44, OpenSearch. Its page says that it will later support OpenSearch only.

  • GitHub code search

    GitHub first used Elasticsearch, and indexing about 8 million repositories took months. For code it built its own engine, Blackbird, in Rust. A good example of outgrowing a general tool.

  • Slack, with Solr

    Slack's engineering blog describes search on Solr, the other engine built on Lucene. The same ideas, shards and scores, apply.

  • Product search in a shop

    Words are matched with a boost for the name, filters narrow by price and stock, and aggregations fill the sidebar with counts.

  • Logs of many services

    Agents ship lines into a data stream. Engineers search by request id and plot errors per minute. Old indexes are deleted whole.

  • Places on a map

    Documents with a geo_point answer questions such as open restaurants within 5 km, ordered by distance and rating.