CWP\Search\CwpSearchEngine::search
Get a CwpSearchResult for a given criterea
Signature
public function search(string
$keywords,
array
$classes,
SolrIndex
$searchIndex,
[integer
$limit = 1,
[integer
$start = 0,
[boolean
$followSuggestions = false]]] )
Parameters
$keywords
—
string
$classes
—
array
$searchIndex
—
object
$limit
—
integer
- Max number of results for this page
$start
—
integer
- Skip this number of records
$followSuggestions
—
boolean
- True to enable suggested searches to be returned immediately
Returns
- CwpSearchResult|null