Esempio n. 1
0
 /**
  * @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;
 }
Esempio n. 2
0
 /**
  * @param FilterInterface $value
  *
  * @return $this
  */
 public function filter(FilterInterface $value)
 {
     $this->params['filter'] = $value->toArray();
     return $this;
 }