diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php index 9a9b077cf23e6b58e71457bcc4d70b28326197ec..444774fb4a7fcbf3d994b44618f1e76cde12d3f6 100644 --- a/lib/private/FullTextSearch/FullTextSearchManager.php +++ b/lib/private/FullTextSearch/FullTextSearchManager.php @@ -166,7 +166,7 @@ class FullTextSearchManager implements IFullTextSearchManager { * @throws FullTextSearchAppNotAvailableException */ public function createIndex(string $providerId, string $documentId, string $userId, int $status = 0): IIndex { - return $this->getIndexService()->getIndex($providerId, $documentId); + return $this->getIndexService()->createIndex($providerId, $documentId, $userId, $status); } diff --git a/lib/public/FullTextSearch/Service/IIndexService.php b/lib/public/FullTextSearch/Service/IIndexService.php index c5d1b9b3bcf356795213afb45ef8ac5a0f66c89c..b70c7eb965f7312df8e2a59f188219c93e42ba59 100644 --- a/lib/public/FullTextSearch/Service/IIndexService.php +++ b/lib/public/FullTextSearch/Service/IIndexService.php @@ -44,6 +44,20 @@ use OCP\FullTextSearch\Model\IIndex; interface IIndexService { + /** + * Create an Index + * + * @since 15.0.1 + * + * @param string $providerId + * @param string $documentId + * @param string $userId + * @param int $status + * @return IIndex + */ + public function createIndex(string $providerId, string $documentId, string $userId, int $status): IIndex; + + /** * Retrieve an Index from the database, based on the Id of the Provider * and the Id of the Document