Challenge - 5 Problems
Smart Search Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of this Elasticsearch analyzer configuration?
Given the following analyzer configuration, what tokens will be produced for the input text
"Running quickly"?Elasticsearch
{
"analysis": {
"analyzer": {
"my_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["lowercase", "english_stemmer"]
}
},
"filter": {
"english_stemmer": {
"type": "stemmer",
"language": "english"
}
}
}
}Attempts:
2 left
💡 Hint
Think about how the stemmer reduces words to their root form.
✗ Incorrect
The English stemmer reduces "running" to "run" and "quickly" to "quick" after lowercasing.
🧠 Conceptual
intermediate1:30remaining
Why is text analysis important for smart search?
Which of the following best explains why text analysis improves search results in Elasticsearch?
Attempts:
2 left
💡 Hint
Think about how search engines understand and compare words.
✗ Incorrect
Text analysis breaks text into tokens and normalizes them (like lowercasing and stemming) so that different forms of a word can match user queries effectively.
🔧 Debug
advanced2:00remaining
Identify the error in this analyzer configuration
This analyzer configuration is intended to lowercase and remove English stopwords, but it causes an error. What is the problem?
Elasticsearch
{
"analysis": {
"analyzer": {
"my_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["lowercase", "english_stop"]
}
},
"filter": {
"english_stop": {
"type": "stopwords",
"stopwords": "_english_"
}
}
}
}Attempts:
2 left
💡 Hint
Check the official filter types for stopword removal.
✗ Incorrect
The correct filter type for removing stopwords is "stop", not "stopwords". Using "stopwords" causes a configuration error.
📝 Syntax
advanced2:30remaining
Which option correctly defines a custom analyzer with a synonym filter?
Select the correct JSON snippet that defines an analyzer using a synonym filter named "my_synonyms".
Attempts:
2 left
💡 Hint
Check the spelling of keys and the data type of synonyms.
✗ Incorrect
Option A correctly uses "filter" (not "filters"), defines synonyms as an array, and places the filter inside "filter" (not "filters").
🚀 Application
expert3:00remaining
How does text analysis enable fuzzy search in Elasticsearch?
Which statement best describes how text analysis supports fuzzy search functionality?
Attempts:
2 left
💡 Hint
Consider how normalized tokens help match misspelled or similar words.
✗ Incorrect
By normalizing tokens (lowercasing, stemming), text analysis helps fuzzy search find matches even if the query has typos or different word forms.