mirror of
https://github.com/simon987/od-database.git
synced 2025-12-16 08:09:04 +00:00
Decentralised crawling should work in theory + temporary fix for going further than the maximum 10k results elasticsearch allows by default
This commit is contained in:
@@ -168,7 +168,7 @@ class ElasticSearchEngine(SearchEngine):
|
||||
"path": {"pre_tags": ["<mark>"], "post_tags": ["</mark>"]}
|
||||
}
|
||||
},
|
||||
"size": per_page, "from": page * per_page}, index=self.index_name)
|
||||
"size": per_page, "from": min(page * per_page, 10000 - per_page)}, index=self.index_name)
|
||||
|
||||
return page
|
||||
|
||||
|
||||
Reference in New Issue
Block a user