jieter/django-tables2

pagination with elasticsearch-dsl

pfk-beta opened this issue · 1 comments

Hello,

When I'm using django-tables with regular querysets it works like a charm:) But when I switch to elasticsearch, I have a problem with pagination. Does anyone had similar setup?

Hello @pfk-beta,

You should use .scan() method after invoking search. It is described: https://elasticsearch-dsl.readthedocs.io/en/latest/search_dsl.html#pagination