Skip to content

Commit c2aa926

Browse files
Merge pull request #13155 from nextcloud/fulltextsearc-createindex
[15.0.1] allow content provider to generate new Index
2 parents d543678 + 663f970 commit c2aa926

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

lib/private/FullTextSearch/FullTextSearchManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function getIndex(string $providerId, string $documentId): IIndex {
166166
* @throws FullTextSearchAppNotAvailableException
167167
*/
168168
public function createIndex(string $providerId, string $documentId, string $userId, int $status = 0): IIndex {
169-
return $this->getIndexService()->getIndex($providerId, $documentId);
169+
return $this->getIndexService()->createIndex($providerId, $documentId, $userId, $status);
170170
}
171171

172172

lib/public/FullTextSearch/Service/IIndexService.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@
4444
interface IIndexService {
4545

4646

47+
/**
48+
* Create an Index
49+
*
50+
* @since 15.0.1
51+
*
52+
* @param string $providerId
53+
* @param string $documentId
54+
* @param string $userId
55+
* @param int $status
56+
* @return IIndex
57+
*/
58+
public function createIndex(string $providerId, string $documentId, string $userId, int $status): IIndex;
59+
60+
4761
/**
4862
* Retrieve an Index from the database, based on the Id of the Provider
4963
* and the Id of the Document

0 commit comments

Comments
 (0)