7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Search_Lucene
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: QueryEntry.php 16971 2009-07-22 18:05:45Z mikaelkael $
23 /** Zend_Search_Lucene_Index_Term */
24 require_once 'Zend/Search/Lucene/Index/Term.php';
26 /** Zend_Search_Lucene_Search_QueryEntry_Term */
27 require_once 'Zend/Search/Lucene/Search/QueryEntry/Term.php';
29 /** Zend_Search_Lucene_Search_QueryEntry_Phrase */
30 require_once 'Zend/Search/Lucene/Search/QueryEntry/Phrase.php';
32 /** Zend_Search_Lucene_Search_QueryEntry_Subquery */
33 require_once 'Zend/Search/Lucene/Search/QueryEntry/Subquery.php';
37 * @package Zend_Search_Lucene
39 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
40 * @license http://framework.zend.com/license/new-bsd New BSD License
42 abstract class Zend_Search_Lucene_Search_QueryEntry
45 * Query entry boost factor
49 protected $_boost = 1.0;
53 * Process modifier ('~')
55 * @param mixed $parameter
57 abstract public function processFuzzyProximityModifier($parameter = null);
61 * Transform entry to a subquery
63 * @param string $encoding
64 * @return Zend_Search_Lucene_Search_Query
66 abstract public function getQuery($encoding);
71 * @param float $boostFactor
73 public function boost($boostFactor)
75 $this->_boost *= $boostFactor;