Recall & Review
beginner
What is synonym handling in Elasticsearch?
Synonym handling in Elasticsearch means telling the search engine that some words mean the same. This helps find more results even if the exact word isn't used.
Click to reveal answer
beginner
How do you define synonyms in Elasticsearch?
You define synonyms by creating a synonym filter in the analyzer settings. You list words or phrases that should be treated as equal, separated by commas or arrows (=>).
Click to reveal answer
intermediate
What is the difference between 'synonym' and 'synonym_graph' filters?
'synonym' filter works well for indexing but can cause issues with phrase queries. 'synonym_graph' is better for search time and phrase queries because it handles word positions correctly.
Click to reveal answer
intermediate
Why is it important to apply synonyms at search time rather than index time?
Applying synonyms at search time keeps the index smaller and more efficient. It also allows changing synonyms without reindexing all data.
Click to reveal answer
beginner
Give an example of a synonym rule in Elasticsearch.
Example: "car, automobile, vehicle" means these words are treated the same. Another example: "usa, united states, america" means all these refer to the same concept.
Click to reveal answer
What does a synonym filter do in Elasticsearch?
✗ Incorrect
A synonym filter makes Elasticsearch treat certain words as the same to improve search results.
Which synonym filter is better for phrase queries?
✗ Incorrect
The synonym_graph filter handles word positions properly, making it better for phrase queries.
Where is it recommended to apply synonyms for flexibility?
✗ Incorrect
Applying synonyms at search time allows changing them without reindexing data.
How are synonyms usually listed in the filter?
✗ Incorrect
Synonyms are listed as comma-separated or arrow-separated words or phrases.
What is a benefit of using synonym handling?
✗ Incorrect
Synonym handling helps find more relevant results by matching similar words.
Explain how to set up synonym handling in Elasticsearch and why it is useful.
Think about how you tell Elasticsearch that some words mean the same.
You got /4 concepts.
Describe the difference between applying synonyms at index time versus search time.
Consider when the synonym rules are applied and how it affects the data.
You got /5 concepts.