SilverStripe\FullTextSearch\Solr\SolrIndex::setFieldBoosting
Set the default boosting level for a specific field.
Will control the default value for qf param (Query Fields), but will not override a query-specific value. Fields must be added before having a field boosting specified
Signature
public function setFieldBoosting(string
$field,
float|null
$level )
Parameters
$field
— string- Full field key (Model_Field)
$level
— object- Numeric boosting value. Set to null to clear boost