Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-07-24 22:01:04 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-07-24 22:01:04 +0300
commit314ffa8d41dc3977f6a3bcb87d8372a01795933f (patch)
treec62009aacf99b5bbedbd0279a0bb0efc0dda7ba3 /lib
parent2c30f0cfad4383d02013ee1904eafb271f9ae500 (diff)
force update also status
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/IndexService.php6
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);