Skip to main content
InterviewHubPRO
Section Overview
Q47

Question 47 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

94%
Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Custom Analyzers: Character filters, Tokenizers, and Token filters (synonyms, stemming).

senior LevelSecurity & Auth

In Simple Words: An Analyzer processes raw text into inverted index tokens through 3 sequential stages:

  1. Character Filters: Strips HTML tags (html_strip) or normalizes characters (mapping).
  2. Tokenizer: Splits text stream into individual tokens (e.g. standard breaks on punctuation/whitespace; edge_ngram creates autocomplete character prefixes ["k", "ku", "kub", "kube"]).
  3. Token Filters: Operates on tokens:
    • lowercase: Converts tokens to lowercase.
    • stemmer: Reduces words to root forms ("running" -> "run").
    • synonym: Expands synonyms ("k8s" -> "kubernetes").