And store this commented json in your code repository (git or whatever). Note that the comment won't be stored in elasticsearch itself. So if you GET the _mapping back, comments will have been removed.
Thanks for the quick reply.
The solution that you suggest, would be part of the program and say, a Kibana user will not be able to see those descriptions for each field when indices are loaded.
I was looking for a solution which will keep the description in the indices itself.
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.