'Go to random website' button, and navigation in the website list

This commit is contained in:
Simon
2018-07-08 10:42:14 -04:00
parent 9ff21e7943
commit 711e8282ef
4 changed files with 60 additions and 6 deletions

View File

@@ -405,7 +405,6 @@ class ElasticSearchEngine(SearchEngine):
return stats
def stream_all_docs(self):
return helpers.scan(query={
"query": {
@@ -413,7 +412,6 @@ class ElasticSearchEngine(SearchEngine):
}
}, scroll="5m", client=self.es, index=self.index_name)
def are_empty(self, websites):
result = self.es.search(body={
"query": {