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/Model
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/Model
parentccf9da66a5f68730a0c1bdf46e9a3ff079165fa0 (diff)
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IndexDocument.php4
1 files changed, 4 insertions, 0 deletions
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(),