Skip to main content
InterviewHubPRO
Section Overview
Q13

Question 13 of 50

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

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

What is an Analyzer and what are its three components (Char Filters, Tokenizers, Token Filters)?

senior LevelComponentsSecurity & AuthSystem Design

In Simple Words: An analyzer converts raw text into a stream of indexed terms:

  1. Character Filters: Pre-processes raw text before tokenization (e.g. stripping HTML tags html_strip, mapping & to and).
  2. Tokenizer: Splits text into individual tokens (e.g. standard tokenizer splits by whitespace and punctuation).
  3. Token Filters: Transforms, modifies, or discards tokens (e.g. lowercase filter, stop filter for common words, snowball or porter_stem for stemming words like "running" -> "run").