How to do the elastic search bulk get operation with multiple document Id's using python

I would like to do elastic search bulk get operation with multiple document Id's using python. But I could able to find proper solution.

Code which I'm using to get the single document based on document Id.
import elasticsearch
es=Elasticsearch()
result_dict=es.get(index=indexname, doc_type=doctype,id="TEST")

I would like to get for multiple Id's like : TEST, TEST1, TEST2, etc ...

Any help would appreciated .

You have to use this API https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docs-multi-get.html not the get api.

I don't know how you write it in python.

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