Synonym
A synonym is a word or expression with the same or a closely related meaning as another word or expression, particularly in a given context.
Elasticsearch in Action, Second Edition
A synonym is an alternative word or phrase treated as semantically equivalent to another word for search or text processing.
- How it is used
- Improves full-text search relevance by matching varied user vocabulary during text analysis.
- How deep it goes
- Defines synonyms and demonstrates token-filter configuration, _analyze testing, and filesystem loading without detailing token-stream internals.
- Examples
- Uses passion, cognizance, soccer, football, author, writer, and synonyms.txt to demonstrate missed matches, mappings, and normalization.
- What you can do after
- Apply it via an Elasticsearch synonym token filter, _analyze API, or synonyms_path file to test and maintain synonym mappings.
Read how Elasticsearch in Action, Second Edition explains synonym →
AI-Powered Search
A synonym is a replacement term sequence that represents the same or a very similar thing as another term sequence.
- How it is used
- Supports search engines through synonym lists that substitute equivalent or closely related term sequences.
- How deep it goes
- Defines synonyms, distinguishes alternative labels, and relates mappings to taxonomies; it stops short of implementation details.
- Examples
- Uses human, homo sapiens, mankind, software engineer, and software developer as synonym examples.
- What you can do after
- Evaluate/understand whether term sequences represent the same or a very similar thing in a search domain.
Related concepts
- normalizationused by · Normalization is the process of transforming a value, representation, or data structure to satisfy a specified standard, scale, or structural constraint.
- lemmatizationcontrasts with · Lemmatization is the linguistic normalization of inflected word forms to their canonical dictionary forms, called lemmas.
- text analyzerused by · A text analyzer is a component that transforms text into terms or other linguistic representations for indexing and searching.
- taxonomypart of · A taxonomy is a structured system for classifying entities or concepts into categories, which may be arranged hierarchically.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

