summaryrefslogtreecommitdiffstats
path: root/lib/private/FullTextSearch
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/FullTextSearch')
-rw-r--r--lib/private/FullTextSearch/FullTextSearchManager.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php
index 444774fb4a7..8ab1af05b0e 100644
--- a/lib/private/FullTextSearch/FullTextSearchManager.php
+++ b/lib/private/FullTextSearch/FullTextSearchManager.php
@@ -85,6 +85,21 @@ class FullTextSearchManager implements IFullTextSearchManager {
$this->searchService = $searchService;
}
+ /**
+ * @since 16.0.0
+ *
+ * @return bool
+ */
+ public function isAvailable(): bool {
+ if ($this->indexService === null ||
+ $this->providerService === null ||
+ $this->searchService === null) {
+ return false;
+ }
+
+ return true;
+ }
+
/**
* @return IProviderService