elasticsearch - Multi-fields in elasticsearch - elastic - elastic search - elasticsearch tutorial - elasticsearch docker
Multi-fields in elasticsearch
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.
When querying, instead of simply using "user.name" (which in this case would still use the stanard Analyzer) you can use "user.name.special" or "user.name.unanalyzed". Note that the document will remain unchanged, this only affects indexing.