Browse Source

fix namespace detection

main
ghost 8 months ago
parent
commit
548614ead1
  1. 20
      src/server.php

20
src/server.php

@ -135,6 +135,16 @@ $server->setHandler(
$namespace = $ns[1]; $namespace = $ns[1];
} }
if ($namespace)
{
$filter =
[
'crc32_namespace' => crc32(
$namespace
)
];
}
// Build header // Build header
if ($search) if ($search)
{ {
@ -235,16 +245,6 @@ $server->setHandler(
} }
// Get records // Get records
if ($namespace)
{
$filter =
[
'crc32_namespace' => crc32(
$namespace
)
];
}
$records = $index->get( $records = $index->get(
$search, $search,
$filter, $filter,

Loading…
Cancel
Save