Convert Elasticsearch mapping to JSON or Avro schema

Is it possible to convert the mapping of one of my indexes to a JSON or an Avro schema? I think that's not possible with Elasticsearch, but maybe you know other tools to achieve that conversion. Thank you.

Mappings are in json already.

Thanks, Mark. They are in JSON, but they are not a standard JSONSchema describing the fields and types. I need to convert it into a standard Avro schema o JSONSchema.

There's nothing native in ES to convert index mappings to JSON Schema. Perhaps someone has written a script for it?

1 Like