_query = $query; } /** * Process modifier ('~') * * @param mixed $parameter * @throws Zend_Search_Lucene_Search_QueryParserException */ public function processFuzzyProximityModifier($parameter = null) { #require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' sign must follow term or phrase'); } /** * Transform entry to a subquery * * @param string $encoding * @return Zend_Search_Lucene_Search_Query */ public function getQuery($encoding) { $this->_query->setBoost($this->_boost); return $this->_query; } }