From 9cb88a28e0242dd879063215731b90ebce7ae8b8 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Fri, 16 Jun 2023 17:13:06 -0700 Subject: [PATCH] Design doc for `LIMIT` in pagination. Signed-off-by: Yury-Fridlyand --- docs/dev/limit-in-pagination.md | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 docs/dev/limit-in-pagination.md diff --git a/docs/dev/limit-in-pagination.md b/docs/dev/limit-in-pagination.md new file mode 100644 index 0000000000..5a41adb363 --- /dev/null +++ b/docs/dev/limit-in-pagination.md @@ -0,0 +1,62 @@ +## Background + +Scrolled search is performed by request to `http://localhost:9200//_search?scroll=` endpoint and it has a mandatory field `size`, which defines page size: +```json +{ + "size" : 5 +} +``` +Regular (non-scrolled/non-paged) search is performed by request to `http://localhost:9200/