diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 7be064c..2f1d102 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -203,11 +203,19 @@ foreach($index->search('') $upload, $uploaded ) { + 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