Browse Source

disable document autodelete

main
yggverse 9 months ago
parent
commit
34fe26fcf9
  1. 2
      src/cli/document/crawl.php

2
src/cli/document/crawl.php

@ -213,6 +213,7 @@ foreach($index->search('') @@ -213,6 +213,7 @@ foreach($index->search('')
if ($code = curl_getinfo($request, CURLINFO_HTTP_CODE))
{
// Delete deprecated document from index as HTTP code still not 200
/*
if ($code != 200 && !empty($data['code']) && $data['code'] != 200)
{
$index->deleteDocument(
@ -221,6 +222,7 @@ foreach($index->search('') @@ -221,6 +222,7 @@ foreach($index->search('')
continue;
}
*/
$data['code'] = $code;

Loading…
Cancel
Save