From 6a9117757b182c5190c9ffbd5aa67bdd02cab3b7 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 27 Nov 2023 19:44:14 +0200 Subject: [PATCH] reset http code to 404 on page index initiation --- src/cli/document/crawl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index a19e00d..c432a01 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -73,7 +73,8 @@ foreach($search->get() as $document) // Update index time $index->updateDocument( [ - 'time' => time() + 'time' => time(), + 'code' => 404 ], $document->getId() );