|
| search ($queries, $andor, $limit, $start, $uid) |
|
SearchPluginInterface::search |
( |
|
$queries, |
|
|
|
$andor, |
|
|
|
$limit, |
|
|
|
$start, |
|
|
|
$uid |
|
) |
| |
search method
- Parameters
-
| string[] | $queries search term strings |
string | $andor | $queries relation, either 'AND' or 'OR' |
int | $limit | maximum number of matches to return |
int | $start | offset in full set of matches |
type | $uid | user id to limit search |
- Returns
- array of items matching criteria Each item is an associative array with the following keys: 'title' => result title 'content' => content preview 'link' => url to full content 'time' => unix timestamp of item 'uid' => associated user id 'image' => icon to display by result
- Todo:
- the result item should be a defined object
The documentation for this interface was generated from the following file: