public function append($query) { if ($this->getFilteringState()) { $this->query->addFilter($query, $this->getBoolState()); } else { $this->query->addQuery($query, $this->getBoolState()); } return $this; }