3 Architecture
This chapter covers
- High-level architecture and Elasticsearch’s building blocks
- Search and indexing mechanics
- How an inverted index works
- Relevancy and similarity algorithms
- Routing algorithm
In the last chapter, we played with some fundamental ElasticSearch features; we indexed some documents, executed search queries, walked through analytical functions, and more. We briefly played with the server without knowing much about its internals. The good news is that we don’t need to break a sweat to get started with Elasticsearch.
Elasticsearch, like any other search engine, requires deep dives in order to become a master of the technology. That said, the product is designed to work out of the box with intuitive APIs and tools, and you can make use of the software without much prerequisite knowledge. Before we get carried away with the easy-to-use, hands-on aspects of Elasticsearch, it would benefit us in the long run if we gain an understanding of the high-level architecture, the inner workings of the server, and the dichotomy of its moving parts.