mirror of
https://github.com/simon987/od-database.git
synced 2025-12-16 08:09:04 +00:00
Elasticsearch export to csv
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user