From d7651fd96dcfa2829519504e4c8ec1ce511cd57f Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 7 Nov 2016 21:41:36 +0100 Subject: Big patch merging crawling+indexing into one command, new json document structure --- www/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/index.php b/www/index.php index 5261156..8bf8147 100644 --- a/www/index.php +++ b/www/index.php @@ -115,8 +115,8 @@ foreach ($res->hits->hits as &$hit) { $doc->extra = new \stdClass(); $doc->extra->cleanUrl = preg_replace('#^.*://#', '', $doc->url); - if (isset($doc->modate)) { - $doc->extra->day = substr($doc->modate, 0, 10); + if (isset($doc->status->modate)) { + $doc->extra->day = substr($doc->status->modate, 0, 10); } } -- cgit v1.2.3