diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-12-20 11:37:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 11:37:18 +0100 |
commit | 6146c474850557c16d5ac03477e9f8664b2555a7 (patch) | |
tree | 8106e033ac3b4760e5e87f17678de0a60fa7cdb9 /lib | |
parent | 6dccd4e5e2f7ee966b11f6f958832cdd4d8eca30 (diff) | |
parent | 5557485abac05544d02916f478ca64ef3b22e5cc (diff) | |
download | nextcloud-server-6146c474850557c16d5ac03477e9f8664b2555a7.tar.gz nextcloud-server-6146c474850557c16d5ac03477e9f8664b2555a7.zip |
Merge pull request #13170 from nextcloud/backport/13155/master
[master] allow content provider to generate new Index
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/FullTextSearch/FullTextSearchManager.php | 2 | ||||
-rw-r--r-- | lib/public/FullTextSearch/Service/IIndexService.php | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php index 9a9b077cf23..444774fb4a7 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 c5d1b9b3bcf..b70c7eb965f 100644 --- a/lib/public/FullTextSearch/Service/IIndexService.php +++ b/lib/public/FullTextSearch/Service/IIndexService.php @@ -45,6 +45,20 @@ 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 * |