Elasticsearch export to csv

This commit is contained in:
Simon
2018-06-19 09:48:44 -04:00
parent 81d52a4551
commit e5e38a6faf
5 changed files with 57 additions and 11 deletions

View File

@@ -283,3 +283,11 @@ class ElasticSearchEngine(SearchEngine):
stats["base_url"] = "entire database"
return stats
def stream_all_docs(self):
return helpers.scan(query={
"query": {
"match_all": {}
}
}, scroll="5m", client=self.es, index=self.index_name)