Tutorial by Examples

An Analyzer can be applied to a mapping by using "analyzer", by default the "standard" Analyzer is used. Alternatively, if you do not wish to have any analyzer used (because tokenizing or normalization would not be useful) you may specify "index":"not_analyzed&quo...
Sometimes it maybe useful to have multiple distinct indexes of a field with different Analyzers. You can use the multi-fields capability to do so. PUT my_index { "mappings": { "user": { "properties": { "name": { "type...
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: Using analyzers, we can tell elasticsearch how to t...
Sometimes, we may need to ignore the case of our query, with respect to the match in the document. An analyzer can be used in this case to ignore the case while searching. Each field will have to contain this analyzer in it's property, in order to work: "settings": { "analys...

Page 1 of 1