/** * @param components\FilterInterface $filter * @param $boost * @return $this */ public function filter(components\FilterInterface $filter, $boost) { $this->params['filters'][] = array("filter" => $filter->toArray(), 'boost' => $boost); return $this; }
/** * @param FilterInterface $value * * @return $this */ public function filter(FilterInterface $value) { $this->params['filter'] = $value->toArray(); return $this; }