ISearch

interface OCP\ISearch
Small Interface for Search
Implemented by:OC\Search
Source:lib/public/ISearch.php#34

Methods

public OCP\ISearch::searchPaged($query, $inApps=[], $page=1, $size=30)
Search all providers for $query
Source:

lib/public/ISearch.php#46

Parameters:
  • $query (string)
  • $inApps (string[]) optionally limit results to the given apps
  • $page (int) pages start at page 1
  • $size (int)
Returns:

array An array of OCP\Search\Result’s

Since:

8.0.0

Deprecated:

20.0.0

public OCP\ISearch::registerProvider($class, $options=[])
Register a new search provider to search with
Source:

lib/public/ISearch.php#55

Parameters:
  • $class (string) class name of a OCPSearchProvider
  • $options (array) optional
Since:

7.0.0

Deprecated:

20.0.0

public OCP\ISearch::removeProvider($provider)
Remove one existing search provider
Source:

lib/public/ISearch.php#63

Parameters:
  • $provider (string) class name of a OCPSearchProvider
Since:

7.0.0

Deprecated:

20.0.0

public OCP\ISearch::clearProviders()
Remove all registered search providers
Source:lib/public/ISearch.php#70
Since:7.0.0
Deprecated:20.0.0