How to use Python Elasticsearch mget() API
How to use Python Elasticsearch mget() API
mget()
is used when you retrieve multiple document via document id.
You should pass body = {ids: [doc_id1, doc_id2]}
as describe ES Multi GET API
es_client.mget(index = bank,
doc_type = account,
body = {ids: [100, 101]})