python - How to get a list of all document types -
i use elesticserach_dsl
in python
searching, , it. thing not know how impement, how list of different document types. catch type
field plays me same role table name in sql
, , want do, somehow mimic show tables
command.
i don't know how in python, elasticsearch point of view, how request looks like:
get /_all/_search?search_type=count { "aggs": { "name": { "terms": { "field": "_type", "size": 100 } } } }
Comments
Post a Comment