diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-07-24 22:01:04 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-07-24 22:01:04 +0300 |
commit | 314ffa8d41dc3977f6a3bcb87d8372a01795933f (patch) | |
tree | c62009aacf99b5bbedbd0279a0bb0efc0dda7ba3 /lib | |
parent | 2c30f0cfad4383d02013ee1904eafb271f9ae500 (diff) |
force update also status
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/IndexService.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Service/IndexService.php b/lib/Service/IndexService.php index 0bc9751..add11a5 100644 --- a/lib/Service/IndexService.php +++ b/lib/Service/IndexService.php @@ -156,12 +156,15 @@ class IndexService { $index->setLastIndex(); } + if ($options->getOption('force', false) === true) { + $index->setStatus(Index::INDEX_FULL); + } + $document->setIndex($index); if ($options->getOption('force', false) === true || !$this->isDocumentUpToDate($provider, $document)) { $result[] = $document; } - } return $result; @@ -216,7 +219,6 @@ class IndexService { $max = sizeof($documents); for ($i = 0; $i < $max; $i++) { - $this->updateRunner('indexChunk'); try { $chunk = array_splice($documents, 0, $chunkSize); |