简体   繁体   中英

How delete fetched documents from elasticsearch with Python

I m fetching some documents from elasticsearch with scroll api. I'm using python for this operation. I want to ask how to delete that fetched documents from elasticsearch in python? Can someone give an example of this. Thanks for answering

I guess you are looking for Delete by query and you can easily convert this to python code and refer this SO answer for some python syntax.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM