summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2018-12-20 09:33:27 +0100
committerGitHub <noreply@github.com>2018-12-20 09:33:27 +0100
commitc2aa9263b7f8a9cb70736a278eb62771b8f7d750 (patch)
tree636247cf59a27317cfd1037eb15eb39c65674351
parentd5436786513a36f3e65f2554d4b87789d8d93c30 (diff)
parent663f9706f709b72f886ef2f54bccb8fcb8157650 (diff)
downloadnextcloud-server-c2aa9263b7f8a9cb70736a278eb62771b8f7d750.tar.gz
nextcloud-server-c2aa9263b7f8a9cb70736a278eb62771b8f7d750.zip
Merge pull request #13155 from nextcloud/fulltextsearc-createindex
[15.0.1] allow content provider to generate new Index
-rw-r--r--lib/private/FullTextSearch/FullTextSearchManager.php2
-rw-r--r--lib/public/FullTextSearch/Service/IIndexService.php14
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
*