From 3a28bf5967fb3a4ead89d97f69fd389456e1e9ce Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 23 Mar 2024 03:26:25 +0200 Subject: [PATCH] reset index time --- src/cli/document/crawl.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index f4f0c84..7be064c 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -156,8 +156,9 @@ foreach($index->search('') // Update index time anyway and set reset code to 404 $index->updateDocument( [ - 'time' => time(), - 'code' => 404 + 'time' => time(), + 'code' => 200, + 'index' => 0 ], $document->getId() ); @@ -207,8 +208,8 @@ foreach($index->search('') $index->updateDocument( [ - 'code' => 200, 'time' => time(), + 'code' => 200, 'index' => 0 ], $document->getId()