Documentation

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
see
IProvider::search
since
20.0.0

Table of Contents

SORT_DATE_DESC  = 1
getCursor()  : int|string|null
Get the app-specific cursor of the tail of the previous result entries
getLimit()  : int
Get the number of items to return for a paginated result
getRoute()  : string
getRouteParameters()  : array
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
since
20.0.0

Methods

getCursor()

Get the app-specific cursor of the tail of the previous result entries

public getCursor() : int|string|null
Tags
see
IProvider

for details

since
20.0.0
Return values
int|string|null —

getLimit()

Get the number of items to return for a paginated result

public getLimit() : int
Tags
see
IProvider

for details

since
20.0.0
Return values
int —

getRoute()

public getRoute() : string
Tags
since
20.0.0
Return values
string —

getRouteParameters()

public getRouteParameters() : array
Tags
since
20.0.0
Return values
array —

getSortOrder()

Get the sort order of results as defined as SORT_* constants on this interface

public getSortOrder() : int
Tags
since
20.0.0
Return values
int —

getTerm()

Get the user-entered search term to find matches for

public getTerm() : string
Tags
since
20.0.0
Return values
string —

the search term

Search results