mirror of
https://github.com/kvazar-network/index-php.git
synced 2025-01-22 12:54:15 +00:00
fix vars
This commit is contained in:
parent
3373b57d1e
commit
20c040a45f
@ -132,17 +132,17 @@ class Manticore
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function get(
|
public function get(
|
||||||
?string $search = '',
|
?string $query = '',
|
||||||
?array $filter = [],
|
?array $filter = [],
|
||||||
?array $sort = ['id' => 'desc'],
|
?array $sort = ['id' => 'desc'],
|
||||||
?int $offset = 0,
|
?int $offset = 0,
|
||||||
?int $limit = 2
|
?int $limit = 10
|
||||||
): array
|
): array
|
||||||
{
|
{
|
||||||
$records = [];
|
$records = [];
|
||||||
|
|
||||||
$search = $this->_index->search(
|
$search = $this->_index->search(
|
||||||
$search
|
$query
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($filter as $key => $value)
|
foreach ($filter as $key => $value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user