File indexing completed on 2025-01-19 05:21:26
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 Index 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 /** 0025 * A Zend_Search_Lucene_Index_TermInfo represents a record of information stored for a term. 0026 * 0027 * @category Zend 0028 * @package Zend_Search_Lucene 0029 * @subpackage Index 0030 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0031 * @license http://framework.zend.com/license/new-bsd New BSD License 0032 */ 0033 class Zend_Search_Lucene_Index_TermInfo 0034 { 0035 /** 0036 * The number of documents which contain the term. 0037 * 0038 * @var integer 0039 */ 0040 public $docFreq; 0041 0042 /** 0043 * Data offset in a Frequencies file. 0044 * 0045 * @var integer 0046 */ 0047 public $freqPointer; 0048 0049 /** 0050 * Data offset in a Positions file. 0051 * 0052 * @var integer 0053 */ 0054 public $proxPointer; 0055 0056 /** 0057 * ScipData offset in a Frequencies file. 0058 * 0059 * @var integer 0060 */ 0061 public $skipOffset; 0062 0063 /** 0064 * Term offset of the _next_ term in a TermDictionary file. 0065 * Used only for Term Index 0066 * 0067 * @var integer 0068 */ 0069 public $indexPointer; 0070 0071 public function __construct($docFreq, $freqPointer, $proxPointer, $skipOffset, $indexPointer = null) 0072 { 0073 $this->docFreq = $docFreq; 0074 $this->freqPointer = $freqPointer; 0075 $this->proxPointer = $proxPointer; 0076 $this->skipOffset = $skipOffset; 0077 $this->indexPointer = $indexPointer; 0078 } 0079 } 0080