Hellos Gays, I'm used elastic 2.3.1 with lucene 5.5.0, this is the issue, I created a custom analyzer when I test work fine, but when indexing doesn't work.
Analyzer is not formatter. _source in _search response is shown original JSON you indexed.
_analyze API show you only how analyzer tokenize text.
Elasticsearch uses only each terms that tokenized by analyzer as inverted index's word.
And Elasticsearch stores input JSON as _source
But elasticsearch does not analyze _source data.
If you want to change original texto to formatted texto in _source, you should format before indexing elasticsearch or use transform feature
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.