From 34fe26fcf9882d72bfe144c053f645374d8d98e5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 23 Mar 2024 03:15:01 +0200 Subject: [PATCH] disable document autodelete --- src/cli/document/crawl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 937679d..04eba22 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -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('') continue; } + */ $data['code'] = $code;