elasticsearch - Analyzers in elasticsearch - elastic - elastic search - elasticsearch tutorial - elasticsearch docker
Analyzers in elasticsearch
Analysis in elasticsearch comes into context when you are willing to analyze the data in your index. Analyzers allow us to perform following:
- Abbreviations
- Stemming
- Typo Handling
We will be looking at each of them now.
Abbreviations: Abbreviations:
Using analyzers, we can tell elasticsearch how to treat abbreviations in our data i.e. dr => Doctor so whenever we search for doctor keyword in our index, elasticsearch will also return the results which have dr mentioned in them.
Stemming:
Word | Modification |
---|---|
require | requirement,required |
Typo Handling:
Analyzers also provide typo handling as while querying if we are searching for particular word say 'resurrection', then elasticsearch will return the results in which typos are present.i.e. it will treat typos like resurection,ressurection as same and will retun the result.
Word | Modification |
---|---|
resurrection | resurection,ressurection |
Analyzers in Elasticsearch
- Standard
- Simple
- Whitespace
- Stop
- Keyword
- Pattern
- Language
- Snowball