123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?php
- declare(strict_types=1);
- namespace OCP\FullTextSearch;
- use OCP\FullTextSearch\Model\IIndex;
- use OCP\FullTextSearch\Model\ISearchResult;
- use OCP\FullTextSearch\Service\IIndexService;
- use OCP\FullTextSearch\Service\IProviderService;
- use OCP\FullTextSearch\Service\ISearchService;
- interface IFullTextSearchManager {
-
- public function registerProviderService(IProviderService $providerService);
-
- public function registerIndexService(IIndexService $indexService);
-
- public function registerSearchService(ISearchService $searchService);
-
- public function isAvailable(): bool;
-
- public function addJavascriptAPI();
-
- public function isProviderIndexed(string $providerId): bool;
-
- public function getIndex(string $providerId, string $documentId): IIndex;
-
- public function createIndex(string $providerId, string $documentId, string $userId, int $status = 0): IIndex;
-
- public function updateIndexStatus(string $providerId, string $documentId, int $status, bool $reset = false);
-
- public function updateIndexesStatus(string $providerId, array $documentIds, int $status, bool $reset = false);
-
- public function updateIndexes(array $indexes);
-
- public function search(array $request, string $userId = ''): array;
- }
|