SilverStripe\Elastica\ElasticaSearcher::search
Search against elastica using the criteria already provided, such as page length, start, and of course the filters.
Signature
public function search(string
$queryText,
[array
$fieldsToSearch = NULL,
[boolean
$testMode = false]] )
Parameters
$queryText
—
string
- query string, e.g. 'New Zealand'
$fieldsToSearch
—
array
- Mapping of name to an array of mapping Weight and Elastic mapping,
e.g. array('Title' => array('Weight' => 2, 'Type' => 'string'))
$testMode
—
boolean
Returns
- PaginatedList
- SilverStripe DataObjects returned from the search against ElasticSearch