diff options
Diffstat (limited to 'lib/public/FullTextSearch/Model')
-rw-r--r-- | lib/public/FullTextSearch/Model/IndexDocument.php | 11 |
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. |