diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-01-27 17:59:46 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-01-27 17:59:46 +0300 |
commit | c3f7a2408fadeffcaa4c642665ba38242a04424a (patch) | |
tree | 431d07cb8b9eeca6278c62ea7de9997fdcc635ac /lib | |
parent | ccf9da66a5f68730a0c1bdf46e9a3ff079165fa0 (diff) |
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Index.php | 2 | ||||
-rw-r--r-- | lib/Model/IndexDocument.php | 4 |
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(), |