Unless the query is invalid it will always return a 'result array'. It may
complain in the log but it won't abort.
public searchContent ( string $q, array $contenttypes = null, array $filters = null, integer $limit = 9999, integer $offset ) : mixed | ||
$q | string | Search string |
$contenttypes | array | Contenttype names to search for: - string: Specific contenttype - null: Every searchable contenttype |
$filters | array | Additional filters for contenttypes - key is contenttype - value is filter |
$limit | integer | limit the number of results |
$offset | integer | skip this number of results |
return | mixed | false if query is invalid, an array with results if query was executed |