File indexing completed on 2024-06-23 05:55:39

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Search_Lucene
0017  * @subpackage Search
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id$
0021  */
0022 
0023 /**
0024  * @category   Zend
0025  * @package    Zend_Search_Lucene
0026  * @subpackage Search
0027  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0028  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0029  */
0030 abstract class Zend_Search_Lucene_Search_QueryEntry
0031 {
0032     /**
0033      * Query entry boost factor
0034      *
0035      * @var float
0036      */
0037     protected $_boost = 1.0;
0038 
0039 
0040     /**
0041      * Process modifier ('~')
0042      *
0043      * @param mixed $parameter
0044      */
0045     abstract public function processFuzzyProximityModifier($parameter = null);
0046 
0047 
0048     /**
0049      * Transform entry to a subquery
0050      *
0051      * @param string $encoding
0052      * @return Zend_Search_Lucene_Search_Query
0053      */
0054     abstract public function getQuery($encoding);
0055 
0056     /**
0057      * Boost query entry
0058      *
0059      * @param float $boostFactor
0060      */
0061     public function boost($boostFactor)
0062     {
0063         $this->_boost *= $boostFactor;
0064     }
0065 
0066 
0067 }