简体   繁体   English

如何使用 Python 从 elasticsearch 删除获取的文档

[英]How delete fetched documents from elasticsearch with Python

I m fetching some documents from elasticsearch with scroll api.我正在使用滚动 api 从 elasticsearch 获取一些文档。 I'm using python for this operation.我正在使用 python 进行此操作。 I want to ask how to delete that fetched documents from elasticsearch in python?我想问如何删除从 python 中的 elasticsearch 获取的文档? 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.我猜您正在寻找按查询删除,您可以轻松地将其转换为 python 代码并参考SO 答案以了解某些 python 语法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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