Elasticsearch easy
In the context of the Elastic Stack, a single 'Index' is roughly analogous to which concept in the SQL world?
- A A single Row in a table.
- B A specific Column definition (e.g., VARCHAR).
- C A Table (a logical namespace for related documents).
- D A Database User or Role.
Answer: C. A Table (a logical namespace for related documents).
While the mapping isn't perfect, an Index is where you store documents of a similar type (e.g., 'logs' or 'products'). It holds the mappings (schema) and settings (shards/replicas) for that specific data collection.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What are the two primary reasons for configuring one or more 'Replica Shards' for an index?
- When a String field is mapped as `text`, what process is performed to enable full-text search capability?
- What is the primary benefit of splitting an Elasticsearch index into multiple 'Primary Shards'?
- Every document stored in an Elasticsearch index is uniquely tracked by which mandatory metadata field?
- Elasticsearch search results include a metadata field called `_score`. What does this value primarily indicate?
- What is the primary architectural purpose of Elasticsearch in a modern software stack?