|
|
|
@ -226,19 +226,6 @@ foreach($search->get() as $document)
@@ -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 |
|
|
|
|
$documents = []; |
|
|
|
|
|
|
|
|
@ -359,6 +346,20 @@ foreach($search->get() as $document)
@@ -359,6 +346,20 @@ foreach($search->get() as $document)
|
|
|
|
|
$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 |
|
|
|
|
if ($config->cli->document->crawl->snap->enabled && $code === 200) |
|
|
|
|
{ |
|
|
|
|