From 11f8c9e6682bf548f87e6fa683c484b2742f2f48 Mon Sep 17 00:00:00 2001 From: aynsix Date: Tue, 25 Jun 2024 07:38:54 +0300 Subject: [PATCH] add offset and limit in searchraw result --- .../Phrasea/Controller/Api/V3/V3SearchRawController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Alchemy/Phrasea/Controller/Api/V3/V3SearchRawController.php b/lib/Alchemy/Phrasea/Controller/Api/V3/V3SearchRawController.php index 246351bd56..e8a22d0b52 100644 --- a/lib/Alchemy/Phrasea/Controller/Api/V3/V3SearchRawController.php +++ b/lib/Alchemy/Phrasea/Controller/Api/V3/V3SearchRawController.php @@ -45,6 +45,9 @@ public function searchRawAction(Request $request) $search_result = $se->queryraw((string)$request->get('query'), $options); + $search_result['offset'] = $offset; + $search_result['limit'] = $limit; + $stopwatch->lap("queryraw"); // queryraw returns also a stopwatch, get and remove it