From 20c040a45f7a2c014c8716a28881535a0627a50a Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 13 Feb 2024 01:55:06 +0200 Subject: [PATCH] fix vars --- src/Manticore.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Manticore.php b/src/Manticore.php index a380c60..fadd68b 100644 --- a/src/Manticore.php +++ b/src/Manticore.php @@ -132,17 +132,17 @@ class Manticore } public function get( - ?string $search = '', + ?string $query = '', ?array $filter = [], ?array $sort = ['id' => 'desc'], ?int $offset = 0, - ?int $limit = 2 + ?int $limit = 10 ): array { $records = []; $search = $this->_index->search( - $search + $query ); foreach ($filter as $key => $value)