SilverStripe\FullTextSearch\Solr\SolrIndex::addBoostedField
Add a fulltext field with a boosted value
Signature
public function addBoostedField(string
$field,
[string
$forceType = NULL,
[array
$extraOptions = ,
[integer
$boost = 2]]] )
Parameters
$field
—
string
- The field to add
$forceType
—
string
- The type to force this field as (required in some cases, when not
detectable from metadata)
$extraOptions
—
array
- Dependent on search implementation
$boost
—
integer
- Numeric boosting value (defaults to 2)