A search analyzer converts data into structured tokens that allows an end user to search easily for data. It ensures that data is presented in the same format as the terms defined in Elasticsearch’s inverted index. When using the text data type, you can customize the analyzer, while using match_only_text as your data type only allows you to use the default analyzer.