SilverStripe\MSSQL\MSSQLDatabase::searchEngine
The core search engine configuration.
Picks up the fulltext-indexed tables from the database and executes search on all of them. Results are obtained as ID-ClassName pairs which is later used to reconstruct the DataObjectSet.
Signature
public function searchEngine(array
$classesToSearch,
string
$keywords,
int
$start,
int
$pageLength,
[string
$sortBy = "Relevance DESC",
[string
$extraFilter = "",
[boolean
$booleanSearch = false,
[string
$alternativeFileFilter = "",
[boolean
$invertedMatch = false]]]]] )
Parameters
$classesToSearch
— array- computes all descendants and includes them. Check is done via WHERE clause.
$keywords
— string- Keywords as a space separated string
$start
— int$pageLength
— int$sortBy
— string$extraFilter
— string$booleanSearch
— boolean
$alternativeFileFilter
— string$invertedMatch
— boolean
Returns
- PaginatedList
- DataObjectSet of result pages