It will then pass on the results to the specific modules, which are then
responsible for returning the required data and filtering out unwanted
results (entries that should not be shown)
The activation/deactivation of search indices will automatically be
handled by this function to keep the search index up to date, based on
the module's returned results
This function can be called with either a string as parameter (simple
search) or an array (advanced search)
Simple search: all search index fields will be searched for the given
term
Advanced search: only the given fields (keys in the array) will be
matched to the corresponding values (corresponding values in the array)
public static search ( string $term, integer $limit = 20, integer $offset ) : array | ||
$term | string | The search term (simple search) or the fields to search for (advanced search - please note that the field names may not be consistent throughout several modules). |
$limit | integer | The number of articles to get. |
$offset | integer | The offset. |
return | array |