SilverStripe\FullTextSearch\Search\Queries\SearchQuery::addSearchTerm
Signature
public function addSearchTerm(string
$text,
[array
$fields = NULL,
[array
$boost = ]] )
Parameters
$text
—
string
- Search terms. Exact format (grouping, boolean expressions, etc.) depends on
the search implementation.
$fields
—
array
- Limits the search to specific fields (using composite field names)
$boost
—
array
- Map of composite field names to float values. The higher the value,
the more important the field gets for relevancy.
Returns
- $this