Browse Source

fix namespace detection

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

20
src/server.php

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

Loading…
Cancel
Save