Aggregate query similar to kibana Discover

Good morning everyone.
How can I make an aggregated query that has the same Kibana Discovery behavior?
Even without searching, all fields in my index are aggregated.

GET /amazoninf.teste.analisador/_search
  "size": 0,
  "aggregations": {
    "my_agg": {
      "terms": {
        "field": "all fields"

Thank you very much elastic team


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.