Browse Source

remove mime update on progress function execute #10

main
yggverse 8 months ago
parent
commit
b475b4e61b
  1. 7
      src/cli/document/crawl.php

7
src/cli/document/crawl.php

@ -197,19 +197,12 @@ foreach($index->search('') @@ -197,19 +197,12 @@ foreach($index->search('')
$uploaded
) {
global $config;
global $request;
global $index;
global $document;
if (!$mime = curl_getinfo($request, CURLINFO_CONTENT_TYPE))
{
$mime = $document->get('mime');
}
$index->updateDocument(
[
'mime' => $mime,
'time' => time(),
'code' => 200,
'index' => 0

Loading…
Cancel
Save