python - django haystack: how to iterate over all indexed elements -


i trying iterate on search queryset haystack, throws me error:

result window large, + size must less or equal to: [10000] [11010]. see scroll api more efficient way request large data sets. limit can set changing [index.max_result_window] index level parameter.

is there way iterate on indexed elements? (let's have several million records).

max_result_window index setting can change if want of time don't have to, because if you'd iterate on documents using search api not way should go. try scan , scroll api.

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html

and personal note: use elasticsearch django , found haystack difficult use opposed elasticsearch-dsl. try have elasticsearch-dsl-py. https://github.com/elastic/elasticsearch-dsl-py


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -