adding some strings
[moodle-linuxchix.git] / search / Zend / Search / Lucene / Index / TermInfo.php
blob95f7cfc65f4ff9f1b5aa869b3da48a4d9da01d4f
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
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.
15 * @category Zend
16 * @package Zend_Search_Lucene
17 * @subpackage Index
18 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
23 /**
24 * A Zend_Search_Lucene_Index_TermInfo represents a record of information stored for a term.
26 * @category Zend
27 * @package Zend_Search_Lucene
28 * @subpackage Index
29 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
30 * @license http://framework.zend.com/license/new-bsd New BSD License
32 class Zend_Search_Lucene_Index_TermInfo
34 /**
35 * The number of documents which contain the term.
37 * @var integer
39 public $docFreq;
41 /**
42 * Data offset in a Frequencies file.
44 * @var integer
46 public $freqPointer;
48 /**
49 * Data offset in a Positions file.
51 * @var integer
53 public $proxPointer;
55 /**
56 * ScipData offset in a Frequencies file.
58 * @var integer
60 public $skipOffset;
62 /**
63 * Term offset of the _next_ term in a TermDictionary file.
64 * Used only for Term Index
66 * @var integer
68 public $indexPointer;
70 public function __construct($docFreq, $freqPointer, $proxPointer, $skipOffset, $indexPointer = null)
72 $this->docFreq = $docFreq;
73 $this->freqPointer = $freqPointer;
74 $this->proxPointer = $proxPointer;
75 $this->skipOffset = $skipOffset;
76 $this->indexPointer = $indexPointer;