Skip to main content
InterviewHubPRO
Section Overview
Q17

Question 17 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

34%
Elasticsearch & Lucene (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

How do Index Templates and Component Templates work?

senior LevelMost AskedComponentsSystem Design

In Simple Words: Templates automatically apply settings (shard count, replica count) and mappings to newly created indices that match a name pattern (e.g. logs-*):

  • Component Templates: Reusable modular building blocks (e.g. a standard timestamp mapping or common security settings).
  • Index Templates: Compose multiple component templates into a unified configuration matching specific wildcard index patterns.