|
|
@ -226,19 +226,6 @@ foreach($search->get() as $document) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
echo sprintf( |
|
|
|
|
|
|
|
'index "%s" updated: %s %s' . PHP_EOL, |
|
|
|
|
|
|
|
$config->manticore->index->document->name, |
|
|
|
|
|
|
|
print_r( |
|
|
|
|
|
|
|
$result, |
|
|
|
|
|
|
|
true |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
print_r( |
|
|
|
|
|
|
|
$data, |
|
|
|
|
|
|
|
true |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Crawl documents |
|
|
|
// Crawl documents |
|
|
|
$documents = []; |
|
|
|
$documents = []; |
|
|
|
|
|
|
|
|
|
|
@ -359,6 +346,20 @@ foreach($search->get() as $document) |
|
|
|
$document->getId() |
|
|
|
$document->getId() |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Debug result |
|
|
|
|
|
|
|
echo sprintf( |
|
|
|
|
|
|
|
'index "%s" updated: %s %s' . PHP_EOL, |
|
|
|
|
|
|
|
$config->manticore->index->document->name, |
|
|
|
|
|
|
|
print_r( |
|
|
|
|
|
|
|
$result, |
|
|
|
|
|
|
|
true |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
print_r( |
|
|
|
|
|
|
|
$data, |
|
|
|
|
|
|
|
true |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Create snap |
|
|
|
// Create snap |
|
|
|
if ($config->cli->document->crawl->snap->enabled && $code === 200) |
|
|
|
if ($config->cli->document->crawl->snap->enabled && $code === 200) |
|
|
|
{ |
|
|
|
{ |
|
|
|