ISearchQuery
in
The query objected passed into \OCP\Search\IProvider::search
This mainly wraps the search term, but will ensure that Nextcloud can add new optional properties to a search request without having break the interface of \OCP\Search\IProvider::search.
Tags
Table of Contents
Constants
- SORT_DATE_DESC = 1
Methods
- getCursor() : int|string|null
- Get the app-specific cursor of the tail of the previous result entries
- getFilter() : IFilter|null
- Get a single request filter
- getFilters() : IFilterCollection
- Get request filters
- getLimit() : int
- Get the number of items to return for a paginated result
- getRoute() : string
- getRouteParameters() : array<string|int, mixed>
- getSortOrder() : int
- Get the sort order of results as defined as SORT_* constants on this interface
- getTerm() : string
- Get the user-entered search term to find matches for
Constants
SORT_DATE_DESC
public
mixed
SORT_DATE_DESC
= 1
Tags
Methods
getCursor()
Get the app-specific cursor of the tail of the previous result entries
public
getCursor() : int|string|null
Tags
Return values
int|string|nullgetFilter()
Get a single request filter
public
getFilter(string $name) : IFilter|null
Parameters
- $name : string
Tags
Return values
IFilter|nullgetFilters()
Get request filters
public
getFilters() : IFilterCollection
Tags
Return values
IFilterCollectiongetLimit()
Get the number of items to return for a paginated result
public
getLimit() : int
Tags
Return values
intgetRoute()
public
getRoute() : string
Tags
Return values
stringgetRouteParameters()
public
getRouteParameters() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getSortOrder()
Get the sort order of results as defined as SORT_* constants on this interface
public
getSortOrder() : int
Tags
Return values
intgetTerm()
Get the user-entered search term to find matches for
public
getTerm() : string
Tags
Return values
string —the search term