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-01-27 17:59:46 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-01-27 17:59:46 +0300
commitc3f7a2408fadeffcaa4c642665ba38242a04424a (patch)
tree431d07cb8b9eeca6278c62ea7de9997fdcc635ac /lib
parentccf9da66a5f68730a0c1bdf46e9a3ff079165fa0 (diff)
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Command/Index.php2
-rw-r--r--lib/Model/IndexDocument.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/Command/Index.php b/lib/Command/Index.php
index 2c2d62b..9517727 100644
--- a/lib/Command/Index.php
+++ b/lib/Command/Index.php
@@ -111,10 +111,10 @@ class Index extends ExtendedBase {
try {
$this->runner->sourceIsCommandLine($this, $output);
$this->runner->start();
- $this->runner->output('indexing.');
$providers = $this->providerService->getProviders();
foreach ($providers as $provider) {
+ $this->runner->output('indexing ' . $provider->getName() . '.');
$provider->setRunner($this->runner);
$this->indexProvider($provider);
}
diff --git a/lib/Model/IndexDocument.php b/lib/Model/IndexDocument.php
index ab442d3..e3e160e 100644
--- a/lib/Model/IndexDocument.php
+++ b/lib/Model/IndexDocument.php
@@ -353,8 +353,10 @@ class IndexDocument implements \JsonSerializable {
public function cleanExcerpt($excerpt) {
$excerpt = str_replace("\\n", ' ', $excerpt);
$excerpt = str_replace("\\r", ' ', $excerpt);
+ $excerpt = str_replace("\\t", ' ', $excerpt);
$excerpt = str_replace("\n", ' ', $excerpt);
$excerpt = str_replace("\r", ' ', $excerpt);
+ $excerpt = str_replace("\t", ' ', $excerpt);
return $excerpt;
}
@@ -431,6 +433,7 @@ class IndexDocument implements \JsonSerializable {
unset($this->title);
unset($this->content);
unset($this->link);
+ unset($this->tags);
unset($this->more);
unset($this->excerpts);
unset($this->score);
@@ -448,6 +451,7 @@ class IndexDocument implements \JsonSerializable {
'access' => $this->getAccess(),
'modifiedTime' => $this->getModifiedTime(),
'title' => $this->getTitle(),
+ 'tags' => $this->getTags(),
'link' => $this->getLink(),
'more' => $this->getMore(),
'excerpts' => $this->getExcerpts(),