mirror of
https://github.com/kvazar-network/crawler.git
synced 2025-01-08 22:27:56 +00:00
add multiple data type index support
This commit is contained in:
parent
fc0312d5a9
commit
a6a1e51ced
@ -342,26 +342,6 @@ for ($block = $state + 1; $block <= $blocks; $block++)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip binary index
|
|
||||||
if (false === mb_detect_encoding((string) $namespace, null, true)
|
|
||||||
||
|
|
||||||
false === mb_detect_encoding((string) $key, null, true)
|
|
||||||
||
|
|
||||||
false === mb_detect_encoding((string) $value, null, true))
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Skip base64 index
|
|
||||||
if (base64_encode(base64_decode($namespace, true)) === $namespace
|
|
||||||
||
|
|
||||||
base64_encode(base64_decode($key, true)) === $key
|
|
||||||
||
|
|
||||||
base64_encode(base64_decode($value, true)) === $value)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add index record
|
// Add index record
|
||||||
$index->add(
|
$index->add(
|
||||||
$raw['time'],
|
$raw['time'],
|
||||||
|
Loading…
Reference in New Issue
Block a user