elastic /

Elasticsearch

Live map
Snapshotmain · 6cace6b

REST actions use cluster routing to coordinate shard-level Lucene searches and reduce their results.

Click a building or route
Choose a path

Route a REST request to shard copies, execute Lucene queries, and reduce their results.

System map8 components · 9 connections
130%
Elasticsearch: a search fans out across shards architectureEnter through the node's REST layer, follow coordination across the top, then descend into one shard and its Lucene engine.registered REST handle…search request and tas…cluster state, concret…query or fetch request…shard ID, reader conte…Lucene query and point…top documents, aggrega…query and fetch phase …reduced hits, aggregat…ElasticsearchnodeRESTcontrollerSearchcoordinatorClusterserviceSearch phasecontrollerShard searchserviceIndex shardLucene engine
Connections
BuildingsEntryServiceComputeStorageRuntimeToolingExternal

Terms, in plain English

ShardA partition of an Elasticsearch index backed by its own Lucene index.

How to study this repo

  1. 1
    Enter one node

    Trace REST dispatch into the transport search action.

  2. 2
    Route to shards

    See cluster state become shard iterators and per-node requests.

  3. 3
    Reduce results

    Follow local Lucene hits back through query and fetch phase reduction.