| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Zend Framework
|
|
|
4 |
*
|
|
|
5 |
* LICENSE
|
|
|
6 |
*
|
|
|
7 |
* This source file is subject to version 1.0 of the Zend Framework
|
|
|
8 |
* license, that is bundled with this package in the file LICENSE, and
|
|
|
9 |
* is available through the world-wide-web at the following URL:
|
|
|
10 |
* http://www.zend.com/license/framework/1_0.txt. If you did not receive
|
|
|
11 |
* a copy of the Zend Framework license and are unable to obtain it
|
|
|
12 |
* through the world-wide-web, please send a note to license@zend.com
|
|
|
13 |
* so we can mail you a copy immediately.
|
|
|
14 |
*
|
|
|
15 |
* @package Zend_Search_Lucene
|
|
|
16 |
* @subpackage Index
|
|
|
17 |
* @copyright Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)
|
|
|
18 |
* @license http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0
|
|
|
19 |
*/
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* A Zend_Search_Lucene_Index_TermInfo represents a record of information stored for a term.
|
|
|
24 |
*
|
|
|
25 |
* @package Zend_Search_Lucene
|
|
|
26 |
* @subpackage Index
|
|
|
27 |
* @copyright Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)
|
|
|
28 |
* @license http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0
|
|
|
29 |
*/
|
|
|
30 |
class Zend_Search_Lucene_Index_TermInfo
|
|
|
31 |
{
|
|
|
32 |
/**
|
|
|
33 |
* The number of documents which contain the term.
|
|
|
34 |
*
|
|
|
35 |
* @var integer
|
|
|
36 |
*/
|
|
|
37 |
public $docFreq;
|
|
|
38 |
|
|
|
39 |
/**
|
|
|
40 |
* Data offset in a Frequencies file.
|
|
|
41 |
*
|
|
|
42 |
* @var integer
|
|
|
43 |
*/
|
|
|
44 |
public $freqPointer;
|
|
|
45 |
|
|
|
46 |
/**
|
|
|
47 |
* Data offset in a Positions file.
|
|
|
48 |
*
|
|
|
49 |
* @var integer
|
|
|
50 |
*/
|
|
|
51 |
public $proxPointer;
|
|
|
52 |
|
|
|
53 |
/**
|
|
|
54 |
* ScipData offset in a Frequencies file.
|
|
|
55 |
*
|
|
|
56 |
* @var integer
|
|
|
57 |
*/
|
|
|
58 |
public $skipOffset;
|
|
|
59 |
|
|
|
60 |
/**
|
|
|
61 |
* Term offset of the _next_ term in a TermDictionary file.
|
|
|
62 |
* Used only for Term Index
|
|
|
63 |
*
|
|
|
64 |
* @var integer
|
|
|
65 |
*/
|
|
|
66 |
public $indexPointer;
|
|
|
67 |
|
|
|
68 |
public function __construct($docFreq, $freqPointer, $proxPointer, $skipOffset, $indexPointer = null)
|
|
|
69 |
{
|
|
|
70 |
$this->docFreq = $docFreq;
|
|
|
71 |
$this->freqPointer = $freqPointer;
|
|
|
72 |
$this->proxPointer = $proxPointer;
|
|
|
73 |
$this->skipOffset = $skipOffset;
|
|
|
74 |
$this->indexPointer = $indexPointer;
|
|
|
75 |
}
|
|
|
76 |
}
|
|
|
77 |
|