I am working on Elastic Search (version 7.16) with Oython (version 3.6) I have the below rows in Elastic Search: With the below query: I get distinct table values, something like below: But what I actually want is: I want to know from which database is this table coming from, not just {‘key’: ‘sales_tab’, ‘doc_count’: 2} like extra key: value