Get mapping in "flat" format

(Benjamin Gathmann) #1

Is there a possibility to get the leaf field names in the mappings from an ES index in a flat format?

"" : { properties... }

instead of {"message": { "author" : { "firstname" (very simplified)

Essentially, I want to build a view similar to that in Kibana Settings that gives an overview of the fields and their properties in an index:

name                                         type          format ....    string     string

(Mark Walkom) #2

No it's not. You;'d have to do it yourself.

(Benjamin Gathmann) #3

That's a bit of the pity - I have also had a closer look at the official Elasticsearch-PHP client that I work with, but there is currently no such method. Maybe I'll add it myself.

(Mark Walkom) #4

PRs welcome!

(system) #5