Elasticsearch easy
When a String field is mapped as `text`, what process is performed to enable full-text search capability?
- A Encryption: Obfuscating the text for security purposes.
- B Analysis: Breaking the text into individual tokens (words), normalizing them (lower-casing), and applying filters (removing stop words).
- C Vectorization: Converting the text into a fixed-length mathematical vector immediately.
- D Deduplication: Removing all but the first occurrence of any word across the entire index.
Answer: B. Analysis: Breaking the text into individual tokens (words), normalizing them (lower-casing), and applying filters (removing stop words).
Analysis is why seeking 'Apple' finds docs containing 'apple' or 'apples'. It structures the 'Language' for the machine, allowing for fuzzy matches and semantic relevance rather than just binary equality.
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?
- 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?
- In the standard Elastic Stack architecture, what is the primary function of **Kibana**?