public function addBoostedField($field, $forceType = null, $extraOptions = array(), $boost = 2)
    {
        $options = array_merge($extraOptions, array('boost' => $boost));
        $this->addFulltextField($field, $forceType, $options);
    }
public function addBoostedField($field, $forceType = null, $extraOptions = array(), $boost = 2)
    {
        $options = array_merge($extraOptions, array('boost' => $boost));
        $this->addFulltextField($field, $forceType, $options);
    }
public function addBoostedField ( $ field , $ forceType = null , $ extraOptions = array ( ) , $ boost = 2 ) { $ options = array_merge ( $ extraOptions , array ( 'boost' => $ boost ) ) ; $ this -> addFulltextField ( $ field , $ forceType , $ options ) ; }
Add a fulltext field with a boosted value

@param string $field The field to add
@param string $forceType The type to force this field as (required in some cases, when not
detectable from metadata)
@param array $extraOptions Dependent on search implementation
@param float $boost Numeric boosting value (defaults to 2)
Add a fulltext field with a boosted value