public function where($field, $value) { $this->query = $this->index->addConditionToQuery($this->query, array('field' => $field, 'value' => $value, 'required' => true, 'filter' => true)); return $this; }
/** * Initialize and return a new Query instance on this index * with the requested where condition. * * @param string $field * @param mixed $value * * @return \Mmanos\Search\Query */ public function where($field, $value) { $query = new Query($this); return $query->where($field, $value); }