From 899b42116650e4f296234033fb7fd70bd2d8cd9c Mon Sep 17 00:00:00 2001 From: Artur Wierzbicki Date: Fri, 24 Jun 2022 22:17:10 +0400 Subject: [PATCH] Search: Fix pagination in the new search page (#51366) (#51394) * Fix pagination in the new search * update betterer betterer betterer betterer betterer betterer * revert packagejson (cherry picked from commit c496b3e71269d49a94e6836d4584684e8d367627) --- public/app/features/search/service/bluge.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/app/features/search/service/bluge.ts b/public/app/features/search/service/bluge.ts index cf37a55479e..3a40974880e 100644 --- a/public/app/features/search/service/bluge.ts +++ b/public/app/features/search/service/bluge.ts @@ -128,7 +128,18 @@ async function doSearchQuery(query: SearchQuery): Promise { const frame = ( await lastValueFrom( ds.query({ - targets: [{ ...target, refId: 'Page', facet: undefined, from, limit: Math.max(limit, nextPageSizes) }], + targets: [ + { + ...target, + search: { + ...(target?.search ?? {}), + from, + limit: Math.max(limit, nextPageSizes), + }, + refId: 'Page', + facet: undefined, + }, + ], } as any) ) ).data?.[0] as DataFrame;