From 790ca38644b8c37c9feb7c433143a6b49b4f137e Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Wed, 18 Jan 2023 02:41:10 -0700 Subject: added pagination and results per page --- definitions.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'definitions.go') diff --git a/definitions.go b/definitions.go index 2289865..6a7b9d1 100644 --- a/definitions.go +++ b/definitions.go @@ -3,7 +3,7 @@ package main type SearchQuery struct { Query string MaxResults int64 - Offset int64 + Page int64 } type BaseResponse struct { @@ -21,6 +21,11 @@ type SearchResponse struct { Offset int64 LastOffset int64 NumPages int + MaxResults int64 + CurPage int64 + ShowPrev bool + PrevPage int64 + NextPage int64 } type DocumentResponse struct { -- cgit v1.2.3