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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-02-19 13:59:26 +0300
committerGitHub <noreply@github.com>2019-02-19 13:59:26 +0300
commit993609cf51067066a764830dd17c49a9024cf04d (patch)
treeed4d23f338deab8f4ddb3e909a5accd782049b2a /lib
parent0882b6008e228d1b3ac9c59b12afdf0786a08cdf (diff)
parent29a98215835f06236149d209c0e2583164a3a3df (diff)
Merge pull request #14249 from nextcloud/enhancement/noid/add-gotindex-to-indexdocument
Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument
Diffstat (limited to 'lib')
-rw-r--r--lib/public/FullTextSearch/Model/IndexDocument.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/FullTextSearch/Model/IndexDocument.php b/lib/public/FullTextSearch/Model/IndexDocument.php
index 78679ac6225..d00a8461ee8 100644
--- a/lib/public/FullTextSearch/Model/IndexDocument.php
+++ b/lib/public/FullTextSearch/Model/IndexDocument.php
@@ -183,6 +183,17 @@ class IndexDocument implements JsonSerializable {
return $this->index;
}
+ /**
+ * return if Index is defined.
+ *
+ * @since 16.0.0
+ *
+ * @return bool
+ */
+ final public function hasIndex(): bool {
+ return $this->index !== null;
+ }
+
/**
* Set the modified time of the original document.