Created
April 5, 2017 05:28
-
-
Save tilakpatidar/f4a6dc910e336e7282bfe69fede332f7 to your computer and use it in GitHub Desktop.
Elasticsearch delete by query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import elasticsearch as es | |
db = es.Elasticsearch(['y-monitoring-vm2.dnspam'], port= 9200) | |
db.delete_by_query(index= 'lake_garda_hadoop-test', doc_type='stock_accuracy', body={}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment