mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #13170 from nextcloud/backport/13155/master
[master] allow content provider to generate new Index
This commit is contained in:
commit
6146c47485
2 changed files with 15 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue