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
|
@ -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 New Issue