Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch pagination and limit max number of pages

We want to filter products, by search term, category, price, location, and a few more.

In Elasticsearch deep paging is problematic, but if we limit to 20 items per page and max number of pages to 100, will be this ok?

https://www.elastic.co/guide/en/elasticsearch/guide/current/pagination.html

like image 660
Combo Avatar asked Mar 07 '23 11:03

Combo


1 Answers

Yes. That is ok as long from+size is below 10000 (default limit)

like image 63
dadoonet Avatar answered Mar 18 '23 12:03

dadoonet