mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #14249 from nextcloud/enhancement/noid/add-gotindex-to-indexdocument
Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument
This commit is contained in:
commit
993609cf51
1 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue