0
0
Elasticsearchquery~5 mins

Synonym handling in Elasticsearch - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ADeletes duplicate documents
BTreats listed words as equal during search or indexing
CSorts search results alphabetically
DEncrypts the search data
Which synonym filter is better for phrase queries?
Asynonym_graph
Bsynonym
Cstop
Dlowercase
Where is it recommended to apply synonyms for flexibility?
AIn the database
BAt index time
CIn the client application
DAt search time
How are synonyms usually listed in the filter?
AAs XML tags
BIn JSON arrays
CSeparated by commas or arrows
DIn SQL tables
What is a benefit of using synonym handling?
AFinds more relevant search results
BSpeeds up indexing
CReduces disk space
DPrevents spelling mistakes
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.